acf-openstreetmap-field icon indicating copy to clipboard operation
acf-openstreetmap-field copied to clipboard

Other library nominatim to geocoder

Open mjezegou opened this issue 4 years ago • 4 comments

Hello, I am having problems with the nominatim geolocation. In many cases, the house number is not found. We must then manually find the exact situation on the street.

Here is an example :

https://nominatim.openstreetmap.org/search?q=11%20Rue%20du%20Rocher,%2035510%20Cesson-S%C3%A9vign%C3%A9&limit=5&format=json&addressdetails=1

The return is only the street and not the position of number 11 in the street

mjezegou avatar Mar 05 '21 10:03 mjezegou

I'm sorry, but I am not the maintainer of the nominatim service.

mcguffin avatar Mar 05 '21 10:03 mcguffin

Is it possible to change the library to another like for exemple openrouteservice , here or other library ?

mjezegou avatar Mar 05 '21 11:03 mjezegou

Well, openrouteservice looks interesting ... This plugin uses (leaflet-control-geocoder)[https://github.com/perliedman/leaflet-control-geocoder] for geocoding, which does not support openrouteservice. Would be quite a bit of work to do, implementing a different service, parse different kinds of geocoding results, making it compatible to existing installations and datasets ... However I have some feature like a choosable geocoding service in mind, so I'll put this on the agenda.

mcguffin avatar Mar 05 '21 13:03 mcguffin

Thank you, I would be delighted and my users too !

mjezegou avatar Mar 05 '21 13:03 mjezegou