Why not ask your question on the new OpenStreetMap Community Forum?

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%20Kir's gravatar image

Helen Kir
accept rate: 0%

edited 28 May '18, 14:06

The full list is in the getClassTypes method in https://github.com/openstreetmap/Nominatim/blob/master/lib/lib.php - look for the Label keys.

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.

permanent link

answered 28 May '18, 14:07

mtmail's gravatar image

accept rate: 28%

edited 28 May '18, 16:34

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
(28 May '18, 15:34) SomeoneElse ♦

Most likely we will install our own copy Nominatim.

(28 May '18, 15:54) Helen Kir

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

Thank you all for your help!

(29 May '18, 08:05) Helen Kir
showing 5 of 10 show 5 more comments
Your answer
toggle preview

Follow this question

By Email:

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



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:


question asked: 28 May '18, 13:28

question was seen: 1,909 times

last updated: 29 May '18, 08:05

powered by OSQA