[GraphHopper] Getting one edge knowing only it' ID

Peter K peathal at yahoo.de
Thu Nov 21 15:19:54 UTC 2013


Yes, I removed this possibility in the hope that one does not need 
this. Do you have really no other possibility to get the edge or a node 
of this edge?

Regards,
Peter.

> 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>
>
>
>
>
>
> _______________________________________________
> GraphHopper mailing list
> GraphHopper at openstreetmap.org
> https://lists.openstreetmap.org/listinfo/graphhopper





More information about the GraphHopper mailing list