Maybe use n = 3 by default to be conservative at first?
In addition to the KNN search, do a random 'coarse' search
Hit the https://openrouteservice.org API. I would mock the response using tests to avoid actually hitting the API too many times whilst in development.
[ ] Write an ORM mapping the journey time between OAs.
[ ] Write a luigi routine to collect the geographies (dev mode then production)
[ ] Write a luigi routine to collect the time matrix (dev mode then production)
[ ] Referring to issue #192 see their implementation for converting SQL data to neo4j. I would open a new issue at this point, and develop your codebase from there!
NEVER commit to the dev or master branch directly.
193_ttwa
, prefixed with this issue numbernesta.packages.geographies
calleduk_centroids.py
, and undernesta.packages.travel_time
calledtravel_matrix.py
.Using TDD, commit regularly after this stage, regularly merging in dev and feature branch (
193_ttwa
). NEVER merge into dev, always merge from devshapely
and https://geoportal.statistics.gov.uk/datasets/output-area-december-2011-full-clipped-boundaries-in-england-and-wales), including tests [ ] Extend to whole of the UK [ ] Batch the get requestn
neighbours could use https://docs.scipy.org/doc/scipy/reference/generated/scipy.spatial.cKDTree.html#scipy.spatial.cKDTree and store/retrieve the tree in S3 by pickling if required)n = 3
by default to be conservative at first?dev
mode thenproduction
)dev
mode thenproduction
)