NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the 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

olearytd12
41124
accept rate: 0%

closed 21 Oct '14, 19:47

aseerel4c26's gravatar image

aseerel4c26 ♦
32.6k18248554

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

olearytd12
41124
accept rate: 0%

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
×191
×133
×39
×5

question asked: 04 Sep '14, 13:46

question was seen: 5,593 times

last updated: 21 Oct '14, 19:47

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