Skip to content

Simple tool for the Citymapper API made by a lazy person

Notifications You must be signed in to change notification settings

tbobm/climapper

Repository files navigation

Climapper

Citymapper

Build Status Coverage Status

Simple tool that for the Citymapper API made by a lazy person. This project isn't related to Citymapper in any way, totally unofficial.

Installation

Prerequisites

Dependencies

Climapper works perfectly under python3. It uses 2 pip3 packages, Unidecode and requests.

sudo -H pip3 install -r requirements.txt

Installation

Simply 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.

./install

Configuration

In 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"

Usage

$ climapper home
--------------------------------
| Rer C        |     5 min     |
|------------------------------|
| Bibliotheque Francois Mitt   |
|------------------------------|
| Rer A        |     19 min    |
|------------------------------|
|..............................|
|      Home in 89 min          |
|------------------------------|

Todos

  • 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

Resources

Citymapper Website

Citymapper for Directions

Citymapper for Robots

latlon.net