The commit https://github.com/odoo/odoo/commit/160e8bfbf72a3e5d7cc8d8cbe7bc4f310f298baa introduced a way to update the useragent used to request openstreetmap nominatim service. It was introduced as a bad fix to prevent an erroneous blacklist from the service. Once the blacklist has been removed, this fix was not necessary anymore. It also allows to abuse the free service which is against the osmfoundation policy. The best solution would be to decrease the amount of request. The Google Place Map service is also available to avoid using the openstreetmap service with large database. closes odoo/odoo#138078 X-original-commit: 2726d2724e06e5818eaf2d0010971554372c4727 Signed-off-by: Arnaud Joset (arj) <arj@odoo.com>
Partner geolocalize
Contacts geolocation API to convert partner addresses into GPS coordinates.
Configure
You can configure in General Settings the default provider of the geolocation API service.
A method _call_<service> should be implemented in object base.geocoder that accepts an address string as parameter and return (latitude, longitude) tuple for this to work.
If no default provider is set, the first one will be used by default.
An optional method _geo_query_address_<service> which takes address fields as parameters can be defined to encode the query string for the provider.