Closed shperl closed 8 years ago
Hey, @adamalloy. I assigned this ticket to you as your were working on it this evening. Please review the locations.py and stats.py files that can be found in the app/static/other folder on the repo for a standard template for pulling down data via an API. It would be nice to create consistency between the two (creating a class for the pull, then creating methods for accessing functions).
Not quite ready to close this issue because I still need to implement parks around cities. For state parks, all these issue have been addressed: parks.py file, updated api, updated models, updated uml, updated wiki.
@adamalloy -- I noticed you added "park_name" to the state class. I don't think this will work well for us given the structure of our database. my recommendation would be to add a new class for "parks" that has foreign keys for any of the trulia classes that has a relation. This means we would need to create a separate model in the models.py file.