hrbrmstr / nominatim

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

Change country_codes to countrycodes #19

Open francisbarton opened 4 years ago

francisbarton commented 4 years ago

Also change address_details to addressdetails but I haven't tested that.

As documented at https://nominatim.org/release-docs/develop/api/Search/#parameters

Compare:

Haven't made changes to the params to osm_search because obviously this would break compatibility with existing usage.

I also added into the script an example of how to use country_codes, because I took a long time to work out the proper syntax for that myself! Thought it might be helpful to others.