Class 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 object
      KmlLineString​(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 altitudes
      java.util.ArrayList<com.google.android.gms.maps.model.LatLng> getGeometryObject()
      Gets the coordinates
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • 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 coordinates
        altitudes - 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 interface Geometry<java.util.List<com.google.android.gms.maps.model.LatLng>>
        Overrides:
        getGeometryObject in class LineString
        Returns:
        ArrayList of LatLng