Class GeoJsonLineString

  • All Implemented Interfaces:
    Geometry<java.util.List<com.google.android.gms.maps.model.LatLng>>

    public class GeoJsonLineString
    extends LineString
    A GeoJsonLineString geometry represents a number of connected LatLngs.
    • Constructor Summary

      Constructors 
      Constructor Description
      GeoJsonLineString​(java.util.List<com.google.android.gms.maps.model.LatLng> coordinates)
      Creates a new GeoJsonLineString object
      GeoJsonLineString​(java.util.List<com.google.android.gms.maps.model.LatLng> coordinates, java.util.List<java.lang.Double> altitudes)
      Creates a new GeoJsonLineString object
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.List<java.lang.Double> getAltitudes()
      Gets the altitudes of the GeoJsonLineString
      java.util.List<com.google.android.gms.maps.model.LatLng> getCoordinates()
      Gets the coordinates of the GeoJsonLineString
      java.lang.String getType()
      Gets the type of geometry.
      • Methods inherited from class java.lang.Object

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

      • GeoJsonLineString

        public GeoJsonLineString​(java.util.List<com.google.android.gms.maps.model.LatLng> coordinates)
        Creates a new GeoJsonLineString object
        Parameters:
        coordinates - list of coordinates of GeoJsonLineString to store
      • GeoJsonLineString

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

      • getType

        public java.lang.String getType()
        Gets the type of geometry. The type of geometry conforms to the GeoJSON 'type' specification.
        Returns:
        type of geometry
      • getCoordinates

        public java.util.List<com.google.android.gms.maps.model.LatLng> getCoordinates()
        Gets the coordinates of the GeoJsonLineString
        Returns:
        list of coordinates of the GeoJsonLineString
      • getAltitudes

        public java.util.List<java.lang.Double> getAltitudes()
        Gets the altitudes of the GeoJsonLineString
        Returns:
        list of altitudes of the GeoJsonLineString