google-maps-documentation

encoding namespace

google.maps.geometry.encoding namespace

Utilities for polyline encoding and decoding.

Library

geometry

Static Methods
decodePath
decodePath(encodedPath)
Parameters: 
  • encodedPathstring
Return Value:  Array<LatLng>
Decodes an encoded path string into a sequence of LatLngs.
encodePath
encodePath(path)
Parameters: 
Return Value:  string
Encodes a sequence of LatLngs into an encoded path string.