uscensusbureau / citysdk

Convenient JavaScript utilities for working with Census APIs: Statistics, Cartographic GeoJSON, lat/lng -> FIPS, and other niceties (written in ClojureScript)
https://uscensusbureau.github.io/citysdk
MIT License
959 stars 183 forks source link

filter point (e.g., crime, 311 reports, etc.) data by census geography (e.g., block-group) #15

Closed ghost closed 4 years ago

ghost commented 9 years ago

As per someone's suggestion, I'm adding an request for using the SDKs geo call to filter a second (mashed up) point-based (series of lat / longs) data set. For example:

I have a bunch of locations of crimes of a certain sort I call the SDK to dump out block-groups for my county I want the block groups to include: population, income and age

Hereby, I want: use case # 1: find crimes in areas with income > $x use case # 2: show crimes per capita for each block group (e.g., in info window on a map) use case # 3: tally up the total crimes in each block group to find correlations between crime and income and/or age

note: this is just a hypothetical... any such point-data filtering by census geo + census data mashup is implied...

loganpowell commented 5 years ago

@zhik have you ever heard of functional lenses?

loganpowell commented 4 years ago

I'm closing this as this functionality can be provided (and more importantly, maintained) by third-party libraries, e.g., turf.js' collect function