You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am reverse geocoding coordinates which pertain to addresses in countries where the Cyrillic alphabet is used. I am using tidygeocoder and OSM/Nominatim as a method. Am I correct, that currently it's not possible to specify the output language/alphabet? How can I modify my request in tidygeocoder to get the results/addresses not in Cyrillic but in Latin letters/in English?
As far as I can tell, the relevant property in the Nominatim/OSM API is accept-language (see here and here). But adding it to a tidygeocoder request seems not to work.
Error: Invalid parameter "osm_accept_language" used in the api_options argument. See ?reverse_geo
The error also occurs when using "osm_accept-language". Many thanks!
PS: I had previously posted the same issue on SO but got no response. So, I hope it's ok to file the "issue" here.
The text was updated successfully, but these errors were encountered:
Hi @werkstattcodes, try using custom_query instead of api_options. That will pass the parameter directly to the Nominatim API (see ?reverse_geo for details).
Indeed, this works! Many thanks. I had tried it before, but only now figured out that I have to put accept-language in quotation marks. Again, congrats for this great package.
@werkstattcodes awesome, glad it worked. That's interesting that you have to put the parameter name in quotes. I'm guessing that's because it has a hyphen in it.
First, many thanks for this wonderful package.
I am reverse geocoding coordinates which pertain to addresses in countries where the Cyrillic alphabet is used. I am using
tidygeocoder
andOSM/Nominatim
as a method. Am I correct, that currently it's not possible to specify the output language/alphabet? How can I modify my request intidygeocoder
to get the results/addresses not in Cyrillic but in Latin letters/in English?As far as I can tell, the relevant property in the Nominatim/OSM API is
accept-language
(see here and here). But adding it to a tidygeocoder request seems not to work.The resulting address reads as
Modifying the request to (as suggested here):
leads to an error:
The error also occurs when using "osm_accept-language". Many thanks!
PS: I had previously posted the same issue on SO but got no response. So, I hope it's ok to file the "issue" here.
The text was updated successfully, but these errors were encountered: