Package ai.nextbillion.maps.model
Class SpeedLimit
java.lang.Object
ai.nextbillion.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.StringplaceIdA unique identifier for a place.doublespeedLimitThe speed limit for that road segment, specified in kilometers per hour. -
Constructor Summary
Constructors Constructor Description SpeedLimit() -
Method Summary
Modifier and Type Method Description longspeedLimitMph()java.lang.StringtoString()
-
Field Details
-
placeId
public java.lang.String placeIdA unique identifier for a place. All placeIds returned by the Roads API will correspond to road segments. -
speedLimit
public double speedLimitThe speed limit for that road segment, specified in kilometers per hour.To obtain the speed in miles per hour, use
speedLimitMph().
-
-
Constructor Details
-
SpeedLimit
public SpeedLimit()
-
-
Method Details
-
speedLimitMph
public long speedLimitMph()- Returns:
- Returns the speed limit in miles per hour (MPH).
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-