Hi,
I've just started looking into this project as I have numerous polylines that take up too much space on my static google maps url. So far I have the encoded part working fine but having trouble stitching the polylines together, could you show me an example usage?
something like..
// looping
$encodedPolyline = PolylineEncoder::encode($arrayLatLngs);
// do I need another variable to hold the existing polyline?
$existing = PolylineUtilities::stitchPolylines($existing,$encodedPolyline);
Think I may have spotted a function name mismatch in class.encoded-polyline-stitcher.php, on line 61 it calls function decodePolyline, but at the bottom of the file the only decode function is called decode, should this be decodePolyline?
Thanks,
Shaun.
Hi,
I've just started looking into this project as I have numerous polylines that take up too much space on my static google maps url. So far I have the encoded part working fine but having trouble stitching the polylines together, could you show me an example usage?
something like..
// looping
$encodedPolyline = PolylineEncoder::encode($arrayLatLngs);
// do I need another variable to hold the existing polyline?
$existing = PolylineUtilities::stitchPolylines($existing,$encodedPolyline);
Think I may have spotted a function name mismatch in class.encoded-polyline-stitcher.php, on line 61 it calls function decodePolyline, but at the bottom of the file the only decode function is called decode, should this be decodePolyline?
Thanks,
Shaun.