Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

google_places - result in Cyrillic instead of Latin alphabet #245

Open
werkstattcodes opened this issue Apr 6, 2022 · 1 comment
Open

Comments

@werkstattcodes
Copy link

I am getting a result (ProCredit Banka, ПроКредит Банка) in Cyrillic rather than in Latin letters, although I have specified language as en. The result should be available in Latin, at least when checking it on maps.google.com (link).

Is there any other approach to enforce the result in Latin letters?

Many thanks!

library(googleway)

df_places_res <- google_places(
  location = c(
    44.77766,
    17.19495),
  language = "en",
  radius = 200,
  place_type = "bank",
  key = Sys.getenv("GooglePlaces_key"))

df_places_res$results$name
#> [1] "<U+041F><U+0440><U+043E><U+041A><U+0440><U+0435><U+0434><U+0438><U+0442> <U+0411><U+0430><U+043D><U+043A><U+0430>" "UniCredit Bank"               
#> [3] "Raiffeisen BANK (iPoslovnica)"

Created on 2022-04-06 by the reprex package (v2.0.1)

@dcooley
Copy link
Collaborator

dcooley commented Apr 19, 2022

does this have anything to do with the locale setting of your R sesion? what does sessionInfo() give?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants