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

I want to set up both osm map and reverse geo code service locally. I am a bit confuse I know for osm map I need to setup postgres and other related tools. How about the nomatim database is it using the same postgre db ? How can I via my java application run a reverse geo code on this database?

asked 09 Jun '17, 18:35

newbie14's gravatar image

newbie14
319912
accept rate: 0%


Nominatim data will go into a separate database (called nominatim) but can be on the same postgres server. That means you have duplicate data with separate update processes on the same server. That's fine though, many companies run both on the same server.

Nominatim comes with a PHP frontend. You'd call http://localhost:8000/nominatim/reverse.php?lat=...&lon= and receive a JSON (or XML) response. Your Java app just calls the URL and doesn't need direct access to the Nominatim database.

Example response: http://nominatim.openstreetmap.org/reverse.php?lat=45.514&lon=-122.675

permanent link

answered 09 Jun '17, 19:54

mtmail's gravatar image

mtmail
4.8k1574
accept rate: 27%

@mtmail thank you clear a lot of my doubts. Is nominatim data in the form similar to osm then why can we run the reverse process on osm data itself? I got few more doubt like you see for osm I have been trying a lot to install on centos but it just fails so I deciced to go with ubuntu no choice. Is there a proper guide on how best to install nomatim and does it also work best on ubuntu?

(10 Jun '17, 04:10) newbie14
1

Nominatim's database is optimized for geocoding. In case of reverse geocoding for example many parent-child relationships (e.g. state-city) are pre-calculated. The install instructions for the stable Nominatim on Ubuntu 16 are on https://wiki.openstreetmap.org/wiki/Nominatim/Installation The scripts in https://github.com/openstreetmap/Nominatim/tree/master/vagrant use the latest (unstable) version I would avoid them for now. If you run into installation problems add an issue on https://github.com/openstreetmap/Nominatim/issues with the error message.

(10 Jun '17, 15:18) mtmail

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:

×710
×689
×85

question asked: 09 Jun '17, 18:35

question was seen: 2,866 times

last updated: 10 Jun '17, 15:18

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