[GraphHopper] Geoposition of an edge
Philipp Kraus
philipp.kraus at tu-clausthal.de
Thu May 1 17:17:05 UTC 2014
Am 01.05.2014 um 17:28 schrieb Peter K <peathal at yahoo.de>:
> > How can I get the orientation in the List<EdgeIteratorState> which is returned by calcEdges?
>
> Every EdgeIteratorState in the list already has the correct direction of the vehicle. So you don't need to swap the pointlist from edge.fetchWayGeometry or something. But a vehicle in the opposite direction has a different list and different instances of EdgeIteratorState.
Yes this was / is a better choice, I have used in my first code the "edge id", I have changed the access to the EdgeIteratorState, so the fetchWayGeometry works expected. On the edge id the orientation can be different
Thx
Phil
More information about the GraphHopper
mailing list