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 |
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. answered 18 Oct '12, 15:06 Tordanik |
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.
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.
Just create a node which is part of the building, in the location where the entrance is. Then tag it with answered 18 Oct '12, 15:11 sleske |