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


I would like to have a local server for two purposes: geocoding/reverse geocoding, as well as api-like queries.

It seems that Nominatim is good for the first purpose, while osmosis will be a tool that can serve the second purpose.

From what I've seen so far, Nominatim uses osm2pgsql to load the data, and the schema is different than the one osmosis can read.

Is there a solution for this or do I need to keep two copies of the data in two different schemas?


asked 02 Jan '14, 15:51

RazAlon's gravatar image

accept rate: 0%

Nominatim/osm2pgsql does keep a significant portion of the original data in the so-called "slim mode tables" in the PostgreSQL data base - queries like "I want way #1234 and all its tags and nodes" can (almost) be satisfied from that if you're willing to write a little glue code in a scripting language of your choice. What it doesn't usually keep is the user name and time of last modification, or the version number, and it will also throw away some tags, but depending on exactly how "api-like" you need it, maybe it's enough.

permanent link

answered 02 Jan '14, 16:09

Frederik%20Ramm's gravatar image

Frederik Ramm ♦
accept rate: 23%

Thank you Frederik.

I don't really care about versions and modifications, just the raw geo data.

I would like to use queries like "give me everything within a bbox" or "give me all ways within a bbox with amenity university or college"

Would such similar queries be possible with Nominatim?

Is there any other alternative for such queries (other than using osmosis to write and read)?

Looking at the tables created by osm2pgsql I guess the columns show which tags are kept, is this correct?


(02 Jan '14, 18:05) RazAlon

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]( "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: 02 Jan '14, 15:51

question was seen: 5,185 times

last updated: 02 Jan '14, 18:08

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