Skip to content

decodePolyline function #1

@craig77

Description

@craig77

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions