Mapbox Transit v2

Source id:
mapbox.transit-v2

This is an in-depth guide to the data inside the Mapbox transit vector tile source to help with styling.

The map above uses minimal styling to illustrate the coverage, density, and zoom extents of various source layers in this tileset. Toggle between Map and Style JSON to see the relationship between the visual map and the source data.

Overview

This tileset is used complementary together with the Mapbox Streets v8 tileset with data specific to Japan.

Data sources & updates

This tileset currently only covers Japan.. It uses data from Zenrin and is updated with every new Zenrin data release every 3 months.

Data stability

As we make ongoing data updates to reflect changes in the world, we may also add new layers, fields, and values to the mapbox.transit-v2 tileset. While backward compatibility is not guaranteed between versions, it will be a top priority as we integrate additional data.

Layer Reference

transit_line

buffer: 1.5

The transit line layer contains metro and other train routes of a geography, with information specific to creating a transit map style. This is different from railway features that appear in the road layer, which represent physical railroad tracks.

See names and name_script in for information about names and translations available for label text.

line_color text

A CSS extended color keyword of the color with which to style the route. The color aligns with colors set by the operator.

brown
tan
gray
pink
teal
violet
turquoise
darkblue
purple
darkorange
yellow
mediumpurple
cyan
mediumblue
lime
darkgreen
lightblue
green
blue
red
orange

len number

The len field stores the length of the line segment in projected meters, rounded to the nearest whole number.

mode text

One of the GTFS extended route types that best categorizes the type of service on the line.

Some examples include:

freight
funicular
aerialway
monorail
tram
metro_rail
high_speed_rail
regional_rail
inter_regional_rail

network text

Contains the name of the transportation network.

Some examples include:

saitama-high-speed-rail
fukuoka-city-subway
kyoto-municipal-subway
sendai-subway
sapporo-municipal-subway
kobe-municipal-subway
nagoya-municipal-subway
yokohama-municipal-subway
osaka-metro
toei-subway
tokyo-metro
jr-shikoku
jr-hokkaido
jr-west
jr-kyushu
shinkansen
jr-central
jr-east

operator text

Contains the name of the operator (i.e. the company or organization that manages the transportation network).

Some examples include:

fukuoka-city-transportation-bureau
kyoto-municipal-transportation-bureau
sendai-city-transportation-bureau
sapporo-city-transportation-bureau
kobe-city-transportation-bureau
nagoya-transportation-bureau
yokohama-city-transportation-bureau
osaka-metro
toei-transportation
tokyo-metro
jr-shikoku
jr-hokkaido
jr-kyushu
jr-west
jr-central
jr-east
private
Was this page helpful?