开发者

Google Maps Encoded Polyline PHP Function

开发者 https://www.devze.com 2023-03-15 13:13 出处:网络
I am looking for a PHP function that encodes an array of points into an encoded polyline. The algorithm is described here:

I am looking for a PHP function that encodes an array of points into an encoded polyline.

The algorithm is described here:

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

I can't seem to find any way to do this and 开发者_StackOverflow中文版I have searched all over to no avail.


Have you seen this site: http://facstaff.unca.edu/mcmcclur/GoogleMaps/EncodePolyline/

It has encoders written in Javascript, PHP, Java, Ruby and Perl.

UPDATE 2014-03-17

The above link is dead here is a new link for the PHP class http://perassi.org/quickhacks/polyline/class.polylineEncoder.phps

0

精彩评论

暂无评论...
验证码 换一张
取 消