[GraphHopper] Geoposition of an edge

Peter K peathal at yahoo.de
Thu May 1 15:28:53 UTC 2014


> 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.

> Should I add the directory orientation to my code or did you change
GraphHopper?

I'm again unsure about your exact problem. What do you mean here?

Peter.

> 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
> <mailto: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/932346f7/attachment.html>


More information about the GraphHopper mailing list