hrbrmstr / nominatim

:earth_asia: Tools for Working with the 'Nominatim' API in R
Other
75 stars 20 forks source link

osm_geocode() not returning results for some addresses #15

Open JustGottaCAT opened 6 years ago

JustGottaCAT commented 6 years ago

osm_geocode appears to only return results for cities, not addresses.

For example, these return results:

osm_geocode("Seattle, Washington", key = osm_api)

osm_geocode("Los Angeles, CA", key = osm_api)

This does not: osm_geocode("1600 Pennsylvania Ave, Washington, DC.", key = osm_api)

Nor this: osm_geocode(c("1600 Pennsylvania Ave, Washington, DC.", "1600 Amphitheatre Parkway, Mountain View, CA"), key = osm_api)

Nor does this: osm_geocode(address_list, key = osm_api), where "address_list" is any list of specific addresses stored in a character vector.

Would there be a reason for this?

felipefmoreira commented 5 years ago

Found the same issue here. If I try: osm_geocode("New York City", key = key)

|++++++++++++++++++++++++++++++++++++++++++++++++++| 100% elapsed = 00s
  place_id                                                                              licence osm_type
1 47642168 Data © OpenStreetMap contributors, ODbL 1.0. https://www.openstreetmap.org/copyright     node
      osm_id      lat       lon
1 3612623588 34.67323 -1.914644

But, if I try any address like: osm_geocode("153 AVENUE B, New York City", key = key)

|++++++++++++++++++++++++++++++++++++++++++++++++++| 100% elapsed = 00s
# A tibble: 0 x 0
AgentRatty commented 4 years ago

I am experiencing same issue R 3.5.3, latest dev version nominatim.

paulterinho commented 2 years ago

I am also experiencing this problem.