Tesla Race (based on teslamate)
The project is use to animate the trajectories of tesla trip to compare each trajectory with time dimension. For example, you can do such a kind of race between two point to find out a best path from origin to destination.
2.21.mp4
- Signup to MapBox for a access token at https://account.mapbox.com/ for free.
- Download project and execute command in the root directory
MAPBOX_TOKEN=token node main.js
- Access http://localhost:3000/
- Signup to MapBox for a access token at https://account.mapbox.com/ for free.
docker pull ericdum/tesla-race:latest
docker run -p 3000:3000 -e PG_PORT=... -e PG_HOST=... -e MAPBOX_TOKEN=your_token ericdum/tesla-race
The protect using postgres provided by teslamate.
To configurate the database connection by set env var like PG_PORT, PG_HOST,... find more in lib/postgres.js
If you want to show the page to anyothers but want to hide your home or your work place, you can add a polygon area into main.js
.
FYI, you can easily gernerate the polygon by https://geojson.io/
- Autocomlete search for OD.
- Add a Timer.
- Give a Classifier for different type of route.
- Enhance OD searching by street addresses.
- Support long range travel.
- Custom replay speed
- Give charts for speed, AP status,...
- Drop icons to the map when meet red lights.
- Cluster by different trajectory and give different color to their marker.
- Date Picker
Welcome to contributes, you can either add on framework or implement features, pls fork and make pull request.