[GraphHopper] Speed Limits

Peter K peathal at yahoo.de
Mon Jun 10 13:05:21 UTC 2013


> Maxspeed (http://wiki.openstreetmap.org/wiki/Maxspeed) / Speed limits
> (http://wiki.openstreetmap.org/wiki/Speed_limits) are defined in OSM.
> Again: we already parse maxspeed for cars
>  
> *How can I get maxspeed in Android?*

you can only get the speed which could be defined due to the maxspeed
tag but it could be also without limit and defined via the highway type:

// the speed in km/h
vehicleEncoder.getSpeed(edgeIterator.flags())

>> For Geocoding I think you can take a look to Nominatim
>> tool (http://wiki.openstreetmap.org/wiki/Nominatim).
> We're already using nominatim for the web demo. This can't be used for
> Android for several reasons. Or what was the question :) ?
>  
> *What are the reason?*

You cannot use nominatim if you want *offline* geocoding. This would
mean to port nominatim to android is impossible. If you want online
geocoding then offline routing is senseless too IMO.

But using a graphhopper webservice from Android is easy: have a look
into the web project and copy & paste GraphHopperWeb to your project and
use it instead of 'GraphHopper.java'. Then, to use nominatim, you can
use NominatimGeocoder

Regards,
Peter.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/graphhopper/attachments/20130610/bf7ba067/attachment-0001.html>


More information about the GraphHopper mailing list