An application for comparing estimated travel times and directions on a 3D map.
Built with Python, CesiumJS and Google Maps API.
git clone https://github.com/willgeary/Wayfinder3D
cd Wayfinder3D
(Optional) If you use anaconda, you can create and activate a virtual environment from the environment.yml
file with:
conda env create -f environment.yml
source activate Wayfinder3D
You can generate directions from an origin to a destination via four modes: driving, transit, bicycling and walking like this:
python run.py \
--origin="Washington Square Park, New York City" \
--destination="Central Park, New York City" \
--modes="driving,transit,bicycling,walking"
View your app by navigating to https://localhost:8000/ in your browser.
Voilà!
If you only want to view select modes, such as driving and transit, you can do so like this:
python run.py \
--origin="Venice" \
--destination="Milan" \
--modes="driving,transit"
You can select from Cesium's built in collection of basemaps by clicking on the imagery icon in the upper right corner:
You can force the camera to follow a particular mode by selecting the mode label and clicking the camera icon in the upper right.
You can terminate the local server with control + C or by closing the command line.
If you used a virtual environment, you can deactivate it with:
source deactivate
Should you want to later delete the virtual environment, you can do so with:
conda env remove --name Wayfinder3D
Copyright (c) 2018 Will Geary
You are free to use this code however you want. If you do use it and like it please let me know!