Skip to content

Instantly share code, notes, and snippets.

@aaronpdennis
Last active August 29, 2015 14:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aaronpdennis/ceeef6884d5fa238db4d to your computer and use it in GitHub Desktop.
Save aaronpdennis/ceeef6884d5fa238db4d to your computer and use it in GitHub Desktop.
mapbox-streets-v5 structure
mapbox.mapbox-streets-v5


_label
  name
  name_en
  name_es
  name_fr
  name_de


osm_id


1. point
2. linestring/multilinesting
3. polygon/multipolygon


landuse
  class
    agriculture
    cemetery
    glacier
    grass
    hospital
    industrial
    park
    rock
    sand
    school
    scrub
    wood


waterway
  class
    river
    canal
    stream
    stream_intermittent
    ditch
    drain
  type
    river
    canal
    stream
    ditch
    drain


water


aeroway
  type
    runway
    taxiway
    apron
    helipad


barrier_line
  class
    cliff
    fence
    gate
    hedge
    land


building


landuse_overlay
  class
    wetland
    wetland_noveg


tunnel, road, bridge
  class
    motorway
      "grade seperated highways"
    motorway_link
      "interchange/on & off ramps"
    main
      "trunk, primary, secondary, tertiary & links"
    street
      "unclassified or residential"
    service
      "access roads, alleys, agricultural tracks, and other service roads"
    driveway
      "local access including parking lot aisles, public & private driveways"
    path
      "foot paths, cycle paths, ski trails"
    major_rail
      "railways, including mainline, commuter rail, and rapid transit"
    minor_rail
      "yard and service railways"
    aerialway
      "ski lifts, gondolas"
    golf
      "approximate centerline of a golf course hole"
  oneway
    0
    1
  type
    "value of road's primary OSM tag"
  layer


admin
  admin_level
    2
      "countries"
    3
      "regions"
    4
      "states, provinces, etc."
  disputed
    0
    1
  maritime
    0
    1


country_label_line
  "label leader lines for small countries at low zoom"


country_label
  scalerank
    "helps assign different labels based on size and available room"


marine_label
  labelrank
  placement


state_label
  area
    "physical area in square kilometers"


place_label
  type
    city
      "100,000+ people"
    town
      "10,000 - 100,000 people"
    village
      "200 - 10,000 people"
    hamlet
      "less than 200 people"
    suburb
      "distinct section of urban settlement"
    neighbourhood
      "named part of a larger settlement"
  capital
    2
      "national"
    3
      "regional"
    4
      "state"
  scalerank
  localrank
    "whole number greater than 0 calculated by grouping places into 128 pixel grid then assigning a ranking; [localrank=1] reduced label density to 4 labels per tile"
  ldir
    "hint for label offset"


water_label
  area
    "square meters"


poi_label
  address
  maki
    "possible values listed here: https://www.mapbox.com/developers/vector-tiles/mapbox-streets/#poi_label"
    null
    'airport'
    'airfield'
    'alcohol-shop'
    'art-gallery'
    'bakery'
    'bank'
    'bar'
    'beer'
    'bicycle'
    'bus'
    'cafe'
    'car'
    'campsite'
    'cemetery'
    'cinema'
    'clothing-store'
    'college'
    'dog-park'
    'embassy'
    'entrance'
    'fast-food'
    'ferry'
    'fire-station'
    'fuel'
    'garden'
    'golf'
    'grocery'
    'harbor'
    'heliport'
    'hospital'
    'laundry'
    'library'
    'lodging'
    'monument'
    'museum'
    'music'
    'park'
    'pharmacy'
    'camera'
    'place-of-worship'
    'rail'
    'rail-light'
    'rail-metro'
    'religious-christian'
    'religious-jewish'
    'religious-muslim'
    'police'
    'post'
    'prison'
    'restaurant'
    'school'
    'shop'
    'swimming'
    'theatre'
    'town-hall'
    'suitcase'
    'zoo'
  type
    "more specific classification intended for display"
  scalerank
  localrank
  network
    "helping assign icons for rail stations"
  ref
    "short code used as alternative to name; currently only for airports"
  type
    "the original OSM tag value"
  website


road_label
  ref
    "any route numbers"
  class
    motorway
      "grade seperated highways"
    motorway_link
      "interchange/on & off ramps"
    main
      "trunk, primary, secondary, tertiary & links"
    street
      "unclassified or residential"
    service
      "access roads, alleys, agricultural tracks, and other service roads"
    driveway
      "local access including parking lot aisles, public & private driveways"
    path
      "foot paths, cycle paths, ski trails"
    major_rail
      "railways, including mainline, commuter rail, and rapid transit"
    minor_rail
      "yard and service railways"
    aerialway
      "ski lifts, gondolas"
    golf
      "approximate centerline of a golf course hole"
  len
    "length of the road segment in projected meters"


waterway_label
  class
  type


housenum_label
  house_num
    "house numbers in a combination of integers and letters; if no number but has a house name or building name, house_num will be name instead"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment