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 ofKmlLineStringandGeoJsonLineString
-
-
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.StringgetGeometryType()Gets the type of geometryjava.lang.StringtoString()
-
-
-
Method Detail
-
getGeometryType
public java.lang.String getGeometryType()
Gets the type of geometry- Specified by:
getGeometryTypein 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:
getGeometryObjectin interfaceGeometry<java.util.List<com.google.android.gms.maps.model.LatLng>>- Returns:
- coordinates of the LineString
-
toString
@NonNull public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-