Package-level declarations
Types
Class representing a road camera on the Mapbox platform.
Enum class representing the type of road cameras on the Mapbox platform.
Contains information about a speed zone, including entry, middle, and exit cameras. Provides data about distance, timing, and speed characteristics of the zone. Speed zones represent areas monitored for speed enforcement with cameras at entry, middle, and/or exit points.
Observer interface for upcoming road cameras.
Properties
Calculates the current average speed of the vehicle inside the speed zone in meters per second. Returns null if either duration or distance traveled cannot be determined, or if distance is not positive.
Converts the average speed within the zone from meters per second to kilometers per hour.
Calculates the distance traveled within the speed zone in meters. Returns null if the total distance is unknown.
Current speed limit enforced by the speed zone in meters per second (m/s).
Extension property to get the speed limit enforced by the road camera in kilometers per hour (km/h).
Converts the speed limit enforced by the speed zone from meters per second to kilometers per hour.
Extension property to get the speed limit enforced by the road camera in miles per hour (mph).
Extension property to get the travel time to the road camera in seconds.
The type of the speed zone, which can be one of the following: