Google Maps编码折线PHP功能

ree*_*ine 3 php google-maps

我正在寻找一个PHP函数,将一个点数组编码为编码折线.

该算法在这里描述:

http://code.google.com/apis/maps/documentation/utilities/polylinealgorithm.html

我似乎无法找到任何方法来做到这一点,我已经搜索到无济于事.

luf*_*uff 11

您是否看过这个网站:http: //facstaff.unca.edu/mcmcclur/GoogleMaps/EncodePolyline/

它具有用Javascript,PHP,Java,Ruby和Perl编写的编码器.

更新2014-03-17

上面的链接已经死了这里是PHP类的新链接http://perassi.org/quickhacks/polyline/class.polylineEncoder.phps