Simplify.js is a high-performance JavaScript 2D/3D polyline simplification library by Vladimir Agafonkin, extracted from Leaflet.
Docs and demo: http://mourner.github.com/simplify-js/
Python port: https://github.com/omarestrella/simplify.py/ (by Omar Estrella)