Good afternoon! What types of address components can contain a response to a reverse geocoding request? A complete list of types is required. What other types besides these: house_number road village town city county postcode country country_code Thank you in advance! asked 28 May '18, 13:28 Helen Kir edited 28 May '18, 14:06 |
One Answer:
The full list is in the A better list is https://github.com/OpenCageData/address-formatting/blob/master/conf/components.yaml Anything not in this file you can treat as a name of a place, e.g. name of a restaurant, building name. answered 28 May '18, 14:07 mtmail edited 28 May '18, 16:34 showing 5 of 10 show 5 more comments |
Thank you very much for such a prompt reply!
Unfortunately, I can not see the document: https://github.com/openstreetmap/Nominatim/blob/master/lib/lib.php, since I do not have access to Github.
How can I access?
Maybe you also know, how are the types of address components and administrative divisions request correlated?
@Helen Kir Unfortunately you're going to struggle with OSM software more generally if you don't have access to github. Is that a technical problem at your end that you can resolve, some sort of political issue, or something else?
Our company only plans to use OSM for reverse geocoding.
I have only read open information: https://wiki.openstreetmap.org/wiki/Nominatim I do not know about the obligatory access to the Github.
We will need to generate separate address parameters from the geocoding response.
Just to make sure - have you seen https://operations.osmfoundation.org/policies/nominatim/ ?
Most likely we will install our own copy Nominatim.
You don't need a GitHub account to view the document. Just remove the trailing comma from the URL.
thanks scai, I edited my answer and removed the comma
Oh, how simple, thanks!
The local version of Nominatim allows you to refine the query using addressdetails = [0 | 1] (Include a breakdown of the address into elements)?
Yes, it will. Example: https://nominatim.openstreetmap.org/search.php?q=university%20ave,%20palo%20alto&polygon_geojson=1&viewbox=&format=jsonv2&addressdetails=1
Thank you all for your help!