7

I wanted to use r package nominatim for my program written in R. I tried to run very simple example osm_search('Cracow University of Economics'), however I got the following error:

Please provide a openstreet API key

I even made an account at https://www.openstreetmap.org/, however it still does not work after specifying the email parameter in the osm_search- I entered the email that I used during registration at OSM.

How do I obtain the right API key to use with nominatim package?

7

In the comments of the source code you linked there is an explanation:

@param key To access the openstreetmap API you need a valid API key. You can get it for free at https://developer.mapquest.com

For more info also see https://github.com/hrbrmstr/nominatim/issues/5

  • I tought that nominatim allows the user to use OSM API instead of Mapquest one? Correct me if wrong please. I don't want to use the Mapquest one. – Winter Oct 18 '16 at 20:42
  • Nominatim has a usage policy which allows some requests for creative and unexpected uses. The R package nominatim uses the MapQuest Nominatim API. The Readme of nominatim lists all information regarding the used API, usage policies and lists in the TODO the point "Enable switching Nominatim API server providers". – bennos Oct 19 '16 at 7:29

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.