I'm interesting in estimating the best speed limit for each road in my app. Most of the roads do not have a maxspeed tag, therefore the default per-country rules should be applied: http://wiki.openstreetmap.org/wiki/OSM_tags_for_routing/Maxspeed A lot of these rules are supposing we know if a road is inside or outside place, which sounds to me that is inside or outside a city area.

But I can't figure out how to determine this case. On which tag could I rely to know this?

asked 04 Jul '17, 10:39

Fabien%20Rohrer's gravatar image

Fabien Rohrer
11113
accept rate: 0%

edited 04 Jul '17, 10:40


Legal rules vary in between countries. In Germany, there's special signage that tells you when you enter a populated place (and this is different from the administrative boundaries). These populated places ("geschlossene Ortschaft") are not explicitly mapped in OSM so you cannot find out which roads are inside and which are outside. Mappers in Germany tend to add explicit speed limits to roads inside.

I think your best bet might be to simply assume that anything that is a highway=residential or surrounded by highway=residential counts as part of a populated place. Of course this will lead to some errors both ways but it's the best I can come up with.

permanent link

answered 04 Jul '17, 10:46

Frederik%20Ramm's gravatar image

Frederik Ramm ♦
71.3k846451113
accept rate: 24%

Thank you, it seems it's indeed a good rule.

(04 Jul '17, 10:51) Fabien Rohrer
Your answer
toggle preview

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:

×40
×38
×1
×1

question asked: 04 Jul '17, 10:39

question was seen: 1,000 times

last updated: 04 Jul '17, 10:51

powered by OSQA