When we would like to have the informations about the italian town “BRA”, the service returns the name of the town translated in French (ie “Soutien-gorge”).
How to have the information with the orignal name (ie BRA) ?
Regards
Alexandra
When we would like to have the informations about the italian town “BRA”, the service returns the name of the town translated in French (ie “Soutien-gorge”).
How to have the information with the orignal name (ie BRA) ?
Regards
Alexandra
Hey,
could you be a bit more specific on what you are doing and where you are encountering this issue?
That makes it a lot easier to help ![]()
Thanks
With the interface, when I tiped “BRA Italie”, the results are translated in french (ie “Soutien-gorge” instead “BRA”). We have the same results with the service of API.
Is it more clear ?
Regards
Alexandra
To clarify it even more: “soutien-gorge” is a regular french word (translation of the english word “bra”) and not a city name. I guess it is a wrong translation in the geocoder and not in ORS.
Your understanding is correct.
I am a little lost : what it is “Geocoder” ? Do you know how to find a solution ?
Hey,
route calculation works on geographic coordinates, not location names.
The process of converting between these is called “geocoding”.
“Forward Geocoding” takes a place name and tries to convert that into a geographic coordinate, “Reverse Geocoding” takes a geographic coordinate and tries to convert that into a place name.
The “Geocoder” is the tool that is doing this conversion.
It is the tool behind the search at maps.openrouteservice.org that you took the screenshot of.
However, I could neither get the geocoder on maps.openrouteservice.org to return the search results that you showed nor could I get the geocoder in our interactive API playground to return translated results.
If you manage to provide an API request that returns such a translated result, that would help greatly to investigate what is going on here.
I wonder whether it might be the case that automatic translation in your browser is messing with the results?
Best regards
Thank you for your answer
Via Postman, we have the result
Do we use the API correctly ? Do you see how to have the right name of the town please ?
Best regards
Alexandra
I can reproduce the issue with this curl request (api-key omitted):
curl --include --header “Content-Type: application/json; charset=utf-8” --header “Accept: application/json, application/geo+json, application/gpx+xml, img/png; charset=utf-8” ‘``https://api.openrouteservice.org/geocode/autocomplete?api_key=``&text=bra&boundary.country=it&lang=fr’
without lang=fr the issue is not there.