You are not logged in.

Announcement

*** NOTICE: forum.openstreetmap.org is being retired. Please request a category for your community in the new ones as soon as possible using this process, which will allow you to propose your community moderators.
Please create new topics on the new site at community.openstreetmap.org. We expect the migration of data will take a few weeks, you can follow its progress here.***

#1 2020-07-31 11:27:31

ondychrbi
Member
Registered: 2020-07-31
Posts: 2

Identify ways which represent streets in OpenStreetMap OSM file

Hi everyone,
I am working on my bachelor thesis and I am little confused about how the names of the streets are identified in osm files. Regarding https://wiki.openstreetmap.org/wiki/Addresses, there is a lot of ways how to describe the street. I understood that the main way is to write it into a tag with the key addr:street. But I found also that names are written to the tag with key "name". For example:

 <way id="28922191" user="Bohdan Kotouček" uid="343107">
  <nd ref="288327587"/>
  <nd ref="317937186"/>
  <nd ref="277769044"/>
  <tag k="hgv" v="destination"/>
  <tag k="highway" v="residential"/>
  <tag k="name" v="Palackého"/>
  <tag k="noexit" v="yes"/>
  <tag k="source" v="cuzk:km"/>
 </way> 

Is there any way how to classify this way as street? I am not sure if the name tag is the best method because I found the way with the name of the restaurant inside it.

Thanks a lot

Offline

#2 2020-07-31 13:01:55

alan_gr
Member
Registered: 2017-11-27
Posts: 128

Re: Identify ways which represent streets in OpenStreetMap OSM file

Streets are represented by ways tagged with the highway key described here: https://wiki.openstreetmap.org/wiki/Key:highway . Their names are stored in the name= tag. These two ways make up the street you are looking at:
https://www.openstreetmap.org/way/28922117 , https://www.openstreetmap.org/way/28922191 . The two segments share the same name but differ in other properties.

This particular example is highway=residential, a residential street or road. Depending on what exactly you mean by "street" you might want to exclude some highway types, for example maybe you wouldn't think of a motorway as a "street".

The addr:street tag is used to store the street address of objects that are not streets themselves, such as buildings, shops, restaurants, and many others. Sometimes rather than being directly attached to one of these objects, an address node is simply place at the relevant location, for example on your example street: https://www.openstreetmap.org/node/296837144

Offline

#3 2020-07-31 13:37:48

PHerison
Member
From: Rhein-Main
Registered: 2008-04-04
Posts: 1,770

Re: Identify ways which represent streets in OpenStreetMap OSM file

alan_gr wrote:

Streets are represented by ways tagged with the highway key described here: https://wiki.openstreetmap.org/wiki/Key:highway . Their names are stored in the name= tag. ...

Also keep in mind that streets sometimes do not have a name but are referenced by some kind of index (e.g.
'B 558'). In those cases these the number is stored in the tag "ref".

Offline

#4 2020-07-31 14:19:41

ondychrbi
Member
Registered: 2020-07-31
Posts: 2

Re: Identify ways which represent streets in OpenStreetMap OSM file

Thanks for replies guys.
Your answers really helped me to understand the problem.

Offline

Board footer

Powered by FluxBB