I had some endpoints of a lines that I needed to convert to GeoJSON today. Before I started I do what every GIS professional does, take inventory of the multitude of ways to actually accomplish this. I mentally jotted down the following:
- Esri ArcGIS
- Online tools (csv -> json)
I started to realize that these are all pretty heavy tools to just accomplish something as simple as a line string to line. We literally pull out a chainsaw when all we want it to trim a little piece of paper. Nothing simple about converting some coordinates into JSON. Enter Turf.js.