-
Notifications
You must be signed in to change notification settings - Fork 20
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
Add Bing support #92
Comments
I pulled in your PR on the library(tidygeocoder)
geo(sample_addresses$addr[1:3], method = 'bing', full_results = TRUE, verbose = TRUE)
#> Number of Unique Addresses: 3
#> Executing single address geocoding...
#> Number of Unique Addresses: 1
#> Querying API URL: http://dev.virtualearth.net/REST/v1/Locations
#> Passing the following parameters to the API:
#> q : "1600 Pennsylvania Ave NW Washington, DC"
#> key : "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
#> maxResults : "1"
#>
#> HTTP Status Code: 200
#> Query completed in: 0.6 seconds
#>
#> Number of Unique Addresses: 1
#> Querying API URL: http://dev.virtualearth.net/REST/v1/Locations
#> Passing the following parameters to the API:
#> q : "600 Montgomery St, San Francisco, CA 94111"
#> key : "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
#> maxResults : "1"
#>
#> HTTP Status Code: 200
#> Query completed in: 0.2 seconds
#>
#> Number of Unique Addresses: 1
#> Querying API URL: http://dev.virtualearth.net/REST/v1/Locations
#> Passing the following parameters to the API:
#> q : "11 Wall Street, New York, New York"
#> key : "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
#> maxResults : "1"
#>
#> HTTP Status Code: 200
#> Query completed in: 0.2 seconds
#>
#> # A tibble: 3 x 3
#> address lat long
#> <chr> <dbl> <dbl>
#> 1 1600 Pennsylvania Ave NW Washington, DC NA NA
#> 2 600 Montgomery St, San Francisco, CA 94111 NA NA
#> 3 11 Wall Street, New York, New York NA NA Created on 2021-03-24 by the reprex package (v1.0.0) The only code change I made was to allow the user to pass |
Looks like the issue was just that |
Thanks! The |
Following #62 , I have implemented Bing:
Docs:
About Bing batch geocoding service
It is very similar to Batch Geocoding on HERE (see #74), in the sense that it is a POST/wait/GET process with a maximum limit of 50 addresses and really slow, so the user must force batch geocoding with
geo(method="bing", mode="batch")
-Regards
The text was updated successfully, but these errors were encountered: