Skip to content

Issue will trying to use function geocode #193

@hbnsarah

Description

@hbnsarah

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:

library(dplyr, warn.conflicts = FALSE)
library(tidygeocoder)
# create a dataframe with addresses
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)

#Error in geocode(., addr, method = "osm", lat = latitude, long = longitude) : 
  #is.character(location) is not TRUE

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions