Simple tool that for the Citymapper API made by a lazy person. This project isn't related to Citymapper in any way, totally unofficial.
Climapper works perfectly under python3. It uses 2 pip3 packages, Unidecode and requests.
sudo -H pip3 install -r requirements.txtSimply run the installation script. It will create a ~/bin directory, and a symbolic link to your climapper script.
This configuration allows you to update the script without having to run the installation script again.
./installIn order to get climapper to work efficiently, you have to set a home variable, based on the LAT and LONG of your destination.
Example:
# In your bash_profile (or bashrc)
export WORK="48.813896,2.392448"
export MY_HOME="48.928378,2.162200"$ climapper home
--------------------------------
| Rer C | 5 min |
|------------------------------|
| Bibliotheque Francois Mitt |
|------------------------------|
| Rer A | 19 min |
|------------------------------|
|..............................|
| Home in 89 min |
|------------------------------|- Collect destination and current location (ENV variables ?)
- Make a call to the API
- Parse the results
- Display them gracefully
- Manage CLI args
- Manage configuration trough specific file (~/.config/climapper.json?)
- Create a clean wrapper for the API