Skip to content
This repository has been archived by the owner on Jul 13, 2018. It is now read-only.

Summer of Tech 2014 Auckland HackFest - Property Transfer Backend

License

Notifications You must be signed in to change notification settings

rcoup/sot14-property-backend

Repository files navigation

Summer of Tech 2014 Auckland HackFest - Property Transfer Map Backend

A simple backend web service for returning where properties changed hands based on data from the LINZ Data Service.

API

/week/YYYY-MM-DD

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 :)

/week/YYYY-MM-DD/west,south,east,north

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

/stats/

Returns collection of weeks(that represented by starting date) and number of this week.

/stats/west,south,east,north

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

Developing

  • Install VirtualBox and Vagrant
  • git clone this repository.
  • vagrant up to build a dev environment
  • vagrant 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.
  • then python prop_xfer/app.py to run the backend.
  • Head to http://localhost:5000/

About

Summer of Tech 2014 Auckland HackFest - Property Transfer Backend

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •