Skip to content

How can I pass the Bing Maps Services Key #122

Answered by dieghernan
lucazav asked this question in Q&A
Discussion options

You must be logged in to vote

Hi!

API Keys should be set as an environment variable, see https://jessecambon.github.io/tidygeocoder/articles/geocoder_services.html#api-key-retrieval-1.

Note that Bing was introduced on v1.0.3, so please check that you have updated your package first:

update.packages("tidygeocoder")

For your convenience, find a reprex below:

Sys.setenv(BINGMAPS_API_KEY = "<YOUR API KEY HERE>")
library(tidygeocoder)

geo("Times Square", method = "bing")
#> # A tibble: 1 x 3
#>   address        lat  long
#>   <chr>        <dbl> <dbl>
#> 1 Times Square  40.8 -74.0

sessionInfo()
#> R version 4.0.5 (2021-03-31)
#> Platform: x86_64-w64-mingw32/x64 (64-bit)
#> Running under: Windows 10 x64 (build 19041)
#> 
#>…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by jessecambon
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants