Package com.google.maps.android
Class FlexiblePolyline
-
- All Implemented Interfaces:
public final class FlexiblePolylineA decoded flexible polyline, together with the parameters read from its header.
-
-
Field Summary
Fields Modifier and Type Field Description private final List<FlexiblePoint>pointsprivate final Integerprecisionprivate final ThirdDimensionthirdDimensionprivate final IntegerthirdDimensionPrecision
-
Constructor Summary
Constructors Constructor Description FlexiblePolyline(List<FlexiblePoint> points, Integer precision, ThirdDimension thirdDimension, Integer thirdDimensionPrecision)
-
Method Summary
Modifier and Type Method Description final List<FlexiblePoint>getPoints()The decoded points, in order. final IntegergetPrecision()The number of decimal places preserved for latitude and longitude. final ThirdDimensiongetThirdDimension()The kind of third value carried by points. final IntegergetThirdDimensionPrecision()The number of decimal places preserved for the third value, or 0when thirdDimension is ThirdDimension.ABSENT.final List<LatLng>toLatLngs()Returns the decoded points as LatLng values ready to pass to com.google.android.gms.maps.model.PolylineOptions, discarding any third dimension. -
-
Constructor Detail
-
FlexiblePolyline
FlexiblePolyline(List<FlexiblePoint> points, Integer precision, ThirdDimension thirdDimension, Integer thirdDimensionPrecision)
-
-
Method Detail
-
getPoints
final List<FlexiblePoint> getPoints()
The decoded points, in order.
-
getPrecision
final Integer getPrecision()
The number of decimal places preserved for latitude and longitude.
-
getThirdDimension
final ThirdDimension getThirdDimension()
The kind of third value carried by points.
-
getThirdDimensionPrecision
final Integer getThirdDimensionPrecision()
The number of decimal places preserved for the third value, or
0when thirdDimension is ThirdDimension.ABSENT.
-
-
-
-