Comments (6)
I think 'dummy_building.json' is a solid solution for now. We could even get real data from our data set and populate dummy_building
without that data.
Good idea.
from housing-insights.
Let us (data team) know what format works best for you for the data, and we can make sure our python scripts output it in that format! We can make a couple real buildings worth for you to work from, too.
from housing-insights.
@hansak11 @vincecampanale @NealHumphrey @wassona @ostermanj @Jeannejk
Here's a list of data fields, as we talked about. They all come from the prototype of the building information page. We can add to/edit this list as we work through the building page, find data sources etc!
Coordinates of non-building things; used for determining what's near a building
Metro stops
Bus stops
PUD applications
Building permits
Buildings with affordable housing
Information to include for a given building's page
Subsidy types (Sec 202, Sec 8, Sec 207/233) and when they expire
Non-profit owned
Number of units
Number of studios
Number of 1BRs
Years until next subsidy expires
REAC score
Address
Owner telephone
Tax assessment
from housing-insights.
This is a first attempt at finding these datafields in the tables loaded into postgres. I found the source for some fields unclear, which I included in a notes column. For now I've been collecting the info in excel, but we can move it into a better format at the next meeting if needed.
from housing-insights.
@vincecampanale @wassona @ostermanj
Updated 6 Mar 2017
I've done a bit more work on the Mapbox part of the building information page. So far I've pulled data from Open Data DC (the 'Affordable Housing' dataset) for development purposes, in place of the old Projects.csv. I've added a layer in one Mapbox map for all affordable housing. I've also done some work on making the MapboxPortal constructor a bit more extensible.
Here are some things that are left to do in adding Mapbox maps to the building page:
- Integrate the building page with the 'app.dataCollection' object
- Restructure the code to accommodate multiple datasets (e.g. there's a geoJSON file for metro stops on the Open Data DC page that I'd like to use for development). There could be a slew of AJAX calls when the information page loads, with the loading of the Mapbox maps taking place after these have finished.
- Add multiple Mapbox maps and adjust the MapboxPortal constructor to make this simpler and DRYer.
- Find a way to store information about the selected building (i.e. the building the information page is about) when the page loads. Since the shift from the moving block chart to the information page happens through a synchronous request, maybe it's most feasible to use a templating engine on the server? Or just switch from the moving block chart to the building information page through AJAX requests and keep the building information in memory as this happens?
- Use a library to calculate the distance in miles between two geospatial coordinate pairs (this is the key bit of information in the text area of each accordion panel).
from housing-insights.
I finished an initial version of the building subsidy timeline chart, but implemented it with a local flat data file rather than a dummy_building.json, so I need to get that together. Tonight at the Hacknight I'm planning to start on the accordion.
from housing-insights.
Related Issues (20)
- Convert welcome modal to Bootstrap or fix semantic ui sizing issue HOT 1
- Refactor `_populate_zone_facts` to be cleaner
- Calculate percent subsidized by zone
- Add lat/lon to geocode from mar cleaner step
- Populate 'in_prescat', 'in_dhcd', 'in_dchousing' fields
- Troubleshoot why 'Most Recent REAC date' and 'most recent TOPA date' sliders are bunched up on load HOT 1
- Dedupe address match failing due to integer MAR IDs HOT 1
- Add all project fields to the filter api endpoint
- User Feedback? HOT 2
- Persist missing address id in create_project_subsidy_csv() when returned from mar api call
- test_load_data.py failing due to refactored _populate_zone_facts HOT 1
- Bug in Range Breakdown Displayed (Zone Type: Census Tract && Data Choices: Crime Rate: Violent 12 months) HOT 1
- Inaccurate residential_units counts for at least three census tracts HOT 2
- DHCD addresses not found in MAR HOT 2
- Data retry now prevents null lat/lon project view pages from loading HOT 2
- Preservation Catalog November 2017 update HOT 1
- Front-end refactor master issue
- Track client-side JavaScript errors Rollbar.js HOT 6
- Back-end refactor and data validation master issue
- Possible Data or Import issue (Chastleton)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from housing-insights.