You can use this gem to reduce the number of points in a complex polyline / polygon, making use of an optimized Douglas-Peucker algorithm.
odlp
July 24, 2014 10:03pm
MIT