Geocoder Handling Spaces

Hello,

I am making a geocoding request using the following URL:

https://api.openrouteservice.org/geocode/search?api_key=my_api_key&text={city}

Origin being the city that I want to geocode. It seems to do just find when the city has no spaces in it. Such as Seattle, however I can’t seem to get it to handle cities like Los Angles.

I have tried replacing spaces with %20 but that doesn’t seem to work. Any ideas?

Hi @Mrtutu,

Should work with the %20 encode. Also if you would use the correct name (Los AngEles) it would find it even better :sweat_smile: .
If you add a country bias it also finds it with the typo:

https://api.openrouteservice.org/geocode/search?api_key=your_key&text=Los%20Angles&boundary.country=USA

Best regards