dpinney / omf

The Open Modeling Framework for smart grid cost-benefit analysis.
https://omf.coop
GNU General Public License v2.0
112 stars 60 forks source link

House model look-up from GPS data. #247

Closed dpinney closed 8 years ago

dpinney commented 10 years ago

Goal

Given a pair of GPS coordinates, return a Gridlab-D house model. The model should match the square footage and as many other details as possible as the house at that location. There are many open real estate database we could use, but our best bet is probably Zillow.

Spec

In a .py file in /omf/omf/scratch/ we need a function like:

def house(lat,lon):
   # lat, lon are floats.
   # implementation goes here, return value is house dictionary like those in feeder.py feeders.
   return {"object":"house", "sqft":"300", ...,}

Resources

First, we have GIS information. Turn that into a street address using Google or Geocoder.us.

Then, use the zillow API to get details on the property: http://www.zillow.com/howto/api/GetDeepSearchResults.htm

Make sure we don't run afoul of this: http://www.zillow.com/howto/api/APITerms.htm

Some notes from a co-op engineer on modeling residential loads: https://unity.sparklist.com/read/messages?id=418038

cshjin commented 10 years ago

b18678f2f728b5d1745b96604b7589bd1120d8a9 has the initial try. Google Geocoding API(not required): https://developers.google.com/maps/documentation/geocoding/#ReverseGeocoding zillow API(required): http://www.zillow.com/howto/api/GetDeepSearchResults.htm And also need to improvement of the parsing from xml file.

dpinney commented 9 years ago

On my todo list now.

By the way, @jinhw1989, if you get email from this thread--this prototype is AWESOME. :+1:

dpinney commented 8 years ago

Fully implemented in 23d8ea5eba086ee1e9deb3285d0fdf2b242767b2