[GraphHopper] Geoposition of an edge
Philipp Kraus
philipp.kraus at tu-clausthal.de
Thu May 1 15:20:35 UTC 2014
Should I add the directory orientation to my code or did you change GraphHopper?
How can I get the orientation in the List<EdgeIteratorState> which is returned by calcEdges?
Phil
Am 01.05.2014 um 15:28 schrieb Peter K <peathal at yahoo.de>:
> ups, ... will have the same edgeId so you ..
>
>> Hey Phil,
>>
>> the route result Path will give you always the edgeIteratorState with
>> the correct direction. If the edgeState is for the same edge then still
>> all states (e.g. directions are different) will have the edgeId so you
>> can associate them correctly to the cells IMO.
>>
>> Regards,
>> Peter.
>>
>>> Am 01.05.2014 um 14:42 schrieb Peter K <peathal at yahoo.de>:
>>>
>>>> Why can't you use the correctly directed edgeIterStates which are
>>>> returned as routing result? (Path.calcEdges)
>>> My simulated cars can drive in both directions, but I have only one cell
>>> sampling for both directions, imho I get different edges for the direction.
>>>
>>> I'm thinking about if it is a better choice to create different samplings for both
>>> directions or can GraphHopper return for each direction different edge ids?
>>>
>>> My driving method get the edge, so I can add on the "getting" call the current
>>> direction, but imho an own edge should be better.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/graphhopper/attachments/20140501/33bbacc6/attachment.html>
More information about the GraphHopper
mailing list