Nominatim/Development overview

From OpenStreetMap Wiki
Jump to: navigation, search

Contents

Overview

Nominatim comprises of:

Nominatim indexes all named features and a selection of points of interest and provides search, reverse geocoding and some gazetteer functionality.

Tags Processed

The following name tags are currently imported

Names

(This list was extended on 25/2/2010 but no existing data was re-imported)

Country

Postcodes

Is In

House Numbers

Street

Indexing / Address Calculation

Country to Street level

All indexed features are converted to a simple heirachy (rank) of importance with points scored between 0 and 30 (where 0 is most important). Rank takes account of differences in interpretation between different countries but is generally calculated as:

For each feature down to level 26 (street level) a list of parents are calculated using the following algorithm:

  1. All polygon / multi-polygon areas which contain this feature (in order of size)
  2. All items by name listed in the is_in are searched for within the current country (in no particular order)
  3. The nearest feature for each higher rank, and all others within 1.5 times the distance to the nearest (in order of distance)

and a list of keywords are generated from those features.

During the indexing process an address is also calculated using the first feature found for each level. Where an is_in value is provided it is used to filter the address.

Building Indexing

Buildings, houses and other lower than street level features (i.e. Bus Stops, Phone Boxes, etc) are indexed by relating them to their most appropriate nearby street.

The street is calculated as:

  1. the street member of an associatedStreet relation
  2. if the node is part of a way:
    1. if this way is street level, than that street
    2. the street member of an associatedStreet relation that this way is in
    3. a street way with 50/100 meters and parallel with the way we are in
  3. a nearby street with the name given in addr:street of the feature we are in or the feature we are part of
  4. the nearest street (up to 3 miles)
  5. not linked

All address information is then obtained from the street. As a result addr:* tags on low level features are not processed (except as above).

For interpolated ways simple numerical sequences are extrapolated (alpha numerical sequences are not currently handled) and additional building nodes are inserted into the way by duplicating the first (lowest) house number in the sequence.

Search Algorithm

TODO

Personal tools
Namespaces
Variants
Actions
site
Toolbox