nst-guide / data

Create map waypoints and layers from open data sources
https://nst-guide.github.io/data/
GNU General Public License v3.0
6 stars 0 forks source link

Simpler geojson minified printing #54

Open kylebarron opened 4 years ago

kylebarron commented 4 years ago
geojson.dumps(feature, separators=(',', ':'))

Instead of

minified = json.dumps(json.loads(str(gj)), separators=(',', ':'))

I.e. here and probably other places too: https://github.com/nst-guide/data/blob/a17d0673bc7cf477e3e128588b95af2961e99746/code/lambda/epa_airnow.py#L35