-
Notifications
You must be signed in to change notification settings - Fork 21
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
Issue will trying to use function geocode #193
Comments
Hi @sarahhouben89, I'm not able to reproduce this error. Could you post a reprex and the results of Here is what I am getting on my system: library(dplyr, warn.conflicts = FALSE)
library(tidygeocoder)
some_addresses <- tibble::tribble(
~name, ~addr,
"White House", "1600 Pennsylvania Ave NW, Washington, DC",
"Transamerica Pyramid", "600 Montgomery St, San Francisco, CA 94111",
"Willis Tower", "233 S Wacker Dr, Chicago, IL 60606"
)
# geocode the addresses
lat_longs <- some_addresses %>%
geocode(addr, method = 'osm', lat = latitude , long = longitude)
#> Passing 3 addresses to the Nominatim single address geocoder
#> Query completed in: 7.6 seconds
lat_longs
#> # A tibble: 3 × 4
#> name addr latit…¹ longi…²
#> <chr> <chr> <dbl> <dbl>
#> 1 White House 1600 Pennsylvania Ave NW, Washington, DC 38.9 -77.0
#> 2 Transamerica Pyramid 600 Montgomery St, San Francisco, CA 941… 37.8 -122.
#> 3 Willis Tower 233 S Wacker Dr, Chicago, IL 60606 41.9 -87.6
#> # … with abbreviated variable names ¹latitude, ²longitude Created on 2023-06-21 with reprex v2.0.2 |
Hi! Sarah |
No problem, glad it worked out. Sounds like it could have been a temporary issue with the geocoding service. |
Hello!
Created on 2023-06-22 with reprex v2.0.2 Session info:
|
Hi @sarahhouben89, that is an odd error. I haven't been able to reproduce it on my end, but next time it happens can you run |
Hello!
|
Sorry, I forgot that won't show the files/packages involved. Can you try this command instead?
|
rlang::last_trace() Mmmm this time, not conclusive but still same issue and same script |
Description
I tried to run my script, using tidygeocoder. It worked perfectly one week ago and now, I get error message:
Error in geocode(., addr, method = "osm", lat = latitude, long = longitude) :
is.character(location) is not TRUE
So I copy pasted also the example you gave on the package description and again, exactly same error message.
What have you tried to resolve the issue? Updating your R packages to their most recent versions can sometimes resolve issues.
Steps to Reproduce
Include a small code example that someone else can run to reproduce the bug:
The text was updated successfully, but these errors were encountered: