README
Metro Stations
JSONs of metro stations and lines.
Content:
Available cities:
- π·πΊ Moscow
- π·πΊ Saint-Petersburg
- π¨π³ Beijing
- π―π΅ Tokyo
Cities in progress:
- π¨π³ Shanghai
- π°π· Seoul
- π¨π³ Guangzhou
- πΊπΈ New York
- π²π½ Mexico
Docs:
Stations:
Stations
is an array of objects with information about stations.
Fields in the next table exist in every stations' json.
Fields | Value | Meaning |
---|---|---|
id | Number | ID of the station |
intl_name | String | Name of the station in English |
Fields in the next table exist only in some stations' json.
Fields | Value | Meaning |
---|---|---|
local_name | String | Local name of the station |
geo_lat | String | Latitude position |
geo_lon | String | Longitude position |
grade | Underground | Elevated | At-grade | Station's grade |
platform_type | String | Platform type |
lineTransfers | Array<Number> | Array with lines' IDs with which the station has the intersection |
stationTransfers | Array<Number> | Array with stations' IDs with which the station has the intersection |
line | Number | ID of the line which the station belongs to |
lines | Array |
Array with linnes's IDs which the station belongs to |
Lines:
Lines
is an array of objects with information about lines.
Fields in the next table exist in every lines' json.
Fields | Value | Meaning |
---|---|---|
local_name | String | Local name of the line |
intl_name | String | Name of the line in English |
color | String | Line's color |
id | Number | ID of the line |
Fields in the next table exist only in some lines' json
Fields | Value | Meaning |
---|---|---|
sign | String | Some additional identifier of the line |
lineTransfers | Array<Number> | Array with lines' IDs with which the line has intersections |
How to use:
Download this super-duper repository
npm i metrostations
Use it in your JS code
import {Moscow} from 'metrostations'
const MoscowStations = Moscow.stations
const MoscowLines = Moscow.lines
// your code goes here... π
Anything missing?
In case we forgot some station or a line, or if you noticed some inappropriate behavior, create new issueYou can also DM the Founder:
- Telegram: @ungarson
- Instagram: @daniilorain
Sponsors
Nobody yet...