metrostations

JSONs of metro stations and lines.

Usage no npm install needed!

<script type="module">
  import metrostations from 'https://cdn.skypack.dev/metrostations';
</script>

README

metrostations

Metro Stations

JSONs of metro stations and lines.

Content:

  1. Available cities
  2. Cities in progress
  3. Docs
  4. How to use
  5. Anything missing?
  6. Sponsors

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 issue

You can also DM the Founder:

Sponsors

Nobody yet...