[pgrouting-users] Shortest Path with varying costs.

Jorge Eliécer Osorio Caro jorgeliecer.osorio at gmail.com
Mon Jan 30 16:04:02 EST 2012


I think that you need to make a inner joint into my_cost according the time
and pass the cost and reverse_cost, where match that time with and edge id.

2012/1/30 Roberto Oropeza Gamarra <oropezaroberto at gmail.com>

> Hello,
>
> I need to calculate the shortest path, taking into account that the cost
> of traveling beetween edges varies according to the time of day. I have a
> table of edges [my_edges(id, source, target, ...)] and other table for cost
> and reverse_cost with columns especifying the time of day in which that
> cost is applicable [my_costs(cost, reverse_cost, start_time,
> end_time,...)], the cost is the number of minutes it takes to traverse from
> source to target.
>
> Is there a way pgRouting can help me to calculate this special shortest
> path?
>
> Thanks, Roberto.
>
> _______________________________________________
> Pgrouting-users mailing list
> Pgrouting-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/pgrouting-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/pgrouting-users/attachments/20120130/74b9ab7a/attachment.html


More information about the Pgrouting-users mailing list