This bot shows trams locations in Ekaterinburg city using official data got from http://ettu.ru
See boot in action: @EkbTramBot
You must set tokens&keys using .env
file:
BOT_TOKEN="..."
# Use next two values if you use MapQuest service
# MAP_SERVICE="MAPQUEST"
# MAP_SERVICE_CONFIG={"key": "<key>"}
#
# OR
#
# Use next two values if you use MapBox service
# MAP_SERVICE="MAPBOX"
# MAP_SERVICE_CONFIG={"accessToken": "<token>"}
ETTU_API_KEY="111"
This is your telegram bot token
There are two possible values: MAPQUEST
and MAPBOX
To show map tiles and markers bot uses static Map API: https://developer.mapquest.com/documentation/static-map-api/v5/
Please get the key here: https://developer.mapquest.com/user/me/apps
Uses the MapBox service: https://docs.maptiler.com/cloud/api/static-maps/
You may gey token here: https://cloud.maptiler.com/account/keys/
I don't know, just copy this value from http://map.ettu.ru
npm i
npm build
npm start
or
docker-compose up -d