perfectly-preserved-pie / larentals

An interactive map of for-sale & rental property listings in Los Angeles County, updated weekly.
https://wheretolive.la
15 stars 3 forks source link

Load layer datasets directly from disk instead of fetching from the API #209

Closed perfectly-preserved-pie closed 5 months ago

perfectly-preserved-pie commented 5 months ago

I'd like to split API data fetching into its own separate thing (maybe a database server?) instead of using the Dash app to do that. The crime and oil well GeoJSONs now live on the disk and are loaded via dl.GeoJSON's url parameter.

I haven't come up with a function to generate fresh data, but I think I can just do that every week when the new lease/buy datasets come out. The oil well and crime data isn't really critical imo so it's OK if it's a little outdated.