In the documentation for the reverse service of Nominatim I just see partly some levels of the address. I see some other parts further in the example for geojson.
What are the 18 levels of details for the address field, when we use the reverse API of Nominatim? asked 07 Mar '21, 13:45 João |
The other levels have no names. From the source code at https://github.com/osm-search/nominatim-ui/blob/master/src/lib/helpers.js#L129
The number 1-18 are used because those are map zoom level. Map zoom 0,1,2 usually show the whole world (depending on size of the monitor), while 18 was the maximum zoom on the OpenStreetMap. These days the maximun zoom is 21. answered 07 Mar '21, 13:56 mtmail Thank you, but I need to know what are really the exact object fields, such as seen here. For example
(07 Mar '21, 14:09)
João
Address levels for ranking are a bit more complex (https://nominatim.org/release-docs/develop/develop/Ranking/). https://github.com/osm-search/Nominatim/blob/master/settings/address-levels.json lists the most common but they're mapped to different ranks depending on country. https://github.com/OpenCageData/address-formatting/blob/master/conf/components.yaml lists more, and still that list isn't complete because OpenStreetMap data can contain every tag, a restaurant will have the field name 'restaurant', too, so there is likely over 1000 possible field names. The components.yaml covers the most common, usually everything else can be seen as the name of a place.
(07 Mar '21, 14:16)
mtmail
Related Nominatim FAQ entry https://nominatim.org/release-docs/latest/api/Output/#addressdetails
(07 Mar '21, 15:05)
mtmail
|