使用 Objective C 的 Douglas-Peucker 线段近似算法进行路径优化
http://en.wikipedia.org/wiki/Ramer-Douglas-Peucker_%5Falgorithm
由 Tomislav Filipčić 编写 [email protected]。由 Quentin Zervaas 从 PHP 转译 http://www.phpriot.com/articles/reducing-map-path-douglas-peucker-algorithm