I am considering the replacement of Google Maps with Open Street Maps and the Leaflet JS API. Does the Leaflet JS API provide a Geocoding service?
Asked
Active
Viewed 2.7k times
3 Answers
16
Leaflet itself does not provide geocoding services, but you can look at Nominatim for example. http://wiki.openstreetmap.org/wiki/Nominatim
Ubergesundheit
- 176
- 1
- 2
4
I found a Leaflet plugin that works great. It's a Bing geocoder which you'll need your own key for https://github.com/sa3m/leaflet-control-bing-geocoder
geomajor56
- 2,102
- 2
- 18
- 26
2
I have fallen in love with the Mapbox Geocoding API -- they do a great job of aggregating a lot of data sources that would be a pain for me to aggregate on my own. I found it to do a better job of reverse-geocoding than Nominatim. If I ever needed to build out my own geocoder, Nominatim would be a great place to start, but for most projects it feels to me like overkill.
egbutter
- 187
- 3
Supports 1 geocode per request. Must be displayed on a Mapbox map.Which is not gonna work if used with leaflet API. Also coverage is quite low, having only 13 countries. – Ivar Jul 23 '15 at 11:05