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 |
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 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?
(28 May '18, 14:44)
Helen Kir
@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?
(28 May '18, 14:51)
SomeoneElse ♦
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.
(28 May '18, 15:27)
Helen Kir
1
Just to make sure - have you seen https://operations.osmfoundation.org/policies/nominatim/ ?
(28 May '18, 15:34)
SomeoneElse ♦
2
You don't need a GitHub account to view the document. Just remove the trailing comma from the URL.
(28 May '18, 16:33)
scai ♦
thanks scai, I edited my answer and removed the comma
(28 May '18, 16:35)
mtmail
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)?
(28 May '18, 17:26)
Helen Kir
2
Yes, it will. Example: https://nominatim.openstreetmap.org/search.php?q=university%20ave,%20palo%20alto&polygon_geojson=1&viewbox=&format=jsonv2&addressdetails=1
(28 May '18, 17:29)
mtmail
Thank you all for your help!
(29 May '18, 08:05)
Helen Kir
showing 5 of 10
show 5 more comments
|