public class CameraManager extends AreaLimitedManager
CameraManager.CamerasOnRouteOptions
object. CameraManager.getCamerasOnRoute(com.inrix.sdk.CameraManager.CamerasOnRouteOptions, com.inrix.sdk.CameraManager.IGetCamerasResponseListener)
method.List
of Camera
object.CameraManager.CameraImageOptions
object.CameraManager.getCameraUrl(com.inrix.sdk.CameraManager.CameraImageOptions)
method.Modifier and Type | Class and Description |
---|---|
static class |
CameraManager.CameraImageOptions
Contains options for requesting camera image, such as size and camera id.
|
static class |
CameraManager.CamerasInBoxOptions
Contains information used in filtering which traffic cameras are returned when
retrieving traffic cameras in a rectangular region.
|
static class |
CameraManager.CamerasInRadiusOptions
Contains information used in filtering which traffic cameras are returned when
retrieving traffic cameras in a circular region.
|
static class |
CameraManager.CamerasManagerException
A exception that is thrown when there is an error with a
CameraManager operation. |
static class |
CameraManager.CamerasOnRouteOptions
Contains options for requesting cameras along the route, such as route points and distance in miles for cameras radius.
|
static interface |
CameraManager.IGetCamerasResponseListener
The response listener for retrieving cameras collection.
|
Modifier and Type | Field and Description |
---|---|
static double |
CAMERA_RADIUS_IN_MILES_DEFAULT
Indicates default values for radius in miles.
|
static int |
GEO_POINTS_DEFAULT_COMPRESSION_MODE
Indicates default compression mode for a route points.
|
Modifier and Type | Method and Description |
---|---|
double |
getAllowedArea(UserPreferences.Unit units)
Get the maximum allowed area to query in the given units.
|
ICancellable |
getCamerasInBox(CameraManager.CamerasInBoxOptions options,
CameraManager.IGetCamerasResponseListener listener)
Gets traffic cameras in specified rectangular area.
|
ICancellable |
getCamerasInRadius(CameraManager.CamerasInRadiusOptions options,
CameraManager.IGetCamerasResponseListener listener)
Gets traffic cameras in radius.
|
ICancellable |
getCamerasOnRoute(CameraManager.CamerasOnRouteOptions options,
CameraManager.IGetCamerasResponseListener listener)
Gets traffic cameras along the route.
|
String |
getCameraUrl(CameraManager.CameraImageOptions options)
Retrieves a URL that can be used to obtain a traffic camera bitmap using camera id.
|
CamerasConfig |
getConfiguration()
Gets the
CamerasConfig instance. |
boolean |
showCameras(float zoom)
Gets the value indicating whether to show cameras on the specified zoom
level.
|
isQueryAreaWithinLimits, isQueryAreaWithinLimits
public static final int GEO_POINTS_DEFAULT_COMPRESSION_MODE
public static final double CAMERA_RADIUS_IN_MILES_DEFAULT
public CamerasConfig getConfiguration()
CamerasConfig
instance.CamerasConfig
.public boolean showCameras(float zoom)
zoom
- Target zoom level.public double getAllowedArea(UserPreferences.Unit units)
getAllowedArea
in class AreaLimitedManager
units
- units to express the area inpublic String getCameraUrl(CameraManager.CameraImageOptions options)
options
- The camera configuration options.CameraManager.CamerasManagerException
- when any of the specified arguments is invalid.public ICancellable getCamerasOnRoute(CameraManager.CamerasOnRouteOptions options, CameraManager.IGetCamerasResponseListener listener)
options
- Information about the route for cameras to return.listener
- The listener that will receive the response.ICancellable
so that the action can be cancelled.CameraManager.CamerasManagerException
- when:
public ICancellable getCamerasInRadius(CameraManager.CamerasInRadiusOptions options, CameraManager.IGetCamerasResponseListener listener)
options
- Information about the cameras to return.listener
- The listener that will receive the response.ICancellable
so that the action can be cancelled.CameraManager.CamerasManagerException
- when:
public ICancellable getCamerasInBox(CameraManager.CamerasInBoxOptions options, CameraManager.IGetCamerasResponseListener listener)
options
- Information about the cameras to return.listener
- The listener that will receive the response.ICancellable
so that the action can be cancelled.CameraManager.CamerasManagerException
- when:
Copyright © 2013-2018 INRIX, Inc. All Rights Reserved.