metrostations v6.0.0
Metro Stations
JSONs of metro stations and lines.
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\ | Array with lines' IDs with which the station has the intersection |
| stationTransfers | Array\ | 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 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\ | Array with lines' IDs with which the line has intersections |
npm i metrostations
import {Moscow} from 'metrostations' const MoscowStations = Moscow.stations const MoscowLines = Moscow.lines // your code goes here... π
Nobody yet...
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago