<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  </head>
  <body>
    Good morning,<br>
    <br>
    I apologize in advance if this is the incorrect contact channel for
    my question.<br>
    I posted it on OSM help forum in April and I had no answer.<br>
    <p>I am developping a web application and I use Nominatin service to
      get addresses. </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.</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.</p>
    <p>I saw this post on Open Street Map Help :
      <a class="moz-txt-link-rfc2396E"
href="https://help.openstreetmap.org/questions/61683/all-possible-fields-of-address-object">"https://help.openstreetmap.org/questions/61683/all-possible-fields-of-address-object"</a>.</p>
    <p>But :</p>
    <ul>
      <li>1) it was in January 2018,</li>
      <li>2) the answer was
        <a class="moz-txt-link-rfc2396E"
href="https://github.com/OpenCageData/address-formatting/blob/master/conf/components.yaml">"https://github.com/OpenCageData/address-formatting/blob/master/conf/components.yaml"</a></li>
      <li>3) and
        <a class="moz-txt-link-rfc2396E"
href="https://github.com/openstreetmap/Nominatim/blob/6c1977b448e8b195bf96b6144674ffe0527e79de/lib/lib.php#L63">"https://github.com/openstreetmap/Nominatim/blob/6c1977b448e8b195bf96b6144674ffe0527e79de/lib/lib.php#L63"</a></li>
    </ul>
    <p>The <a class="moz-txt-link-rfc2396E"
        href="https://github.com/osm-search/Nominatim/blob/v3.4.1/lib/lib.php">"https://github.com/osm-search/Nominatim/blob/v3.4.1/lib/lib.php"</a>
      is different than witch I quoted above in point 3).</p>
    <p>Concerning the above point 2) :</p>
    <ul>
      <li>is OSM (Nominatim) using OpenCageData address-formatting ?</li>
      <li>Can I rely on it to build my address table ?</li>
    </ul>
    <p>Please help me...</p>
    <p>Many thanks in advance for your response.</p>
    <p><br>
    </p>
    Pascal Girard
  </body>
</html>