Here is a reference implementation in JavaScript: https://github.com/mbostock/topojson/blob/master/lib/topojson/simplify.js And another: https://github.com/mbloch/mapshaper/blob/master/src/mapshaper-simplify.js Btw, mapshaper allows GeoJSON simplification via command line.
Here is a reference implementation in JavaScript:
https://github.com/mbostock/topojson/blob/master/lib/topojson/simplify.js
And another:
https://github.com/mbloch/mapshaper/blob/master/src/mapshaper-simplify.js
Btw, mapshaper allows GeoJSON simplification via command line.