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

I've come across a few single ways which someone would have to make a turn to follow.

Examples (images linked to the locations):

Fairway Court is a residential highway. It begins at Reynolds Mill Road as a divided highway. It becomes an undivided highway just 60m in. One of the ways for Fairway Court starts at Reynolds Mill Road, makes a U-turn where the roadways join, and follows opposite roadway back.

I would have used two ways that meet where the roadways join for this single way.

A highway=service way near a strip mall turns right at a T-junction.

I would have had one way going straight through the T-junction and another way ending at it, or, if I wanted to tag the two parts of the road that goes straight differently, I would use three ways for the two nodes, all meeting at the intersection.

These seem wrong to me. I'm worried that navigation systems will see these ways and think that a route that turns goes straight or vice versa. Are my fears unfounded? Should I change these to how I would have mapped them?

asked 29 Apr '15, 23:23

Beep21's gravatar image

Beep21
76124
accept rate: 0%

edited 30 Apr '15, 00:46


I would say your fears are unfounded. Routing algorithms can leave a way at any intersection (shared node with other ways). And I guess that following an osm way at such an intersection is usually not cheaper/faster than doing not. Routers create their own graph of distances between locations.

Just try it: routing with several routing engines on the osm.org homepage at the first image's location

So, you do not need to change this mapping. Yes, I personally, avoid to create such combined ways too, just because it feels strange in mind and maybe in a later detail level/mapping stage e.g. turn restrictions would need separate ways anyway.

permanent link

answered 30 Apr '15, 00:02

aseerel4c26's gravatar image

aseerel4c26 ♦
32.6k18248554
accept rate: 18%

edited 30 Apr '15, 00:05

1

This might be an extreme example, but I'd normally split the first example so if your route happened to take you along the whole of the one way section, such as http://osrm.at/c4t then you would get more meaningful instructions where you need to u-turn/take a sharp left, rather than the router treating the road as one you can drive straight along.

(30 Apr '15, 09:05) EdLoach ♦

Are you sure that OSRM will give different instructions if the road is split at the u-turn? I can't believe that.

(30 Apr '15, 09:25) scai ♦
1

See for example http://osrm.at/c55 which are separate roads, yet OSRM doesn't tell you to perform a sharp turn. In contrast, see http://osrm.at/c57 where the routing instructions contain a sharp turn, probably because the street names differ. The same applies for GraphHopper: one two.

(30 Apr '15, 18:43) scai ♦
1

@scai This is on the todo list and will be improved. In general I recommend to avoid mapping for the router :)

(30 Apr '15, 21:31) peatar

There's nothing to worry about. I've occasionally mapped like in your second example. From a data aesthetics point of view, I'd shy away from the first example. But there is nothing wrong with this. Routers should be clever enough to know not to follow the OSM way to it's end. I'm pretty sure all routers convert OSM data into their own format and then route on that.

permanent link

answered 30 Apr '15, 09:33

rorym's gravatar image

rorym
5.4k1449100
accept rate: 11%

3

I'd shy away from mapping like in the first example not because it might confuse renderers or routers, but because it might confuse future mappers. It's quite likely that some future tags may apply to only one side of the flare (sidewalk=right, perhaps?) so joining both sections of flare seems "riskier" to me, since they aren't part of the same "long straight road".

(30 Apr '15, 19:32) SomeoneElse ♦
1

@SomeoneElse: the same what I wrote in my "answer". Also directly mapping them separately means a more clear history later on (no split which creates one way with a new id).

(30 Apr '15, 20:26) aseerel4c26 ♦

A router can decide to leave a way at any node connecting it with another way (barring restrictions preventing it like oneway, access, etc.); they don't have to travel all the way to the end nodes.

In your first example, the router could turn off of Reynolds Mill Road onto the southern piece of Fairway Court, then leave that way at the middle of the highlighted way to continue on the single way to the northeast. There's no need to break this way into two parts.

In your second example, the router could turn off of the highlighted way onto any of the parking aisles. There's no need to break this way into 18 parts.

Edit: Looks like aseerel4c26 beat me to saying pretty much the same thing :)

permanent link

answered 30 Apr '15, 00:15

alester's gravatar image

alester
6.6k266100
accept rate: 28%

edited 30 Apr '15, 00:16

… indeed, get a faster keyboard! Jokes aside, you've nicely described a thought model of the router's single decisions (although this usually does not happen in really this way, if I understand usual routers correctly)!

(30 Apr '15, 00:37) aseerel4c26 ♦

I was more worried about the directions missing a turn than a bad route being generated, but indeed, aseerel4c26's answer has everything I need to know, and you seeing nothing wrong with the examples either is a nice confirmation.

I understood that routes can leave a way at any node.—In my second example I was only concerned about the southernmost node, where the way turns right. I had no problem with all the intersections it goes straight through.

(30 Apr '15, 00:44) Beep21

@Beep21: as far as I know (I only remotely dived into routing software/algorithms) the OSM data is transformed into a routing graph possibly loosing all "ways". So at each intersection the turn advise has to be generated based on the angle of the connections between two nodes. Your southernmost node? Let's turn "Sharp right". Did you fear that a router might say "go straight" / "follow the way"?

(30 Apr '15, 00:52) aseerel4c26 ♦

Yes. Thanks.

(30 Apr '15, 01:06) Beep21

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:

×352
×305
×223
×49
×22

question asked: 29 Apr '15, 23:23

question was seen: 4,651 times

last updated: 30 Apr '15, 21:31

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