Package 

Class GeoJsonLineString

  • All Implemented Interfaces:
    com.google.maps.android.data.Geometry

    
    public class GeoJsonLineString
    extends LineString
                        

    A GeoJsonLineString geometry represents a number of connected s.

    • Method Summary

      Modifier and Type Method Description
      String getType() Gets the type of geometry.
      List<LatLng> getCoordinates() Gets the coordinates of the GeoJsonLineString
      List<Double> getAltitudes() Gets the altitudes of the GeoJsonLineString
      • Methods inherited from class com.google.maps.android.data.LineString

        getGeometryObject, getGeometryType, toString
      • Methods inherited from class com.google.maps.android.data.Geometry

        getGeometryObject
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • GeoJsonLineString

        GeoJsonLineString(List<LatLng> coordinates)
        Creates a new GeoJsonLineString object
        Parameters:
        coordinates - list of coordinates of GeoJsonLineString to store
      • GeoJsonLineString

        GeoJsonLineString(List<LatLng> coordinates, List<Double> altitudes)
        Creates a new GeoJsonLineString object
        Parameters:
        coordinates - array of coordinates
        altitudes - array of altitudes
    • Method Detail

      • getType

         String getType()

        Gets the type of geometry. The type of geometry conforms to the GeoJSON 'type'specification.

      • getCoordinates

         List<LatLng> getCoordinates()

        Gets the coordinates of the GeoJsonLineString