# HuntGrid Offroad's OpenStreetMap tracks and trails (docs/offroad/PLAN.md R4.1a, RF24, Appendix C.2): Planetiler custom # schema run by tools/geodata/offroad-osm/build. Layers `ways` and `places` (R4.1b): Planetiler's YAML schemas don't read route relations, # so the `routes` layer is built by tools/geodata/offroad-osm/routes (GDAL's OSM driver + tippecanoe) and joined into the # same file. ODbL: its own tileset, never joined with official data in tiles, tables or offline packs (RJ-14). Every # feature keeps the same tags (ATTRS below) and nothing else: test_offroad_osm.py checks the list. schema_name: HuntGrid Offroad OSM schema_description: OpenStreetMap tracks, trails and unpaved roads for riders (unofficial; never a legal verdict) attribution: © OpenStreetMap contributors args: area: description: Geofabrik area to download (or "planet") default: michigan osm_url: description: OSM URL to download default: '${ args.area == "planet" ? "aws:latest" : ("geofabrik:" + args.area) }' sources: osm: type: osm url: '${ args.osm_url }' definitions: attributes: &attributes - key: highway - key: name - key: ref - key: access - key: motor_vehicle - key: motorcar - key: motorcycle - key: atv - key: ohv - key: snowmobile - key: '4wd_only' - key: access:conditional - key: motor_vehicle:conditional - key: motorcar:conditional - key: motorcycle:conditional - key: atv:conditional - key: ohv:conditional - key: snowmobile:conditional - key: '4wd_only:conditional' - key: smoothness - key: surface - key: tracktype - key: width - key: maxwidth - key: trail_visibility - key: ford - key: operator - key: designation layers: - id: ways features: # Tracks from z10. - source: osm geometry: line min_zoom: 10 include_when: highway: track attributes: *attributes # Service roads that aren't driveways, parking aisles or alleys (no service=* subtag), and unclassified roads that # are unpaved or graded (surface or tracktype), from z11. - source: osm geometry: line min_zoom: 11 include_when: __any__: - __all__: highway: service service: '' - __all__: - highway: unclassified - surface: [unpaved, compacted, fine_gravel, gravel, pebblestone, rock, dirt, earth, ground, grass, mud, sand, woodchips, clay, snow, ice] tracktype: __any__ attributes: *attributes # Paths and bridleways from z12. - source: osm geometry: line min_zoom: 12 include_when: highway: [path, bridleway] attributes: *attributes - id: places # Places riders plan around (R4.1b), from z12: fuel (with its fuel:* kinds and hours), chargers, toilets, drinking # water, campsites and pitches, trailheads, and truck-and-trailer parking (amenity=parking tagged hgv or trailer). # Nodes as points, areas as a point on their surface. Every place keeps `kind` and these tags, nothing else. # ODbL, in this tileset only. features: - source: osm geometry: point min_zoom: 12 include_when: {amenity: fuel} attributes: - key: kind value: fuel - key: name - key: operator - key: brand - key: opening_hours - key: access - key: fee - key: capacity - key: hgv - key: trailer - key: 'fuel:diesel' - key: 'fuel:octane_87' - key: 'fuel:octane_89' - key: 'fuel:octane_91' - key: 'fuel:octane_95' - key: 'fuel:octane_98' - key: 'fuel:e10' - key: 'fuel:e85' - key: 'fuel:lpg' - key: 'fuel:cng' - key: 'fuel:biodiesel' - key: 'fuel:adblue' - source: osm geometry: polygon_point_on_surface min_zoom: 12 include_when: {amenity: fuel} attributes: - key: kind value: fuel - key: name - key: operator - key: brand - key: opening_hours - key: access - key: fee - key: capacity - key: hgv - key: trailer - key: 'fuel:diesel' - key: 'fuel:octane_87' - key: 'fuel:octane_89' - key: 'fuel:octane_91' - key: 'fuel:octane_95' - key: 'fuel:octane_98' - key: 'fuel:e10' - key: 'fuel:e85' - key: 'fuel:lpg' - key: 'fuel:cng' - key: 'fuel:biodiesel' - key: 'fuel:adblue' - source: osm geometry: point min_zoom: 12 include_when: {amenity: charging_station} attributes: - key: kind value: charging - key: name - key: operator - key: brand - key: opening_hours - key: access - key: fee - key: capacity - key: hgv - key: trailer - key: 'fuel:diesel' - key: 'fuel:octane_87' - key: 'fuel:octane_89' - key: 'fuel:octane_91' - key: 'fuel:octane_95' - key: 'fuel:octane_98' - key: 'fuel:e10' - key: 'fuel:e85' - key: 'fuel:lpg' - key: 'fuel:cng' - key: 'fuel:biodiesel' - key: 'fuel:adblue' - source: osm geometry: polygon_point_on_surface min_zoom: 12 include_when: {amenity: charging_station} attributes: - key: kind value: charging - key: name - key: operator - key: brand - key: opening_hours - key: access - key: fee - key: capacity - key: hgv - key: trailer - key: 'fuel:diesel' - key: 'fuel:octane_87' - key: 'fuel:octane_89' - key: 'fuel:octane_91' - key: 'fuel:octane_95' - key: 'fuel:octane_98' - key: 'fuel:e10' - key: 'fuel:e85' - key: 'fuel:lpg' - key: 'fuel:cng' - key: 'fuel:biodiesel' - key: 'fuel:adblue' - source: osm geometry: point min_zoom: 12 include_when: {amenity: toilets} attributes: - key: kind value: toilets # docs/backcountry/PLAN.md B2.2b: pit, flush or chemical (a backcountry thunderbox is a pit). - key: 'toilets:disposal' - key: name - key: operator - key: brand - key: opening_hours - key: access - key: fee - key: capacity - key: hgv - key: trailer - key: 'fuel:diesel' - key: 'fuel:octane_87' - key: 'fuel:octane_89' - key: 'fuel:octane_91' - key: 'fuel:octane_95' - key: 'fuel:octane_98' - key: 'fuel:e10' - key: 'fuel:e85' - key: 'fuel:lpg' - key: 'fuel:cng' - key: 'fuel:biodiesel' - key: 'fuel:adblue' - source: osm geometry: polygon_point_on_surface min_zoom: 12 include_when: {amenity: toilets} attributes: - key: kind value: toilets # docs/backcountry/PLAN.md B2.2b: pit, flush or chemical (a backcountry thunderbox is a pit). - key: 'toilets:disposal' - key: name - key: operator - key: brand - key: opening_hours - key: access - key: fee - key: capacity - key: hgv - key: trailer - key: 'fuel:diesel' - key: 'fuel:octane_87' - key: 'fuel:octane_89' - key: 'fuel:octane_91' - key: 'fuel:octane_95' - key: 'fuel:octane_98' - key: 'fuel:e10' - key: 'fuel:e85' - key: 'fuel:lpg' - key: 'fuel:cng' - key: 'fuel:biodiesel' - key: 'fuel:adblue' - source: osm geometry: point min_zoom: 12 include_when: {amenity: drinking_water} attributes: - key: kind value: water - key: name - key: operator - key: brand - key: opening_hours - key: access - key: fee - key: capacity - key: hgv - key: trailer - key: 'fuel:diesel' - key: 'fuel:octane_87' - key: 'fuel:octane_89' - key: 'fuel:octane_91' - key: 'fuel:octane_95' - key: 'fuel:octane_98' - key: 'fuel:e10' - key: 'fuel:e85' - key: 'fuel:lpg' - key: 'fuel:cng' - key: 'fuel:biodiesel' - key: 'fuel:adblue' - source: osm geometry: polygon_point_on_surface min_zoom: 12 include_when: {amenity: drinking_water} attributes: - key: kind value: water - key: name - key: operator - key: brand - key: opening_hours - key: access - key: fee - key: capacity - key: hgv - key: trailer - key: 'fuel:diesel' - key: 'fuel:octane_87' - key: 'fuel:octane_89' - key: 'fuel:octane_91' - key: 'fuel:octane_95' - key: 'fuel:octane_98' - key: 'fuel:e10' - key: 'fuel:e85' - key: 'fuel:lpg' - key: 'fuel:cng' - key: 'fuel:biodiesel' - key: 'fuel:adblue' - source: osm geometry: point min_zoom: 12 include_when: {tourism: camp_site} attributes: - key: kind value: camp_site # docs/backcountry/PLAN.md B2.2b: a backcountry site, its number and its tent pads. - key: backcountry - key: ref - key: tents - key: name - key: operator - key: brand - key: opening_hours - key: access - key: fee - key: capacity - key: hgv - key: trailer - key: 'fuel:diesel' - key: 'fuel:octane_87' - key: 'fuel:octane_89' - key: 'fuel:octane_91' - key: 'fuel:octane_95' - key: 'fuel:octane_98' - key: 'fuel:e10' - key: 'fuel:e85' - key: 'fuel:lpg' - key: 'fuel:cng' - key: 'fuel:biodiesel' - key: 'fuel:adblue' - source: osm geometry: polygon_point_on_surface min_zoom: 12 include_when: {tourism: camp_site} attributes: - key: kind value: camp_site # docs/backcountry/PLAN.md B2.2b: a backcountry site, its number and its tent pads. - key: backcountry - key: ref - key: tents - key: name - key: operator - key: brand - key: opening_hours - key: access - key: fee - key: capacity - key: hgv - key: trailer - key: 'fuel:diesel' - key: 'fuel:octane_87' - key: 'fuel:octane_89' - key: 'fuel:octane_91' - key: 'fuel:octane_95' - key: 'fuel:octane_98' - key: 'fuel:e10' - key: 'fuel:e85' - key: 'fuel:lpg' - key: 'fuel:cng' - key: 'fuel:biodiesel' - key: 'fuel:adblue' - source: osm geometry: point min_zoom: 12 include_when: {tourism: camp_pitch} attributes: - key: kind value: camp_pitch - key: name - key: operator - key: brand - key: opening_hours - key: access - key: fee - key: capacity - key: hgv - key: trailer - key: 'fuel:diesel' - key: 'fuel:octane_87' - key: 'fuel:octane_89' - key: 'fuel:octane_91' - key: 'fuel:octane_95' - key: 'fuel:octane_98' - key: 'fuel:e10' - key: 'fuel:e85' - key: 'fuel:lpg' - key: 'fuel:cng' - key: 'fuel:biodiesel' - key: 'fuel:adblue' - source: osm geometry: polygon_point_on_surface min_zoom: 12 include_when: {tourism: camp_pitch} attributes: - key: kind value: camp_pitch - key: name - key: operator - key: brand - key: opening_hours - key: access - key: fee - key: capacity - key: hgv - key: trailer - key: 'fuel:diesel' - key: 'fuel:octane_87' - key: 'fuel:octane_89' - key: 'fuel:octane_91' - key: 'fuel:octane_95' - key: 'fuel:octane_98' - key: 'fuel:e10' - key: 'fuel:e85' - key: 'fuel:lpg' - key: 'fuel:cng' - key: 'fuel:biodiesel' - key: 'fuel:adblue' - source: osm geometry: point min_zoom: 12 include_when: {highway: trailhead} attributes: - key: kind value: trailhead - key: name - key: operator - key: brand - key: opening_hours - key: access - key: fee - key: capacity - key: hgv - key: trailer - key: 'fuel:diesel' - key: 'fuel:octane_87' - key: 'fuel:octane_89' - key: 'fuel:octane_91' - key: 'fuel:octane_95' - key: 'fuel:octane_98' - key: 'fuel:e10' - key: 'fuel:e85' - key: 'fuel:lpg' - key: 'fuel:cng' - key: 'fuel:biodiesel' - key: 'fuel:adblue' - source: osm geometry: polygon_point_on_surface min_zoom: 12 include_when: {highway: trailhead} attributes: - key: kind value: trailhead - key: name - key: operator - key: brand - key: opening_hours - key: access - key: fee - key: capacity - key: hgv - key: trailer - key: 'fuel:diesel' - key: 'fuel:octane_87' - key: 'fuel:octane_89' - key: 'fuel:octane_91' - key: 'fuel:octane_95' - key: 'fuel:octane_98' - key: 'fuel:e10' - key: 'fuel:e85' - key: 'fuel:lpg' - key: 'fuel:cng' - key: 'fuel:biodiesel' - key: 'fuel:adblue' - source: osm geometry: point min_zoom: 12 include_when: {__all__: [{amenity: parking}, {__any__: [{hgv: ['yes', designated, permissive]}, {trailer: ['yes', designated, permissive]}]}]} attributes: - key: kind value: parking - key: name - key: operator - key: brand - key: opening_hours - key: access - key: fee - key: capacity - key: hgv - key: trailer - key: 'fuel:diesel' - key: 'fuel:octane_87' - key: 'fuel:octane_89' - key: 'fuel:octane_91' - key: 'fuel:octane_95' - key: 'fuel:octane_98' - key: 'fuel:e10' - key: 'fuel:e85' - key: 'fuel:lpg' - key: 'fuel:cng' - key: 'fuel:biodiesel' - key: 'fuel:adblue' - source: osm geometry: polygon_point_on_surface min_zoom: 12 include_when: {__all__: [{amenity: parking}, {__any__: [{hgv: ['yes', designated, permissive]}, {trailer: ['yes', designated, permissive]}]}]} attributes: - key: kind value: parking - key: name - key: operator - key: brand - key: opening_hours - key: access - key: fee - key: capacity - key: hgv - key: trailer - key: 'fuel:diesel' - key: 'fuel:octane_87' - key: 'fuel:octane_89' - key: 'fuel:octane_91' - key: 'fuel:octane_95' - key: 'fuel:octane_98' - key: 'fuel:e10' - key: 'fuel:e85' - key: 'fuel:lpg' - key: 'fuel:cng' - key: 'fuel:biodiesel' - key: 'fuel:adblue'