Class GeoJsonLineString
- java.lang.Object
-
- com.google.maps.android.data.LineString
-
- com.google.maps.android.data.geojson.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 connectedLatLngs.
-
-
Constructor Summary
Constructors Constructor Description GeoJsonLineString(java.util.List<com.google.android.gms.maps.model.LatLng> coordinates)Creates a new GeoJsonLineString objectGeoJsonLineString(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 GeoJsonLineStringjava.util.List<com.google.android.gms.maps.model.LatLng>getCoordinates()Gets the coordinates of the GeoJsonLineStringjava.lang.StringgetType()Gets the type of geometry.-
Methods inherited from class com.google.maps.android.data.LineString
getGeometryObject, getGeometryType, toString
-
-
-
-
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 coordinatesaltitudes- 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
-
-