User:Impiaaa/Hierarchical access

From OpenStreetMap Wiki
Jump to navigation Jump to search

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.

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
way node Role accessfrom one The object that describes prerequisite access
way node Role accessto one or more The object that requires access from the Role accessfrom

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

  • amenity=bank
  • Role Role acessfrom in relation #1
  • Role Role accessto in relation #2

Relation #2

  • type=access
  • Bank as Role accessto
  • Grocery store as Role accessfrom

Grocery store

  • shop=supermarket
  • Role Role accessfrom in relation #2
  • Role Role accessto in relation #3

Relation #3

  • type=access
  • Grocery store as Role accessto
  • Shopping mall as Role accessfrom

Shopping mall

  • shop=mall
  • Role Role accessfrom in relation #3
Horton, KS post office interior facing SSE 1.JPG
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

  • type=access
  • Parking as Role accessto
  • Shop as Role accessfrom

Shop

  • shop=*
  • Role Role accessfrom in relation
The mentioned "customer" is obvious--routing and searching can act appropriately, depending on user intent.
Transportation Security Administration Checkpoint at John Glenn Columbus International Airport.jpg
Shops behind security checkpoint in airport

Shop

  • shop=*
  • Role Role accessto in relation

Relation

  • type=access
  • Shop as Role accessto
  • Security checkpoint as Role accessfrom

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

Rationale

All of the examples above can be expressed in the current schema, but only in a limited way. Currently, in order to communicate the relationship in the first example, all 4 objects would have to be indoor-mapped with corridors and appropriate entrances, no overlapping areas, and opening_hours=* on all 4. Without successively shorter opening_hours=*, a search engine wishing to filter out currently inaccessible locations would have to include a full routing engine to make that determination. Alternatively, a search engine could check for enclosed geometry, but this requires a geometry processing step that is out-of-scope for a search engine, and would fail for the postbox example. This proposal communicates complicated object relationships in a straightforward way and without needing to do complex mapping.