- git clone https://github.com/Semigradsky/minsktrans-api.git
- cd minsktrans-api.git
- npm install
- npm run dev
- http://localhost:8080/routes
/routes.txt
/shapes.txt
/stops.txt
/times.txt
/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"
]
}
]
The same as JSON data but in CSV
/routes.csv
/stops.csv
/stops.kml