In this project I'm exploring how to use google's Distance Matrix API.
Later I decided to explore openrouteservice based on tip from Brecht Van Maldergem.
During a conversation with Marco Branzi, I learned TomTom offers the same service too
Just look at the notebook
explore.ipynbwhere I explore data and try to make sense of thingsdistricts.pygenerates a dataset with districts close to your home locationshops.pygenerates a dataset with Colruyt Group shops near your home locationdistance.pyuses districts & shops to calculate origin & destination travel timestomtom.pyis a client for talking to the tomtom api
- build the environment specified in
environment.ymlwith conda or mamba - download the nis_district data from government
wget https://statbel.fgov.be/sites/default/files/files/opendata/Statistische%20sectoren/sh_statbel_statistical_sectors_3812_20220101.shp.zip- add the
api_google.keyfile to the repo (one line, with just your key) - add the
api_openrouteservice.keyfile to the repo (one line, with just your key) - add the
api_tomtom.keyfile to the repo (one line, with just your key)
- use
districts.pyandshops.pyto build the parquet files with relevant data - run
distance.pyto generate drive times and store results - results are stored in
traveltime_shops_near_home.pickle