This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

Where is nominatim adress keys list?

0

The example request:

http://nominatim.openstreetmap.org/reverse?format=json&lat=45.468401928178&lon=9.1730680478755&accept-language=en

Answer:

{
    ...
    "address" : {
        "cafe" : "Fiorio 1780",
        "house_number" : "26",
        "road" : "Via Vincenzo Monti",
        "suburb" : "Porta Vercellina",
        "city" : "Milan",
        "county" : "Milan",
        "state" : "Lombardy",
        "postcode" : "20123",
        "country" : "Italy",
        "country_code" : "it"
    },
    "boundingbox" : ["45.4681247", "45.4683247", "9.172875", "9.173075"]
}

The address keys are: cafe, house_number, road, suburb, city, county, state, postcode, country, country_code.

I want to find the list of all available address keys. If this list doesn't exists, I want to know relation between this keys and osm tags.

asked 16 Mar '17, 10:39

kz_sergey's gravatar image

kz_sergey
31224
accept rate: 0%


One Answer:

1

See the function getClassTypes() in lib.php. The relation between address key and OSM tags is purely defined by Nominatim internals.

answered 16 Mar '17, 11:04

scai's gravatar image

scai ♦
33.3k21309459
accept rate: 23%

Source code available on GitHub .