[GraphHopper] Problems with sub area

Andreas Fischer fischer.andreas.atf at googlemail.com
Mon Oct 14 16:32:37 UTC 2013


Hi Peter,

I downloaded the bayern.osm from geofabrik.de and created the graph with
the graphhopper framework as usual.
I cannot test, if isFound() returns true... but i will at thursday. Some of
the valid nodes near the end of the map cannot be reached by the routing
algorithm (using CH)

Regards,
Andreas



2013/10/14 Peter K <peathal at yahoo.de>

>  Hi Andreas,
>
> it should work. Did both results of the location lookup are different? Was
> the path found -> path.isFound?
>
> Did you use osmosis or the in build isInBounds method to cut the area?
>
> Regards,
> Peter.
>
>    Now i have a different problem:
>  Is it possible that CH are not properly working in sub maps like bavaria
> (made from bayern.osm)?
>  I recognized strange phenomenons near the end of the map.
>  findClosest() finds some node and when i route to this node, i get a path
> with 0.0 length.
>  Is this a known problem or did i screw it up?
>
>  Thanks
>
>
> 2013/10/14 Andreas Fischer <fischer.andreas.atf at googlemail.com>
>
>> Thank you... that did it.
>>
>>
>> 2013/10/14 Peter K <peathal at yahoo.de>
>>
>>>  Hi Andeas,
>>>
>>> you'll have to do it via EdgeExplorer:
>>>
>>> EdgeExplorer explorer = graph.createEdgeExplorer(/*optionalEdgeFilter*/);
>>>
>>> // new variable 'iter' not necessary, just to explain the concept
>>> EdgeIterator iter = explorer.setBaseNode(nodeId);
>>> while(iter.next()) {
>>>    ...
>>> }
>>>
>>> Reuse edgeExplorer as often as you can (note: not thread safe!) and just
>>> set the new base node. With this change our none-CH algorithms are approx.
>>> 8% faster. Usage -> see tests or XFirstSearch
>>>
>>> Regards,
>>> Peter.
>>>
>>>     Hi Peter,
>>>
>>>  Where did the Graph.getEdges(int nodeID) method go?
>>>  How can i get all edges of a node in the current version?
>>>
>>>  Thanks,
>>> Andreas
>>>
>>>
>
> _______________________________________________
> GraphHopper mailing list
> GraphHopper at openstreetmap.org
> https://lists.openstreetmap.org/listinfo/graphhopper
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/graphhopper/attachments/20131014/bdadf99a/attachment.html>


More information about the GraphHopper mailing list