MaponAPI::decodePolyline
Decodes encoded route polyline and returns lat/lng array.
If $speed string is given, then return array will also contain velocity for each coordinate. If $start_time is given then each coordinate will also contain time. All this information can be obtained by actions which return route data. Based on: http://code.google.com/apis/maps/documentation/polylinealgorithm.html
Signature
public function decodePolyline(string
$encoded,
[string
$speed = NULL,
[integer
$startTime = NULL]] )
Parameters
$encoded
— string- Encoded route
$speed
— string- Encoded speed
$startTime
— integer- Route start time in unix timestamp
Returns
- array