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

Hello,

I'm trying to add entrance to building in order to be able to use the building as a destination in a routing program. I would thus like to link the surrounding street to the building entrance so that the routing using a dijkstra like algorithm can lead to the entrance immediately. Do you know if i should add a small path from the road to the building or only add a node at the entrance? How should i set up the relations between the road and the building in order for them to be connected? How should i use the entrance tag in order to make this link?

Thank you for your help,

Matthieu

asked 18 Oct '12, 12:30

mataymans's gravatar image

mataymans
31112
accept rate: 0%


Usually, just inserting an entrance node (entrance=yes, or entrance=main/service/... if there are multiple entrances) into the building outline is enough. Routing engines will lead you to the point on a street that is nearest to your target, even without a mapped direct connection. Usually, this produces the desired result.

If you want to work at a very high level of detail, you can also add a path between the street and the entrance (if such a path exists in reality). In that case, the entrance node should be a shared node of that path and the building outline.

There is no need to use any relations for mapping this situation.

permanent link

answered 18 Oct '12, 15:06

Tordanik's gravatar image

Tordanik
12.0k15106147
accept rate: 35%

edited 18 Oct '12, 15:16

Do you know if i should add a small path from the road to the building or only add a node at the entrance?

You can do that if there really is a path from the road to the building. However, it should not be necessary for routing software. Routing SW will generally just find the road closest to your destination and guide you there, which will probably be enough. So for routing purposes, a node at the entrance is enough.

How should i set up the relations between the road and the building in order for them to be connected?

You just add addr: tags to the node, with the name of the street. The connection between road and building is then only implicit (by the name of the street). There is also a relation to make this explicit (http://wiki.openstreetmap.org/wiki/Relations/Proposed/Street), but it's not used frequently.

How should i use the entrance tag in order to make this link?

Just create a node which is part of the building, in the location where the entrance is. Then tag it with entrance=yes and with the address information.

permanent link

answered 18 Oct '12, 15:11

sleske's gravatar image

sleske
4.1k135678
accept rate: 24%

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:

×252
×22

question asked: 18 Oct '12, 12:30

question was seen: 5,280 times

last updated: 18 Oct '12, 15:16

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