NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

Hello, I managed to set up my own Nominatim Server.

  1. I would like to run mass geocoding, for example 100.000 Adresses that I want to enrich with lat/ lon. What would be the fastest / most efficient way to realize that via Nominatim?
  2. Can I run a script, that calculates me every adress in germany with lat / lon? In which language would that script be and could you maybe lead me to some helpful links?

Thanks in advance, yours truly, Stephano

asked 17 Aug '16, 13:09

Stephano007's gravatar image

Stephano007
617710
accept rate: 0%


Nominatim isn't different from other geocoders in that regard. There is an API, you request a URL in the programming language of your choice and receive a JSON or XML data structure back. Every programming language can do that.

The search parameters are documented here http://wiki.openstreetmap.org/wiki/Nominatim#Search and you would run a query against your own Nominatim server, e.g. http://localhost:8080/nominatim/search.php?...&format=json

permanent link

answered 17 Aug '16, 14:02

mtmail's gravatar image

mtmail
4.8k1574
accept rate: 27%

Although not for mass geocoding, see Nominatim's usage policy.

(17 Aug '16, 14:06) scai ♦

Ok thanks, if I want to enrich 100.000 adresses, I guess I have to make 100.000 single Querys, but I can automatize that via JavaScript, right?

(17 Aug '16, 14:09) Stephano007
2

Stephano007 wrote he setup his own Nominatim Server.

(17 Aug '16, 14:25) mtmail

Yes. With Javascript you need to watch out not to send too many requests at the same time because Javascript will not wait for a request to finish and start with the next request immediately. Limit it to 2-5 parallel requests as a start.http://caolan.github.io/async/ may help.

(17 Aug '16, 14:31) mtmail
1

@scai They have set up their own Nominatim server, so the Nominatim usage policy doesn't apply. (Wanting to do mass geocoding is one good reason for setting up your own server).

(18 Aug '16, 09:43) rorym

@Stephan007 Yes you can do that with Javascript. It's just a loop.

(18 Aug '16, 09:45) rorym
showing 5 of 6 show 1 more comments
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×689
×133

question asked: 17 Aug '16, 13:09

question was seen: 5,236 times

last updated: 18 Aug '16, 09:45

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum