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

I am not sure if I found a good title for my question, that's why it became so long. Please excuse both. (Anyone with a good short expression about what I mean?)

Certainly a plot describes it better: Imagine a city with a lot of streets and especially many possibilities to go from A to B and C and D etc. You come from the south and want to cross the city to the north. As the city has a nice little old part in the middle, the local authorities want drivers who only cross the city to drives along some streets in the east of the city. They have thus installed a series of direction signs to guide you respectively. But you would also have the chance to pass through the old city, it would even be better in terms of travel time, since the streets are also broad and without anything slowing you down. Still the signs tell differently and the authorities and the population don't want you to.

How can these direction signs respectively their preference for a route be mapped? Of course primarily to give routing applications the chance and "instruct" them to route according to the signs and target of the local authorities. But not only for the routers (I know we don't map only for the map and certainly not only for the routers ;-)), as the signs also are a part of the reality the exists and should be mapped from my point of view. Any relation to create a route for such? Or something else?

The routing applications will surely calculate on the type of streets and maxspeed, etc. And they don't have any other chance if they don't know about the signs.

asked 21 Sep '17, 08:19

geohobbes's gravatar image

geohobbes
1667813
accept rate: 33%

1

Are you looking for the destination key?

(21 Sep '17, 08:29) scai ♦

Thanks for pointing me at this key, which I was not aware of yet! It solves the mapping of the signs, definitely. But as far as I understood, it will not help the routing applications / navigation systems to guide us along these signs. So I would still be interested in how to achieve that.

(21 Sep '17, 14:41) geohobbes
1

Technically routers could use the destination key during route calculation. However this will make route calculations (much) more expensive. You will have to determine the cities along the route, i.e. perform regular geocoding. And you will have to calculate the route somehow backwards in order to know which cities you are going to drive through.

(21 Sep '17, 15:19) scai ♦

I agree. That's also why I think some sort of relation would be better for the intention, as in my comment to rorym below. And I think it would even be beneficial for the routers to make calculations less expensive. Instead of that they need to calculate a route through the city themselves, they could first look for an existing relation of that kind and use it, if it exists. I guess the lookup would not be much overhead (would it?) and the benefit would be big, no?

(22 Sep '17, 13:45) geohobbes
1

This would require to create relations for all kinds of possible routes. This is not feasible and not maintainable. User rorym already explained why these relations are usually not needed. There might be edge-cases of course, as there always will be.

(22 Sep '17, 14:09) scai ♦

Routers may go around if the authorities have set the speed restrictions low enough, and we map them!

(23 Sep '17, 15:54) andy mackey
showing 5 of 6 show 1 more comments

In most countries, the roads around the edge of the city would have a higher class (say, highway=primary) and those in the centre of the city a lower class (highway=unclassified or highway=residential). The highway= tag indicates a road's importance in the connected highway network.

permanent link

answered 22 Sep '17, 15:09

Richard's gravatar image

Richard ♦
30.9k44279412
accept rate: 18%

I don't think there is a relation for that. Usually, in my experience, the outer "ring road" will be a higher road classification than the inner part. There are other ways to map things which routers can use to figure out that they should not route through the middle. I presume the speed limits in the middle will be lower. There will probably also be more traffic lights, pedestrian crossings, and yield/give way junctions. Routers use this sort of data to guess at how fast a route is (lots of traffic lights makes things slower).

You could also map the width of the roads (although that's hard and I don't think any software uses that). Mapping the number of lanes might help the router to figure out what is the 2 lane ring road and which is the 1 lane inner city road. You can also map what the destination of the lane is

permanent link

answered 21 Sep '17, 08:45

rorym's gravatar image

rorym
5.4k1449100
accept rate: 11%

That's a pity, if there is no possibility. Sure, you are right about all the possibilities by which the routers might decide to take the preferred route. My example is certainly a little over-exaggerated to neglect all difference, as I wanted to make clear what I mean. But I definitely had the case quite some times that the router chose wrongly and in which I was quite sure that it was due to pretty similar road conditions regarding what you mentioned. So I think it would be beneficial for OSM completeness and a being better data source than others, for the local people and for the navigated users, if anything would exist that would offer the possibility. Aren't hiking routing applications using the approach that I am think of, if they chose parts / legs of specified hiking routes in OSM data, instead of the shortest way? Some sort of "direction route relation" or "through traffic relation" or "transit traffic relation" could be used as an offer for routers / navigation systems, to route the users exactly how the signs tell them, what do you think?

(21 Sep '17, 15:03) geohobbes
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:

×305
×193
×41
×27
×1

question asked: 21 Sep '17, 08:19

question was seen: 2,828 times

last updated: 23 Sep '17, 21:31

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