OSM Inspector/Views/Addresses

From OpenStreetMap Wiki
Jump to: navigation, search

The Addresses view in OSM Inspector shows addresses including house numbers, postal code areas etc. mapped according to the Karlsruhe Schema.

Contents

Overview

There is no standard for mapping addresses, house numbers, postal codes, etc. in OpenStreetMap. But most people use the Karlsruhe schema for addresses. This layer shows address information tagged according to the simple model of the Karlsruhe Schema. It does not include the "relational option".

Data sources

All data in this view is derived from OSM data.

Layers

Depending on zoom level the layers Postcode areas and Outline of postcode areas show pink areas or their outlines. The areas are computed from all nodes and ways tagged with a postcode, to be more exact, all nodes and ways tagged with addr:postcode=* are taken and the convex hull for any combination of addr:postcode=* algorithm will be used. There is an ongoing discussion whether it makes sense to add addr:country=* to so many objects. In the future the algorithm might take country boundaries into account. These layers are currently not available, because they can't show the postal code areas properly without the addr:country tag and this lead to too many confusions.

Nodes with defined addresses are shown as black dots. If you zoom in far enough the house numbers are shown.

The nodes can be connected by blue House number interpolation lines. For interpolation of only odd numbers a single line is shown, for even numbers a double line. For all numbers a thick blue line.

On the interpolation lines grey Nodes with interpolated addresses will appear. They don't exist in the database, but are calculated from the end nodes and the information in the interpolation line.

The Interpolation errors layer shows interpolation lines (ways tagged with addr:interpolation=*) that the OSM Inspector didn't understand or that don't make sense. The following errors are possible (the error text is shown when zoomed in far enough):

needless The difference between first and last house number is 1 and the type is all. No interpolation line is needed here.
endpoint_wrong_format One or both of the endpoints are not integers.
interpolation_even_but_number_odd The interpolation line is tagged as addr:interpolation=even but at least one of the endpoints is an odd number.
interpolation_odd_but_number_even The interpolation line is tagged as addr:interpolation=odd but at least one of the endpoints is an even number.
different_tags_on_endpoints One or more of the tags addr:street=*, addr:postcode=*, addr:city=*, addr:country=*, or addr:fulladdr=* on the end nodes is different.
unknown_type Value of addr:interpolation=* is something other than all, odd, or even.

All Buildings are shown as ocher filled polygons (holes in those polygons are not shown). Buildings with addresses are shown in the same ocher with a darker outline. When zoomed in far enough the house number is shown in the middle of the building.

For routing applications you have to know a point on a road near the node/building you are interested in. The green Connection point on roads layer shows the nearest point to some node/way with an address. The Connection lines layer shows the connection between the node/building and this connection point. The Nearest Road layer shows the nearest road as a green line along with the name of the street.

The nearest road is computed as follows: The value of the addr:street=* of the node or way (building) is searched for among all the name=*s of ways tagged with highway=*. Only streets within 0.01 degrees (about 1km) are found. To find the connection point/line a perpendicular is dropped from the node with the address to the found way. For buildings the centroid of the outline polygon is used.

If the street for a node couldn't been found (because a street of that name doesn't exist in the about 1km radius) it is shown in the Street not found layer as a red dot. If the node/building doesn't have a addr:street tag it will show up in the No addr:street tag layer with a pink dot.

The Ways tagged with postal_code layer is the odd one out. It shows roads (or other ways) tagged with postal_code=*. This tag is not used in the Karlsruhe schema. It is an older scheme where the streets themselves are tagged with the postal code.

Discussion

That discussion belongs on Karlsruhe Schema -- Joto 22:28, 18 November 2008 (UTC)
That page states that addr:street is optional, so I think his question was: Why does the inspector mark a node as "street not found" just because it has no addr:street set? (See also my message on talk-de) --Schuetzm 16:11, 19 December 2008 (UTC)
Its not widely used. There are only a few hundred of those tags vs. tens of thousands for the other scheme. Of course this might change in the future and I'll try to reflect actual usage in the Inspector. -- Joto 08:43, 25 November 2008 (UTC)
Roughly two years now have passed. :-) I would love to see an update of your statement, Joto. Will Geofabrik consider inclusion of address relations for the address view of OSM inspector? That would be great! --SB79 21:34, 4 November 2010 (UTC)

See also

Personal tools
Namespaces
Variants
Actions
site
Toolbox