A simple backend web service for returning where properties changed hands based on data from the LINZ Data Service.
Returns a GeoJSON FeatureCollection of property titles created or updated
during the week starting YYYY-MM-DD
. ProTip: Use a Saturday after 2012-05-12 :)
Returns a GeoJSON FeatureCollection of property titles created or updated
during the week starting YYYY-MM-DD
that are spatially located in the bounds
specified by west,south,east,north
(longitudes/latitudes in decimal degreees).
Returns collection of weeks(that represented by starting date) and number of this week.
Returns a JSON collection of weeks(that represented by starting date) and number of this week.
specified by west,south,east,north
(longitudes/latitudes in decimal degreees).
- Install VirtualBox and Vagrant
git clone
this repository.vagrant up
to build a dev environmentvagrant ssh
to ssh- then
python scripts/populate_db.py
to populate db. Required data.linz.govt.nz API key- Otherwise import dump with
pg_restore -c -d prop_xfer dumps/dump.date.time.dump
.
- Otherwise import dump with
- then
python prop_xfer/app.py
to run the backend. - Head to http://localhost:5000/