This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

extract the Tag:highway width from OSM

0

Hello Is there a way to extract the width of the road? I notice that the Tag:highway have an attribute called width, but when I use this attribute, it will give me the with of a barrier or a wall, but not the with of secondary or primary road, for example I'm just wondering can we extract this information.

asked 26 Jun '21, 17:00

rabeeqasem's gravatar image

rabeeqasem
318811
accept rate: 0%


2 Answers:

4

The highway= and width= are both keys in the database, one is not an attribute for another although they are complementary.

The completeness of OSM varies from place to place. Widths are relatively difficult to measure accurately especially on busy roads. Depending on your application you may find that the lanes tags provides a reasonable proxy for a true width. While this is much more widely used the same caveat applies. Only approximately 6% of objects with a highway tag also have lanes tagged (compared with 1.3% for width).

answered 26 Jun '21, 21:17

InsertUser's gravatar image

InsertUser
11.0k1369185
accept rate: 19%

0

Hi are you able to give us an example of the situation ? A possibility is that no one has added the width of the main road, but only the width of the barrier.

answered 26 Jun '21, 20:43

Hendrikklaas's gravatar image

Hendrikklaas
9.3k207238387
accept rate: 5%

Source code available on GitHub .