diff --git a/changelog.d/1071-geo-uri-search.md b/changelog.d/1071-geo-uri-search.md new file mode 100644 index 000000000..eba251948 --- /dev/null +++ b/changelog.d/1071-geo-uri-search.md @@ -0,0 +1,3 @@ +- Location search accepts two-dimensional WGS84 `geo:` URIs offline, with + the existing coordinate framing and label. Unsupported URI fields are passed + to the remaining search providers unchanged (cj-vana, #1071). diff --git a/scripts/qa-location-controls.mjs b/scripts/qa-location-controls.mjs index 842a433a4..46da4fe37 100644 --- a/scripts/qa-location-controls.mjs +++ b/scripts/qa-location-controls.mjs @@ -89,9 +89,8 @@ try { const url = new URL(request.url()); if ( url.pathname === '/api/geocode' || - (url.hostname === 'photon.komoot.io' && url.pathname === '/api/') || - (url.hostname === 'maps.googleapis.com' && - url.pathname === '/maps/api/geocode/json') + url.pathname === '/api/google/geocode' || + (url.hostname === 'photon.komoot.io' && url.pathname === '/api/') ) geocoderRequests.push(request.url()); }; diff --git a/src/search/coordinateGeocoder.js b/src/search/coordinateGeocoder.js index 265a0e12c..aa145bb08 100644 --- a/src/search/coordinateGeocoder.js +++ b/src/search/coordinateGeocoder.js @@ -22,7 +22,7 @@ function boundedBox(lat, lon, halfSpan) { } /** - * Answer a decimal-degree query without asking anyone. + * Answer a decimal-degree or geo-URI query without asking anyone. * * It sits ahead of the network geocoders, so a coordinate costs no request and * works with no key. Anything that is not exactly a coordinate is passed on