NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the 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
11335
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

mtmail
4.8k1574
accept rate: 27%

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

Most likely we will install our own copy Nominatim.

(28 May '18, 15:54) Helen Kir
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

Thank you all for your help!

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

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:

×85
×36

question asked: 28 May '18, 13:28

question was seen: 2,604 times

last updated: 29 May '18, 08:05

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