public class SnappedPoint
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
LatLng |
location
location contains a latitude and longitude value representing the snapped location. |
int |
originalIndex
originalIndex is an integer that indicates the corresponding value in the original
request. |
java.lang.String |
placeId
placeId is a unique identifier for a place. |
Constructor and Description |
---|
SnappedPoint() |
public LatLng location
location
contains a latitude and longitude value representing the snapped location.public int originalIndex
originalIndex
is an integer that indicates the corresponding value in the original
request. Each value in the request should map to a snapped value in the response. However,
if you've set interpolate=true, then it's possible that the response will contain more
coordinates than the request. Interpolated values will not have an originalIndex. These
values are indexed from 0, so a point with an originalIndex of 4 will be the snapped value
of the 5th lat/lng passed to the path parameter.
A point that was not on the original path, or when interpolate=false will have an originalIndex of -1.
public java.lang.String placeId
placeId
is a unique identifier for a place. All placeIds returned by the Roads API
will correspond to road segments. The placeId can be passed to the speedLimit method
to determine the speed limit along that road segment.