public class SpeedLimit
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
java.lang.String |
placeId
placeId is a unique identifier for a place. |
long |
speedLimit
speedLimit is the speed limit for that road segment, specified in kilometers per hour. |
| Constructor and Description |
|---|
SpeedLimit() |
| Modifier and Type | Method and Description |
|---|---|
long |
speedLimitMph()
Returns the speed limit in miles per hour (MPH).
|
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.public long speedLimit
speedLimit is the speed limit for that road segment, specified in kilometers per hour.
To obtain the speed in miles per hour, use speedLimitMph().