@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class LegGeometry extends Object implements Serializable, Cloneable, StructuredPojo
Contains the geometry details for each path between a pair of positions. Used in plotting a route leg on a map.
Constructor and Description |
---|
LegGeometry() |
Modifier and Type | Method and Description |
---|---|
LegGeometry |
clone() |
boolean |
equals(Object obj) |
List<List<Double>> |
getLineString()
An ordered list of positions used to plot a route on a map.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setLineString(Collection<List<Double>> lineString)
An ordered list of positions used to plot a route on a map.
|
String |
toString()
Returns a string representation of this object.
|
LegGeometry |
withLineString(Collection<List<Double>> lineString)
An ordered list of positions used to plot a route on a map.
|
LegGeometry |
withLineString(List<Double>... lineString)
An ordered list of positions used to plot a route on a map.
|
public List<List<Double>> getLineString()
An ordered list of positions used to plot a route on a map.
The first position is closest to the start position for the leg, and the last position is the closest to the end position for the leg.
For example, [[-123.117, 49.284],[-123.115, 49.285],[-123.115, 49.285]]
The first position is closest to the start position for the leg, and the last position is the closest to the end position for the leg.
For example, [[-123.117, 49.284],[-123.115, 49.285],[-123.115, 49.285]]
public void setLineString(Collection<List<Double>> lineString)
An ordered list of positions used to plot a route on a map.
The first position is closest to the start position for the leg, and the last position is the closest to the end position for the leg.
For example, [[-123.117, 49.284],[-123.115, 49.285],[-123.115, 49.285]]
lineString
- An ordered list of positions used to plot a route on a map.
The first position is closest to the start position for the leg, and the last position is the closest to the end position for the leg.
For example, [[-123.117, 49.284],[-123.115, 49.285],[-123.115, 49.285]]
public LegGeometry withLineString(List<Double>... lineString)
An ordered list of positions used to plot a route on a map.
The first position is closest to the start position for the leg, and the last position is the closest to the end position for the leg.
For example, [[-123.117, 49.284],[-123.115, 49.285],[-123.115, 49.285]]
NOTE: This method appends the values to the existing list (if any). Use
setLineString(java.util.Collection)
or withLineString(java.util.Collection)
if you want to
override the existing values.
lineString
- An ordered list of positions used to plot a route on a map.
The first position is closest to the start position for the leg, and the last position is the closest to the end position for the leg.
For example, [[-123.117, 49.284],[-123.115, 49.285],[-123.115, 49.285]]
public LegGeometry withLineString(Collection<List<Double>> lineString)
An ordered list of positions used to plot a route on a map.
The first position is closest to the start position for the leg, and the last position is the closest to the end position for the leg.
For example, [[-123.117, 49.284],[-123.115, 49.285],[-123.115, 49.285]]
lineString
- An ordered list of positions used to plot a route on a map.
The first position is closest to the start position for the leg, and the last position is the closest to the end position for the leg.
For example, [[-123.117, 49.284],[-123.115, 49.285],[-123.115, 49.285]]
public String toString()
toString
in class Object
Object.toString()
public LegGeometry clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.