Creating GeoJSON in client-side JS
May 27, 2014
Typically I see data come in .csv formats, which is great for keeping things under control and organized - but difficult for the browser. Lately I’ve seen most .csv on Google Spreadsheets - which can work to our benefit.
- Tabletop makes a call to the Spreadsheets API and returns a nice JSON object
- You loop through that returned data JSON object and create a new GeoJSON object
Things start to get redundant, but for development and a reasonable number of points this works out great.⤎ back to posts