public class LineString extends Geometry
| Modifier and Type | Field and Description |
|---|---|
protected java.util.List<Point> |
points |
FEATURE_TYPE| Constructor and Description |
|---|
LineString(com.google.api.services.mapsengine.model.Feature feature)
Converts the provided Feature into a typed LineString, discarding properties.
|
LineString(java.util.List<Point> points)
Constructs a LineString based on the collection of points provided.
|
| Modifier and Type | Method and Description |
|---|---|
com.google.api.services.mapsengine.model.Feature |
asFeature(java.util.Map<java.lang.String,java.lang.Object> properties)
Returns a Feature that can be used by the Maps Engine API.
|
java.util.List<Point> |
getPoints() |
fromGeoJsonprotected final java.util.List<Point> points
public LineString(java.util.List<Point> points)
points - The Points to use, in orderpublic LineString(com.google.api.services.mapsengine.model.Feature feature)
feature - the Feature returned by the APIjava.lang.IllegalArgumentException - when feature is not a line stringpublic com.google.api.services.mapsengine.model.Feature asFeature(java.util.Map<java.lang.String,java.lang.Object> properties)
public java.util.List<Point> getPoints()