NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

I am developping a web application and I use Nominatin service to get addresses.

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.

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.

I saw this post on Open Street Map Help : "https://help.openstreetmap.org/questions/61683/all-possible-fields-of-address-object".

But :

  • 1) it was in January 2018,
  • 2) the answer was "https://github.com/OpenCageData/address-formatting/blob/master/conf/components.yaml"
  • 3) and "https://github.com/openstreetmap/Nominatim/blob/6c1977b448e8b195bf96b6144674ffe0527e79de/lib/lib.php#L63"

The "https://github.com/osm-search/Nominatim/blob/v3.4.1/lib/lib.php" is different than witch I quoted above in point 3).

Concerning the above point 2) :

  • is OSM (Nominatim) using OpenCageData address-formatting ?
  • Can I rely on it to build my address table ?

Please help me...

Thanks in advance for your response.

asked 16 Apr '20, 11:17

Pasgirard's gravatar image

Pasgirard
11112
accept rate: 0%

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×202

question asked: 16 Apr '20, 11:17

question was seen: 838 times

last updated: 16 Apr '20, 11:17

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum