Package com.google.maps.model
Class SpeedLimit
- java.lang.Object
-
- com.google.maps.model.SpeedLimit
-
- All Implemented Interfaces:
java.io.Serializable
public class SpeedLimit extends java.lang.Object implements java.io.Serializable
A speed limit result from the Roads API.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description java.lang.String
placeId
A unique identifier for a place.double
speedLimit
The speed limit for that road segment, specified in kilometers per hour.
-
Constructor Summary
Constructors Constructor Description SpeedLimit()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
speedLimitMph()
java.lang.String
toString()
-
-
-
Field Detail
-
placeId
public java.lang.String placeId
A unique identifier for a place. All placeIds returned by the Roads API will correspond to road segments.
-
speedLimit
public double speedLimit
The speed limit for that road segment, specified in kilometers per hour.To obtain the speed in miles per hour, use
speedLimitMph()
.
-
-