Why not ask your question on the new OpenStreetMap Community Forum?

Has anyone ever tried/accomplished adding custom tags into nominatim to geocode against?

Basically what I would like to accomplish is to be able to geocode store id #s with nominatim, for instance, retail stores have unique identifying numbers for their particular store.

I would like to be able to, for example, be able to add these tags under a custom tag store_id:123456 with something like the iD environment and then ingest that data into Nominatim to geocode against those custom store_id values.

Any suggestions? Thanks

asked 04 Sep '14, 13:46

olearytd12's gravatar image

accept rate: 0%

closed 21 Oct '14, 19:47

aseerel4c26's gravatar image

aseerel4c26 ♦

The question has been closed for the following reason "The question is self-answered (accepting own answers would not work here on this site) → closed" by aseerel4c26 21 Oct '14, 19:47

I ended up figuring this out myself, if anyone else is interested.

You can accomplish this by editing the output-gazetteer.c file in the osm2pgsql/ directory at the root of Nominatim. Add the custom "key" tag with the other name tags that are imported to the Nominatim database during ingest and you will have to rebuild Nominatim to pick up your changes to the gazetteer file.

Ingest your data that holds your custom key:value and you should be able to geocode that feature now.

permanent link

answered 07 Oct '14, 15:15

olearytd12's gravatar image

accept rate: 0%

Follow this question

By Email:

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



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:


question asked: 04 Sep '14, 13:46

question was seen: 5,109 times

last updated: 21 Oct '14, 19:47

powered by OSQA