Package com.google.maps.android.data.kml
Class KmlLineString
- java.lang.Object
-
- com.google.maps.android.data.LineString
-
- com.google.maps.android.data.kml.KmlLineString
-
- All Implemented Interfaces:
Geometry<java.util.List<com.google.android.gms.maps.model.LatLng>>
- Direct Known Subclasses:
KmlTrack
public class KmlLineString extends LineString
Represents a KML LineString. Contains a single array of coordinates.
-
-
Constructor Summary
Constructors Constructor Description KmlLineString(java.util.ArrayList<com.google.android.gms.maps.model.LatLng> coordinates)
Creates a new KmlLineString objectKmlLineString(java.util.ArrayList<com.google.android.gms.maps.model.LatLng> coordinates, java.util.ArrayList<java.lang.Double> altitudes)
Creates a new KmlLineString object
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.ArrayList<java.lang.Double>
getAltitudes()
Gets the altitudesjava.util.ArrayList<com.google.android.gms.maps.model.LatLng>
getGeometryObject()
Gets the coordinates-
Methods inherited from class com.google.maps.android.data.LineString
getGeometryType, toString
-
-
-
-
Constructor Detail
-
KmlLineString
public KmlLineString(java.util.ArrayList<com.google.android.gms.maps.model.LatLng> coordinates)
Creates a new KmlLineString object- Parameters:
coordinates
- array of coordinates
-
KmlLineString
public KmlLineString(java.util.ArrayList<com.google.android.gms.maps.model.LatLng> coordinates, java.util.ArrayList<java.lang.Double> altitudes)
Creates a new KmlLineString object- Parameters:
coordinates
- array of coordinatesaltitudes
- array of altitudes
-
-
Method Detail
-
getAltitudes
public java.util.ArrayList<java.lang.Double> getAltitudes()
Gets the altitudes- Returns:
- ArrayList of Double
-
getGeometryObject
public java.util.ArrayList<com.google.android.gms.maps.model.LatLng> getGeometryObject()
Gets the coordinates- Specified by:
getGeometryObject
in interfaceGeometry<java.util.List<com.google.android.gms.maps.model.LatLng>>
- Overrides:
getGeometryObject
in classLineString
- Returns:
- ArrayList of LatLng
-
-