FieldtypeLeafletMapMarker icon indicating copy to clipboard operation
FieldtypeLeafletMapMarker copied to clipboard

Geocoding url syntax changed

Open cybermano opened this issue 2 years ago • 2 comments

nominatim.openstreetmap.org has changed the geocoding url syntax:

File not found: API no longer accessible via this URL

Using the URL /search/ and /reverse/ (with slashes) is no longer supported. Please use URLs as given in the documentation.

Examples how to change the URL:

You use: https://nominatim.openstreetmap.org/search/?q=Berlin Change to: https://nominatim.openstreetmap.org/search?q=Berlin

You use: https://nominatim.openstreetmap.org/search/US/Texas/Huston Change to: https://nominatim.openstreetmap.org/search?q=Huston, Texas, US

See github issue #3134 for more details.

cybermano avatar Aug 03 '23 08:08 cybermano

Maybe editing ControlGeocoder.js fixes the problem?

:343 L.Control.Geocoder.jsonp(this.options.serviceUrl + 'search/', L.extend({ change in L.Control.Geocoder.jsonp(this.options.serviceUrl + 'search', L.extend({

:370 L.Control.Geocoder.jsonp(this.options.serviceUrl + 'reverse/', L.extend({ change in L.Control.Geocoder.jsonp(this.options.serviceUrl + 'reverse', L.extend({

cybermano avatar Aug 03 '23 08:08 cybermano

Sorry, I'm not able to turn my commit in a pr: Original commit of my fork: https://github.com/FriendsOfProcessWire/FieldtypeLeafletMapMarker/commit/63254dffea9bd504eb45b124d64fd5832e38f013

cybermano avatar Aug 03 '23 09:08 cybermano