Google Maps API Polyline Decoder

Decodes google maps API polyline string into lat/lon positions.

You are now following this Submission

Takes a single string array which follows the google maps API encoded polyline string and parses it into arrays of lat/lon pairs. Algorithm documentation from google can be found at http://code.google.com/apis/maps/documentation/utilities/polylinealgorithm.html

Cite As

chris hinkle (2026). Google Maps API Polyline Decoder (https://www.mathworks.com/matlabcentral/fileexchange/32341-google-maps-api-polyline-decoder), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.1.0.0

Added option to cumsum the raw polyline output to have actual lat lon position instead of lat lon then offset.

1.0.0.0