[GraphHopper] Problems with sub area
Peter K
peathal at yahoo.de
Mon Oct 14 14:06:51 UTC 2013
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
> <mailto:fischer.andreas.atf at googlemail.com>>
>
> Thank you... that did it.
>
>
> 2013/10/14 Peter K <peathal at yahoo.de <mailto: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
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/graphhopper/attachments/20131014/5c359629/attachment.html>
More information about the GraphHopper
mailing list