I am working on a bilingual project and started to use Google Places API Webservices. I started using the Place Autocomplete API which works great.
I can do this query in both fr
and en
and will get different description results:
https://maps.googleapis.com/maps/api/place/autocomplete/json?key=
<insert_key_here>
&types=geocode&language=<insert_language_here>
&input=144
English result:
"description": "14458 Gouin Boulevard West, QC, Canada",
"id": "33dcffeeb88b48fa5c1d0ec4e6e54469d05f5d1e",
"place_id": "ChIJk0pAHBM7yUwRt0WIxWRe1ic",
French result:
"description": "14458 Boulevard Gouin Ouest, QC, Canada",
"id": "33dcffeeb88b48fa5c1d0ec4e6e54469d05f5d1e",
"place_id": "ChIJk0pAHBM7yUwRt0WIxWRe1ic",
The ids are exactly the same but the text is localized which is the expected result. Now when I try to get the same result using the Place Details API, the language parameter doesn't seem to have any impact. I know that the documentation mentions results should be returned, if possible.
but given I know it is possible, is this behavior by design or some sort of bug?
Here is an example of an english details query using the previous example place_id which returns the result in french:
https://maps.googleapis.com/maps/api/place/details/json?key=
<insert_key_here>
&placeid=ChIJk0pAHBM7yUwRt0WIxWRe1ic&language=en
"long_name": "Boulevard Gouin Ouest",