[pgrouting-users] Help with TDSP

Hi everyone! I will try again!

I'm using pgr_kdijkstraPath to find less path from vertex  A to vertex D.

Using st_lenght()/(road velocity) to cost/reverse_cost.

Now, I need to use the road velocity at current travel time...

Something like this:

VertexTable

target source lenght velocity velocity_at_07 velocity_at_08 velocity_at_09
A B 70km 65km/h 50km/h 45km/h 60km/h
B C 10km 65km/h 60km/h 55km/h 70km/h
C D 2km 65km/h 60km/h 60km/h 70km/h

How can I use pgr_K/pgr_Dijkstra to get this costs?

Starting at 07am.
A - 07am - 70km - use velocity_at_07 to B
B - ~08am - 10km - use velocity_at_08 to C
C - ~08am - 2km - use velocity_at_08 to D


Omar Fernando Pessôa
http://www.opessoa.com
Desenvolvedor de sistemas
Programador C# e C++

Time dependencies are not supported in any of the released code.
We have a GSoC branch "gsoc-tdsp" that does some time dependent work, but it is not documented and I doubt anyone here knows very much about the code.

You might want to look at:

https://github.com/pgRouting/pgrouting/issues/243

maybe the two of you can collaborate and develop a pull request.

-Steve

On 3/19/2014 12:21 PM, Omar Fernando Pessôa wrote:

Hi everyone! I will try again!

I'm using pgr_kdijkstraPath to find less path from vertex A to vertex D.

Using st_lenght()/(road velocity) to cost/reverse_cost.

Now, I need to use the road velocity at current travel time...

Something like this:

VertexTable

target source lenght velocity velocity_at_07 velocity_at_08 velocity_at_09
A B 70km 65km/h 50km/h 45km/h 60km/h
B C 10km 65km/h 60km/h 55km/h 70km/h
C D 2km 65km/h 60km/h 60km/h 70km/h

How can I use pgr_K/pgr_Dijkstra to get this costs?

Starting at 07am.
A - 07am - 70km - use velocity_at_07 to B
B - ~08am - 10km - use velocity_at_08 to C
C - ~08am - 2km - use velocity_at_08 to D

..
*Omar Fernando Pessôa*
http://www.opessoa.com
Desenvolvedor de sistemas
Programador C# e C++

_______________________________________________
Pgrouting-users mailing list
Pgrouting-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/pgrouting-users