shortbread-tiles / shortbread-docs

Documentation of the Shortbread vector tile schema
https://shortbread-tiles.org
Creative Commons Zero v1.0 Universal
25 stars 7 forks source link

Feature Request: Access restriction on roads #38

Open westnordost opened 6 months ago

westnordost commented 6 months ago

The information whether a road is accessible to the general public is currently missing from the vector tiles.

It would be convenient if the access restrictions would be conflated somehow, as on OSM, the access schema is quite complex. E.g. relevant for car drivers is not only access but also motor_vehicle.

pnorman commented 5 months ago

It's not too hard to process the access schema server-side to derive access for car/pedestrian/bike. Generally for rendering you want to simplify access levels into yes, some cases, and not the general public. It's not obvious if we should do that or the styles should.

We also want to avoid having three access attributes on every single road - we don't need to know that cars are allowed on a residential road because that's the norm and to include that property on every road would inflate tile size.

westnordost commented 5 months ago

Right, I think a single access value that applies for the expected vehicle type would be fine for the purpose of displaying a restriction on the map. Suggestions:

  1. For all roads down to service roads (but except pedestrian roads), only the access, vehicle and motor_vehicle key is considered. This means that if there is an access restriction for trucks only, this information is not included in the layer, which is fine for general purpose base maps, IMO

  2. For values...