ripoul / Georide Position
Programming Languages
Projects that are alternatives of or similar to Georide Position
Welcome to georide-position 👋
get the last day deplacement of the georide tracker for public sharing (road trip for example)
Homepage
🏠In this project I use georide. Georide is a gps tracker for motorcycle. Feel free to check their work.
🔨 Install
pip install -r requirements.txt
python manage.py migrate
🔧 Usage
for dev purpose you don't need anything else.
To start the server :
python manage.py runserver
For production you need to set the parameter for your database and the secret key of your app :
- db_host : the database host
- db_name : the database name
- db_pass : the database password
- db_port : the database port (ex: 5432)
- db_user : the database user
- secret_key : a long secret key
⁉️ Help with georide api
All the informations you need can be find on the georide api documentation here.
To get a georide token :
curl --request POST \
--url https://api.georide.fr/user/login \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data 'email=[your email]&password=[your password]'
To get your tracker id :
curl --request GET \
--url https://api.georide.fr/user/trackers \
--header 'Authorization: Bearer [your token]' \
--header 'cache-control: no-cache'
To get the position history :
curl --request GET \
--url 'https://api.georide.fr/tracker/[tracker id]/trips/positions?from=[start date]&to=[end date]' \
--header 'Authorization: Bearer [your token]'
The date has to be formated like that : YYYYMMDDTHHmmSS
.
✅ Run tests
python manage.py test
Author
👤 Jules LE BRIS
- Github: @ripoul
🤝 Contributing
Contributions, issues and feature requests are welcome!
Feel free to check issues page.
Thanks goes to these wonderful people (emoji key):
🚧 |
TristanElain 💻 |
gearsof44 💻 ⚠️ |
Raphaël TISON 💻 |
This project follows the all-contributors specification. Contributions of any kind welcome!
Show your support
Give a ⭐️ if this project helped you!
📝 License
Copyright © 2019 Jules LE BRIS.
This project is MIT licensed.