Im from Argentina and i am
developing an offline android maps application using *Graphhopper*. I
wanted to ask you how can i get the max speed of an edge "using the tag
:maxspeed". Actually i am doing the following:

QueryResult result = 
graphhopper.getLocationIndex().findClosest(location.getLatitude(), 
location.getLongitude(), EdgeFilter.ALL_EDGES);
EdgeIteratorState edge = result.getClosestEdge();
String streetName = edge.getName();
double streetMaxspeed = 
graphhopper.getEncodingManager().getEncoder(EncodingManager.CAR).getSpeed(edge.getFlags());

But, i think the streetMaxspeed is not really the maxspeed from the edge
(tag :maxspeed)
Can you please help me with this ?

Regards
Luis Amengual

Disclaimer:

This email and any attachments thereof may contain confidential, privileged, 
proprietary, or otherwise private information. This email is intended solely 
for the use of the individual to whom it is addressed. If you are not the 
intended recipient of the email and its attachments please inform the sender 
immediately and do not disclose the contents to any other person, use it for 
any purpose or store or copy the information in any way and delete this e-mail 
and its attachments from your system. Any views or opinions expressed are 
solely those of the author.


_______________________________________________
GraphHopper mailing list
[email protected]
https://lists.openstreetmap.org/listinfo/graphhopper

Reply via email to