[GraphHopper] GraphHopper Digest, Vol 41, Issue 6

Jaak Laineste jaak.laineste at gmail.com
Tue Jun 11 20:31:15 UTC 2013


On Monday, June 10, 2013, Razvan C wrote:

> 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
>
> *If you want to make an offline GPS you will need a nominatim option,
> because requesting a user to tap on map for getting a route is not so right.
> *
> *Why is impossible to port nominatim to Android, taking in account that
> you don't port whole World but just a portion?*
>

The problem is not in data amount (only) but also platforms. There is no
php and postgis on android, so you would need to rewrite the code. It would
be very welcome contribution for many if you would do it, for sure.

There is some activity to have geocoding on top of mapsforge, but I'm not
sure if ere is anything useful or real activity. See
http://code.google.com/p/mapsforge/issues/detail?id=16

Jaak

>
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of GraphHopper digest..."
>
> Today's Topics:
>
>   1. Re: Speed Limits (Peter K)
>
>   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.
>
> _______________________________________________
> GraphHopper mailing list
> GraphHopper at openstreetmap.org <javascript:_e({}, 'cvml',
> 'GraphHopper at openstreetmap.org');>
> http://lists.openstreetmap.org/listinfo/graphhopper
>
>
>

-- 
Jaak Laineste
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/graphhopper/attachments/20130611/8fdc1f81/attachment.html>


More information about the GraphHopper mailing list