This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

local Nominatim and R

1

Hello,

I need a batch geocoding server so I set up one in docker. But I need to do geocoding in R and package hrbrmstr/nominatim is mostly recommended for that. But it only provides the function for query to public OSM server. 'Enable switching Nominatim API server providers' is on its TODO list and the repo was updated two years ago. Is there any other solution for that. Thank you!

asked 02 Oct '17, 13:04

Jimmy_Jin's gravatar image

Jimmy_Jin
31223
accept rate: 0%

edited 04 Oct '17, 19:48

scai's gravatar image

scai ♦
33.3k21309459


One Answer:

1

I've never so much as looked at R but I suspect the answer is fork https://github.com/hrbrmstr/nominatim in github, search your copy for references to "openstreetmap.org" and change them to point at your nominatim server.

Or have you tried that and it is more complicated than that?

answered 02 Oct '17, 13:21

SomeoneElse's gravatar image

SomeoneElse ♦
36.9k71370866
accept rate: 16%

1

looks like there's a file specifying the querying URL

(02 Oct '17, 14:07) Jimmy_Jin

OK, I've tried that. It the package has a dependency of Mapquest API which only requires a hash instead of a public URL. So by code hacking, it's not doable.

(03 Oct '17, 08:22) Jimmy_Jin

Out of interest, which Mapquest API? I'd have thought that pretty much everything that Mapquest provide is available somewhere else (including self-hosted, but there may be practical reasons why that's not an option).

(03 Oct '17, 08:45) SomeoneElse ♦

Source code available on GitHub .