- Issue created by @szeidler
- @szeidler opened merge request.
- Status changed to Needs review
over 1 year ago 3:39pm 2 August 2023 - 🇩🇪Germany szeidler Berlin
I forgot the reverse geocoding option, that also needed a change.
- last update
over 1 year ago 33 pass - 🇫🇮Finland maria.ahokas
#4 didn't work for me on version 8.x-3.x so here's patch for that.
- 🇦🇺Australia imclean Tasmania
+++ b/modules/geolocation_leaflet/src/Plugin/geolocation/Geocoder/Nominatim.php @@ -39,7 +39,7 @@ class Nominatim extends GeocoderBase implements GeocoderInterface { $request_url_base = $this->getRequestUrlBase(); - $url = Url::fromUri($request_url_base . '/search/' . $address, [ + $url = Url::fromUri($request_url_base . '/search?q=' . $address, [ 'query' => [ 'email' => $this->getRequestEmail(), 'limit' => 1,
A cleaner approach might be to include the address within the query.
$url = Url::fromUri($request_url_base . '/search', [ 'query' => [ 'q' => $address, 'email' => $this->getRequestEmail(), 'limit' => 1, 'format' => 'json', 'connect_timeout' => 5, ], ]);
- First commit to issue fork.
- 🇩🇪Germany christianadamski Berlin, Germany
- updated geocoding definition as above
- updated reverse geocoding
- split base URLs for both
- added test
- fixed minor issue in standard country definition - last update
about 1 year ago run-tests.sh fatal error -
ChristianAdamski →
committed 54a8bcf6 on 4.x
Issue #3378805 by szeidler, ChristianAdamski, maria.ahokas, dipakmdhrm,...
-
ChristianAdamski →
committed 54a8bcf6 on 4.x
- Status changed to Fixed
about 1 year ago 10:52am 2 September 2023 - 🇩🇪Germany christianadamski Berlin, Germany
Tests not yet working. Merged stuff manually, MR closed.
Thanks everyone!
Automatically closed - issue fixed for 2 weeks with no activity.