java.io.Serializable
public class EncodedPolyline
extends java.lang.Object
implements java.io.Serializable
See Encoded Polyline Algorithm for more detail on the protocol.
Constructor | Description |
---|---|
EncodedPolyline(java.lang.String encodedPoints) |
|
EncodedPolyline(java.util.List<LatLng> points) |
Modifier and Type | Method | Description |
---|---|---|
java.util.List<LatLng> |
decodePath() |
|
java.lang.String |
getEncodedPath() |
|
java.lang.String |
toString() |
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()
public java.lang.String toString()
toString
in class java.lang.Object