-
- All Implemented Interfaces:
-
com.google.maps.android.data.Geometry
public class GeoJsonLineString extends LineString
A GeoJsonLineString geometry represents a number of connected s.
-
-
Constructor Summary
Constructors Constructor Description GeoJsonLineString(List<LatLng> coordinates)Creates a new GeoJsonLineString object GeoJsonLineString(List<LatLng> coordinates, List<Double> altitudes)Creates a new GeoJsonLineString object
-
Method Summary
Modifier and Type Method Description StringgetType()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
-
-
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
-
getAltitudes
List<Double> getAltitudes()
Gets the altitudes of the GeoJsonLineString
-
-
-
-