openmaptiles/layers/transportation
Jake Low 9fd6f078c2
Add 'official' boolean property to foot paths (#1707)
This adds a field called `official` to `highway={path,footway,cycleway,bridleway}` features in the `transportation` layer. The field's value is:
- `0` if the OSM element is tagged `informal=yes`
- `1` if the feature has an `operator` in OSM (or is tagged `informal=no`)
- unset otherwise (this is the large majority of cases in the data today, especially when considering sidewalks, bike lanes, etc that aren't typically tagged with an `operator`).

**Questions I have about whether this PR is correct:**
1. The `official` field is conceptually an optional boolean. I chose to make it an `int` because I saw that existing boolean fields in the tiles (e.g. `intermittent` on waterways, `toll` on roads) have been implemented as 0/1 integers. Is this the right type for this field?
2. I added `description` and `values` fields to the transportation layer's `mapping.yaml` file. Is there anything else I should do to document this new field? Not sure how the schema docs on opentrailmap.org are built, but I am assuming they're generated from these mapping files somehow.
2025-09-30 11:26:56 +02:00
..
README.md
class.sql
etl_diagram.png
highway_name.sql
mapping.yaml Add 'official' boolean property to foot paths (#1707) 2025-09-30 11:26:56 +02:00
mapping_diagram.png
network_type.sql
style.json
transportation.sql Add 'official' boolean property to foot paths (#1707) 2025-09-30 11:26:56 +02:00
transportation.yaml Add 'official' boolean property to foot paths (#1707) 2025-09-30 11:26:56 +02:00
update_route_member.sql
update_transportation_merge.sql Add 'official' boolean property to foot paths (#1707) 2025-09-30 11:26:56 +02:00

README.md

transportation

Docs

Read the layer documentation at http://openmaptiles.org/schema#transportation

Mapping Diagram

Mapping diagram for transportation

ETL diagram

ETL diagram for transportation