UX: don't give an error message for photon when searching OSM-urls

This commit is contained in:
Pieter Vander Vennet 2025-08-31 14:29:53 +02:00
parent fd5e39065d
commit eca6a0e3cf

View file

@ -125,6 +125,10 @@ export default class PhotonSearch implements GeocodingProvider, ReverseGeocoding
if (query.length < 3) { if (query.length < 3) {
return [] return []
} }
if(query.indexOf("https://") >=0){
// Photon gives a '403 forbidden' when this is part of the search string
return []
}
const limit = this.searchLimit const limit = this.searchLimit
let bbox = "" let bbox = ""
if (options?.bbox && !this.ignoreBounds) { if (options?.bbox && !this.ignoreBounds) {