DataUSA / datausa-site

The most comprehensive visualization of U.S. public data —
www.datausa.io
GNU Affero General Public License v3.0
97 stars 28 forks source link

Probably need to make logic layer slightly smarter about geography #442

Open pviechnicki opened 8 years ago

pviechnicki commented 8 years ago

As we include more datasets which have more complex geographic structures, I'm guessing we'll need to make the logic layer slightly smarter to provide the right data for the right location page. For example, if we include a dataset which has both metro areas and state-level data, the logic layer will need to know how to choose a metro area if it's within a certain distance, and otherwise choose the state. If we include data at the census tract level for the whole country, we may want to present it in aggregated form sometimes. I might be off-base here, but wanted to make a record of this so we can at least discuss it.

davelandry commented 8 years ago

I believe the logic layer can already handle this, @jspeis?

jspeis commented 8 years ago

If I understand correctly, this would actually be a new case since the current logic is built around containment/overlap and not distance.

davelandry commented 8 years ago

ooooo interesting, I see. how difficult would that be to implement?