Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?

Mapzen's Bike Map (read blog post) uses OpenStreetMap tags and relations to color roads and paths according to their (relative) safely. See legend at right.

The OpenStreetMap tag rendering logic is in the Walkabout repo (view source).

This GIST is a human readable version:

Walkabout Bike Map Legend

Tier 1a: Dark Green (off-road)

  1. highway = cycleway, or
  2. highway = path, pedestrian, or steps, and one of the following:
    • bicycle: [yes,designated], or
    • member of bicycle route relation

Tier 1b: Light Green (on-road bike boulevard)

Note that this styling is not live yet, but based on comments since the bike map was published.

  1. highway = living_street or unclassified, and one of the following:
    • cycleway = shared_lane, or
    • bicycle = yes or designated, or
    • member of bicyle route relation

Tier 1c: Dark Brown (off-road)

  1. highway = track, and one of the following:
    • bicycle = yes or designated, or
    • member of bike route relation

Tier 1d: Light Brown (off-road)

  1. highway = footway or steps, and one of the following:
    • bicycle = yes or designated, or
    • member of bike route relation

Tier 2a: Orange only (on-road)

  • Any highway tag, and
    • cycleway = lane, opposite, or opposite_lane, or
    • cycleway_left: lane, opposite, or opposite_lane, or
    • cycleway_right: lane, opposite, opposite_lane

Tier 2b: Orange with green cycleway (on-road)

  • Any highway tag, and
    • cycleway = sidepath, track, opposite_track, buffered_lane, or
    • cycleway_left: sidepath, track, opposite_track, buffered_lane, or
    • cycleway_right: sidepath, track, opposite_track, buffered_lane

Tier 3: Blue (on-road)

  • Any highway tag, and
    • bicycle = yes or designated, or
    • member of bicycle route relation

Tier 4: Pink (on- and off-road)

  1. highway = service, residential, unclassified, living_street, track, path, footway, or steps, and one of the following:
    • bicycle = no or dismount

Walkabout Bike Map Legend

Points of Interest

The bike map has special icon treatments for the following, based on Tilezen kind values:

  • bicycle_parking kind, sourced from OpenStreetMap's:
    • amenity = bicycle_parking
  • bicycle_rental
    • amenity = bicycle_rental
  • bicycle_rental_station
    • amenity = bicycle_rental, and
    • operator = any value
  • bicycle store / repair
    • shop = bicycle
  • bicycle_junction
    • icn_ref = any value, or
    • ncn_ref = any value, or
    • rcn_ref = any value, or
    • lcn_ref = any value
  • toilets
    • amenity = toilets
  • drinking_water
    • amenity = drinking_water
  • cafe
    • amenity = cafe
  • pub
    • amenity = pub
  • cycle_barrier
    • barrier = cycle_barrier
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.