<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>
<div><a href="https://wiki.openstreetmap.org/wiki/Addresses">https://wiki.openstreetmap.org/wiki/Addresses</a> may be helpful, it is an attempt to<br></div><div>document how addresses are tagged in OSM<br></div><div><br></div><blockquote class="tutanota_quote" style="border-left: 1px solid #93A3B8; padding-left: 10px; margin-left: 5px;"><ul><li>is OSM (Nominatim) using OpenCageData address-formatting ?"</li></ul></blockquote><div><br></div><div>Depends on what you mean by that. Nominatim is extracting geocoding info<br></div><div>from OSM (and it may or may not use OpenCageData address-formatting)<br></div><div><br></div><div>OSM (database edited by mappers) is not using OpenCageData format<br></div><div>but its own tagging system documented in <a href="https://wiki.openstreetmap.org/wiki/Addresses" rel="noopener noreferrer" target="_blank">https://wiki.openstreetmap.org/wiki/Addresses</a><br></div><div><br></div><div>BTW, if <a href="https://wiki.openstreetmap.org/wiki/Addresses" rel="noopener noreferrer" target="_blank">https://wiki.openstreetmap.org/wiki/Addresses</a> will be confusing or unclear please comment<br></div><div>at <a href="https://wiki.openstreetmap.org/w/index.php?title=Talk:Addresses&action=edit§ion=new">https://wiki.openstreetmap.org/w/index.php?title=Talk:Addresses&action=edit§ion=new</a><br></div><div>and there is decent chance that documentation will be improved<br></div><div><br></div><div>May 11, 2020, 15:06 by pascal.girard@insa-lyon.fr:<br></div><blockquote class="tutanota_quote" style="border-left: 1px solid #93A3B8; padding-left: 10px; margin-left: 5px;"><div>Good morning,<br></div><div> <br></div><div> I apologize in advance if this is the incorrect contact channel for
my question.<br></div><div> I posted it on OSM help forum in April and I had no answer.<br></div><div> <br></div><p>I am developping a web application and I use Nominatin service to
get addresses.<br></p><p>In JSON format, Nominatin sends an address object like this :
"address": {"road": "Hillcrest Road", "suburb": "Gidea Park",
"city": "London Borough of Havering", "state_district": "Grand
Londres","state": "Angleterre", "postcode": "RM11 1EA", "country":
"Royaume-Uni", "country_code": "gb"}. Of course, address fields
change depending on the country.<br></p><p>In the database of our web application, we would like to build a
table to store all fields of an address object of OSM, because we
want to be compatible to all addresses around the world. I've been
looking for days, for the list of all fields contained in an
address object of OSM : on the net, in documentations, in
nominatim and osm2pgsql code.<br></p><p>I saw this post on Open Street Map Help : <a href="https://help.openstreetmap.org/questions/61683/all-possible-fields-of-address-object" class="" rel="noopener noreferrer" target="_blank">"https://help.openstreetmap.org/questions/61683/all-possible-fields-of-address-object"</a>.<br></p><p>But :<br></p><ul><li>1) it was in January 2018,<br></li><li>2) the answer was <a href="https://github.com/OpenCageData/address-formatting/blob/master/conf/components.yaml" class="" rel="noopener noreferrer" target="_blank">"https://github.com/OpenCageData/address-formatting/blob/master/conf/components.yaml"</a><br></li><li>3) and <a href="https://github.com/openstreetmap/Nominatim/blob/6c1977b448e8b195bf96b6144674ffe0527e79de/lib/lib.php#L63" class="" rel="noopener noreferrer" target="_blank">"https://github.com/openstreetmap/Nominatim/blob/6c1977b448e8b195bf96b6144674ffe0527e79de/lib/lib.php#L63"</a><br></li></ul><p>The <a href="https://github.com/osm-search/Nominatim/blob/v3.4.1/lib/lib.php" class="" rel="noopener noreferrer" target="_blank">"https://github.com/osm-search/Nominatim/blob/v3.4.1/lib/lib.php"</a> is different than witch I quoted above in point 3).<br></p><p>Concerning the above point 2) :<br></p><ul><li>is OSM (Nominatim) using OpenCageData address-formatting ?<br></li><li>Can I rely on it to build my address table ?<br></li></ul><p>Please help me...<br></p><p>Many thanks in advance for your response.<br></p><p><br></p><div>Pascal Girard<br></div></blockquote><div><br></div> </body>
</html>