geojson-coords
Extract coordinates from GeoJSON.
install
npm install --save geojson-coords
api
coords(geojson)
Given any valid GeoJSON object, return a single array of coordinates that it contains. Handles any root object, collapses multidimensional coordinate arrays and expands point coordinate arrays.
example
var geojsonCoords = ; ;// returns [[100, 0], [101, 0], [102, 1]];