User:Impiaaa/Hierarchical access
This page is some notes on what could become a new relation type to describe complex access relationships. Read the examples to get an idea of what this could apply to.
Rationale
This proposal was inspired by wanting to map an ATM, that's inside a bank, that's inside a supermarket, that's inside a shopping mall. A search engine might want to display the opening_hours=* or the wheelchair=* accessibility of the ATM. With current OpenStreetMap tags, to express the relationship between the objects, they could be mapped two ways. First, all 4 objects could be indoor-mapped with corridors and appropriate entrances. This would theoretically allow a search engine to see that the route to the ATM is blocked by the "outer" features, but routing is outside the scope of a search engine, and indoor mapping is not trivial. Second, successively shorter opening_hours=* and wheelchair=* could be mapped on all four features, but this adds maintenance burden, and is only verifiable by secondary information. A third possible solution would be to map each "outer" object as overlapping areas, so a search engine could check for enclosed geometry, but this is again not trivial to map, it requires a geometry processing step that is out-of-scope for a search engine, and it would fail for cases like the postbox example below. This proposal communicates complicated object relationships in a straightforward way and without needing to do complex mapping.
Tags
| Key | Value | Explanation |
|---|---|---|
type
|
access (conflicting with existing usage! TODO find a better name)
|
This is an access relation |
access
|
*
|
Used to describe access restrictions only if it cannot be described in the tags of either member |
Members
| Way or Node | Role | Recurrence? | Explanation |
|---|---|---|---|
|
one | The object that describes prerequisite access | |
|
one or more | The object that requires access from the
|
Examples
| Picture | English description | Tags | Benefits over current schema |
|---|---|---|---|
| Link | ATM inside a bank inside a grocery store inside a shopping mall |
ATM Relation #1 Bank Relation #2 Grocery store
Relation #3 Shopping mall |
|
| Post drop box accessible when the enclosing post office is closed |
Mailbox Post office No additional relations, or |
The mailbox can be a node within an area for the post office building. Geometry-based access checking would fail without mapping the post office indoor area separately, or displacing the mailbox node. | |
| Link | Customer-only parking |
Parking Relation Shop
|
The mentioned "customer" is obvious--routing and searching can act appropriately, depending on user intent. |
| Shops behind security checkpoint in airport |
Shop
Relation Security checkpoint
|
No need for indoor mapping, or re-appropriating access=permit.
|
Prior art
Relations/Proposed/Provides feature
Undocumented, seems to cover the same cases, but specifically for roads
Misspelling
Undocumented, conflicting name, seems to be a "group" relation, to apply access tags to all members
Tag:amenity=cafe#Cafes inside other shops / amenities
type=site Apparently used to map e.g. parking lots at large venues like stadiums.
