Class LineString

    • 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 LineString
      java.lang.String getGeometryType()
      Gets the type of geometry
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • LineString

        public LineString​(java.util.List<com.google.android.gms.maps.model.LatLng> coordinates)
        Creates a new LineString object
        Parameters:
        coordinates - array of coordinates
    • Method Detail

      • getGeometryType

        public java.lang.String getGeometryType()
        Gets the type of geometry
        Specified by:
        getGeometryType in interface Geometry<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 interface Geometry<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 class java.lang.Object