File tree 1 file changed +2
-2
lines changed
Classes/FormEngine/FieldControl
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -46,11 +46,11 @@ public function render(): array
46
46
// if we have at least some address part (saves geocoding calls)
47
47
if ($ address ) {
48
48
// base url
49
- $ geoCodeUrlBase = 'https://nominatim.openstreetmap.org/search/ ' ;
49
+ $ geoCodeUrlBase = 'https://nominatim.openstreetmap.org/search?q= ' ;
50
50
$ geoCodeUrlAddress = $ address ;
51
51
$ geoCodeUrlCityOnly = ($ row ['city ' ] ?? '' );
52
52
// urlparams for nominatim which are fixed.
53
- $ geoCodeUrlQuery = '? format=json&addressdetails=1&limit=1&polygon_svg=1 ' ;
53
+ $ geoCodeUrlQuery = '& format=json&addressdetails=1&limit=1&polygon_svg=1 ' ;
54
54
// replace newlines with spaces; remove multiple spaces
55
55
$ geoCodeUrl = trim (preg_replace ('/\s\s+/ ' , ' ' , $ geoCodeUrlBase . $ geoCodeUrlAddress . $ geoCodeUrlQuery ));
56
56
$ geoCodeUrlShort = trim (preg_replace ('/\s\s+/ ' , ' ' , $ geoCodeUrlBase . $ geoCodeUrlCityOnly . $ geoCodeUrlQuery ));
You can’t perform that action at this time.
0 commit comments