Is it possible to get and search administrative in English?
See original GitHub issueDo you want to request a feature or report a bug?
I would like to request a feature.
What is the current behavior?
When executing the following GET request:
https://places-dsn.algolia.net/1/places/query?language=en&query=Bitola
I receive the administrative field in Macedonian, although the language is set to English.
For example, the administrative reads “Пелагониски Регион”, when it should read “Pelagonia Region” in English.
Moreover, if we search “Pelagonia Region, Macedonia”, we do not get the same results, but we do if we search “Пелагониски Регион, Macedonia”
What is the expected behavior?
I was expecting to get the results in English as the language was set to English.
Is it possible to provide a way to receive and look addresses up in English so that searching “Pelagonia Region, Macedonia” gives the same results as “Пелагониски Регион, Macedonia”?
Thanks!
Issue Analytics
- State:
- Created 4 years ago
- Comments:10 (4 by maintainers)
Top GitHub Comments
Sure, using templates is a bit of an advanced topic but here is a way to use them to do something close to what you want:
Google Translate accurately resolves the administrative names to English, so translating the administrative fields and caching the results might work as a temporary solution. Here is a pseudo code for this, but might not be practical for production (i.e places.js would make the request to this implementation instead of the default algolia website):