public class EncodedPolyline
extends java.lang.Object
See Encoded Polyline Algorithm for more detail on the protocol.
Constructor and Description |
---|
EncodedPolyline(java.util.List<LatLng> points) |
EncodedPolyline(java.lang.String encodedPoints) |
Modifier and Type | Method and Description |
---|---|
java.util.List<LatLng> |
decodePath() |
java.lang.String |
getEncodedPath() |
public EncodedPolyline(java.lang.String encodedPoints)
encodedPoints
- A string representation of a path, encoded with the Polyline Algorithm.public EncodedPolyline(java.util.List<LatLng> points)
points
- A path as a collection of LatLng
points.public java.lang.String getEncodedPath()
public java.util.List<LatLng> decodePath()