Package com.google.maps.android.data
Class LineString
- java.lang.Object
-
- com.google.maps.android.data.LineString
-
- All Implemented Interfaces:
Geometry<java.util.List<com.google.android.gms.maps.model.LatLng>>
- Direct Known Subclasses:
GeoJsonLineString
,KmlLineString
public class LineString extends java.lang.Object implements Geometry<java.util.List<com.google.android.gms.maps.model.LatLng>>
An abstraction that shares the common properties ofKmlLineString
andGeoJsonLineString
-
-
Constructor Summary
Constructors Constructor Description LineString(java.util.List<com.google.android.gms.maps.model.LatLng> coordinates)
Creates a new LineString object
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<com.google.android.gms.maps.model.LatLng>
getGeometryObject()
Gets the coordinates of the LineStringjava.lang.String
getGeometryType()
Gets the type of geometryjava.lang.String
toString()
-
-
-
Method Detail
-
getGeometryType
public java.lang.String getGeometryType()
Gets the type of geometry- Specified by:
getGeometryType
in interfaceGeometry<java.util.List<com.google.android.gms.maps.model.LatLng>>
- Returns:
- type of geometry
-
getGeometryObject
public java.util.List<com.google.android.gms.maps.model.LatLng> getGeometryObject()
Gets the coordinates of the LineString- Specified by:
getGeometryObject
in interfaceGeometry<java.util.List<com.google.android.gms.maps.model.LatLng>>
- Returns:
- coordinates of the LineString
-
toString
@NonNull public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-