Semigradsky / minsktrans-api

Minsktrans API with caching

Home Page:https://rebrand.ly/minsktrans-api-demo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Local run

Raw files

  • /routes.txt
  • /shapes.txt
  • /stops.txt
  • /times.txt

JSON

  • /routes or /routes.json
[
    {
        "id": "210146",
        "routeNum": "11",
        "transport": "bus", // bus | trol | tram | metro
        "operator": "5 АП",
        "validityPeriods": { // optional
            "from": 17537,  // the number of days (1 day = 1000 * 60 * 60 * 24 milliseconds) elapsed since January 1, 1970 00:00:00 UTC.
            "to": 17547 // optional
        },
        "routeType": "A>B",
        "routeTag": 0.17, // optional
        "routeName": "ДС Веснянка - Маршала Лосика",
        "weekdays": "1234567", // optional
        "stops": [
            "15846",
            "204289",
            ...
        ],
        "datestart": "d1-d5 - 10.11.2017<br>d6-d7 - 11.11.2017" // optional
    },
    ...
]
  • /stops or /stops.json
[
    {
        "id": "15288",
        "name": "1-й Наклонный пер.",
        "lng": 27.6556,
		"lat": 53.88226,
		"street": "ул. Радиальная", // optional
        "stops": [
            "15289",
            "15408"
        ]
    }
]

CSV

The same as JSON data but in CSV

  • /routes.csv
  • /stops.csv

KML

  • /stops.kml

About

Minsktrans API with caching

https://rebrand.ly/minsktrans-api-demo


Languages

Language:TypeScript 60.8%Language:HTML 26.6%Language:JavaScript 12.6%