[GraphHopper] Getting one edge knowing only it' ID
Nicolas Gillet
nicolas.gillet at market-ip.com
Thu Nov 21 13:13:34 UTC 2013
Hello,
I realize that the following is no more allowed :
EdgeIteratorState edge = g.getEdgeProps(edgeId, -1);
...
double distance = edge.getDistance();
(IllegalStateException: adjNode -1 out of bounds [0,32 832])
I used to do this to retrieve one single edge knowing it's ID in order to get it's flags, distance, ...
Problem is : I don't know any of the base/adj node when I do that, because I don't need them :-/
How can I achieve the same now ?
Thanks,
Nicolas GILLET
Market-IP - Creating Mobile Intelligence
Phone : +32 81 33 11 11
Fax : +32 81 33 11 10
www.market-ip.com<http://www.market-ip.com/> - www.telefleet.com<http://www.telefleet.com/> - www.geoplanning.net<http://www.geoplanning.net/> - www.drivexpert.net<http://www.drivexpert.net/>
[Description : cid:image003.png at 01CD5521.849F3340]<http://www.linkedin.com/groups/MarketIP-4289716?gid=4289716&trk=hb_side_g>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/graphhopper/attachments/20131121/c92304c6/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 1263 bytes
Desc: image001.png
URL: <http://lists.openstreetmap.org/pipermail/graphhopper/attachments/20131121/c92304c6/attachment.png>
More information about the GraphHopper
mailing list