java.io.Serializable
public class SpeedLimit
extends java.lang.Object
implements java.io.Serializable
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 | Description |
---|---|
SpeedLimit() |
Modifier and Type | Method | Description |
---|---|---|
long |
speedLimitMph() |
|
java.lang.String |
toString() |
public java.lang.String placeId
public double speedLimit
To obtain the speed in miles per hour, use speedLimitMph()
.