[GraphHopper] Geoposition of an edge
Philipp Kraus
philipp.kraus at tu-clausthal.de
Tue Apr 29 05:53:33 UTC 2014
Hello,
I'm using GraphHopper to create a traffic simulation. My car object creates a route between to geo positions (start & end position) and an edge is sampled into cell. I get the edge length and split the edge in cells around 3 meters (floor(edgelength/cellwidth)). My car is set to the cell and moved to next cell based on the current speed. This works fine at the moment.
So I would like to visualize the car movement and I need the geo position of the cell. My question is: How can I get the geo position of the an edge and does anybody know an idea to create a better solution for the geo position of each cell?
I would like to create something like:
Geoposition edgegeo = myEdge.getGeoPosition();
edgegeo + cellposition * cellwidth
Thanks a lot for help
Phil
More information about the GraphHopper
mailing list