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
969 stars 183 forks source link

Modularize request functions to be reusable with API and SDK #277

Closed tshrestha closed 8 years ago

tshrestha commented 8 years ago

Most of the code in the Node API and SDK is duplicated. The code from geoRequest, apiRequest, summaryRequest, and perhaps others, could be pulled out into a separate module. There are also a lot inefficiencies in the code for these functions.