hrbrmstr / nominatim

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

Errors with osm_geocode() #5

Closed Robinlovelace closed 8 years ago

Robinlovelace commented 9 years ago

Reproducible example:

osm_geocode(c("1600 Pennsylvania Ave, Washington, DC.",
+     "1600 Amphitheatre Parkway, Mountain View, CA",
+     "Seattle, Washington"))
  |                                                  |   0%
Error connecting to geocode serviceError in doTryCatch(return(expr), name, parentenv, handler): client error: (403) Forbidden

Just tried on two separate computers. Any ideas?

hrbrmstr commented 9 years ago

I tried it yesterday for something and got the same error. Was going to debug tomorrow (travel + running an R workshop in Pittsburgh today).

I suspect they may be blocking the user agent which may mean I need to randomize it if some ne'er do well abused the service.

On Saturday, September 26, 2015, Robin notifications@github.com wrote:

Reproducible example:

osm_geocode(c("1600 Pennsylvania Ave, Washington, DC.",

  • "1600 Amphitheatre Parkway, Mountain View, CA",
  • "Seattle, Washington")) | | 0% Error connecting to geocode serviceError in doTryCatch(return(expr), name, parentenv, handler): client error: (403) Forbidden

Just tried on two separate computers. Any ideas?

— Reply to this email directly or view it on GitHub https://github.com/hrbrmstr/nominatim/issues/5.

rCarto commented 9 years ago

Mapquest just introduced a key/account system in their API services.

Robinlovelace commented 9 years ago

Note: ggmap::geocode() also seems to broken.

hrbrmstr commented 9 years ago

Thx. I'll get it adapted asap.

On Saturday, September 26, 2015, Timothée Giraud notifications@github.com wrote:

Mapquest just introduced a key/account system in their API services.

— Reply to this email directly or view it on GitHub https://github.com/hrbrmstr/nominatim/issues/5#issuecomment-143456387.

hrbrmstr commented 9 years ago

I just sucked in @rCarto's PR so one can specify alternate servers and will be changing defaults (which will burden the osm servers but hey) and also figuring out how to allow for using mapquest (I just got an API key) since it's still the preferred way and 15K reqs a month is pretty generous for free.

iskandari commented 8 years ago

I receive this error when trying to geocode: Error connecting to geocode serviceError in doTryCatch(return(expr), name, parentenv, handler): client error: (403) Forbidden

imlearningr commented 8 years ago

I received the same error today when I used the reverse_geocode_coords function . Is there any update or solution please? thank you so much!

"Error connecting to geocode serviceError in doTryCatch(return(expr), name, parentenv, handler): Forbidden (HTTP 403)."

raveem commented 8 years ago

20th April 2016, same error. I thought it was my code, but even the stock example doesn't work.

Rawrqs commented 8 years ago

I tried to use simple example today osm_search('Cracow University of Economics'), but this didn't work for me. I get an error:

Please provide a openstreet API key

I tried to specify the key parameter as my email address from OSM account. I don't want to use the Mapquest API instead

Any solution to that?

naumov-vladimir commented 6 years ago

This issue should be reopened because I experience the same error (403) even with OSM API key.

harleylang commented 5 years ago

Go to mapquest and get a free api key: https://developer.mapquest.com/

Then run the command like osm_search('London, Uk', key='yourkeyhere')