-
Notifications
You must be signed in to change notification settings - Fork 0
Home
nathanielroth edited this page Sep 23, 2014
·
9 revisions
Welcome to the od_api wiki!
Purpose: get list of census block groups within X distance, or Y time of another block group (and eventually lat-lon).
Tech stuff:
- Using Vagrant, so you'll need to install that (and probably virtualbox), you'll also likely need to download the base box ubuntu/trusty64
- Postgresql9.3 with postgis2.1
- Django1.7 (and probably tasty pie later)
How to get started:
- Make sure you have the following installed: virtualbox, vagrant
- Clone this repository
- Use Vagrant up within the repository to start the vagrant machine
- Within Django execute syncdb to setup the database tables
- You can use the loading script in Utilities to load sample data into the database.
- If you want to fix things, ask for access to the repository
- Fix stuff, and let me know where I could do it better.
Sample Data: http://downloads.ice.ucdavis.edu/~neroth/epa_od/ODmat_CA3_LAX6.zip (87MB)
Current status: 2014-9-13
- Have created a vagrant script for standing up a vagrant instance with: postgres 9.3, postgis 2.1, django 1.7, and a configured database.
- Made a script to load a subset of data for testing.
- Have created a django project with app that returns a list of block groups based on a mode and maximum time and/or maximum distance from an origin block group.
Still needs to be done:
- use Tasty-pie to create an api to return JSON version of the block list.
- allow submission of Lat-Lon rather than a blockgroupid.
- Cleanup of code and exception handling.
- Find live site for hosting
- load the full dataset (big)
- Performance testing with the full dataset and db tuning.
For the future:
- give it a mapping front end