Simplify.js is a high-performance JavaScript polyline simplification library by Vladimir Agafonkin, extracted from Leaflet.
Checkout the demo with docs: http://mourner.github.io/simplify-js/
- Python: omarestrella / simplify.py (by Omar Estrella)
- PHP: AKeN / simplify-php (by Rotari Gheorghe)
- Java: ekeneijeoma / simplify-java (by Ekene Ijeoma)
- Java: hgoebl / simplify-java (by Heinrich Göbl)
- Processing: ekeneijeoma / simplify-processing (by Ekene Ijeoma)
- AS3: fnicollet / simplify-as3 (by Fabien Nicollet)
- Rust: calvinmetcalf / simplify-rs (by Calvin Metcalf)
- Does not discard values if they are NaN
- Uses
[xVal, yVal]
instead of{x: xVal, y: yVal}
for point format - Removed simple distance based simplification / preprocessing step