Guides
Guides

Response data types

This section provides a reference for the data structures used in responses to requests against the Safety Cameras Feed API resources.

ElementData TypeUseDescription
safetyCamerasArray of SafetyCamera.RequiredSafety cameras.

SafetyCamera

SafetyCamera defines the following attributes:

ElementData TypeUseDescription
idStringRequiredId of a camera
countryStringRequiredThe country code in ISO 3166-1 alpha 3 format.
positionsArray of the Position.RequiredPosition/s of a camera. There can be both single position cameras and cameras represented by a sequence of positions. In the case of Average speed cameras, the first position in the array represents a section start camera and the section end camera.
cameraTypeStringRequiredThe type of a camera, can be one of Average, BusLane, DangerousZone, Mobile, RedLight, RedLightAndSpeed, RegularMobileZone, Speed.• An Average camera measures a users average speed between 2 or more fixed positions.
• A BusLane camera watches for unauthorized vehicles using a lane that is designated as buses-only.
• A DangerousZone camera represents a stretch of road (between 2 positions) where a camera exists or has been reported. The actual camera may be anywhere within the zone, and it could be any of the other types. This type is used only in France, and it is the only type reported in France, in compliance with local regulations.
• A Mobile camera checks the speed of passing vehicles at a single position and can be moved to different locations.
• A RedLight camera checks if a vehicle passes through a red traffic light (breaking traffic rules) at a single, fixed position. The rule for red light cameras in Eu region is that those are placed close to the “stop line” before the traffic lights, this is where they are enforcing, once you cross the stop line on a red light, you receive the fine. This rule is applied for RedLightAndSpeed camera type.
• A RedLightAndSpeed checks both whether a vehicle passes through a red traffic light and the speed of this vehicle, at a single, fixed position.
• A RegularMobileZone camera represents a stretch of road (between 2 or more positions) where mobile cameras have been frequently reported in the last few months.
• A Speed camera checks the speed of vehicles at a single, fixed position.
Occasionally, new Camera Types are added. HERE recommends that you refrain from utilizing the new types if you are unsure of what they define.
speedLimitSpeedLimitOptionalThe speed limit of the road the camera is covering.
directionTypeStringOptionalDirections being enforced, can be one of Both, Same.
lengthLengthOptionalThe length of the zone if applicable.
openLRArray of stringsOptionalBase64 encoded binary OpenLR representation of the location.
This is based on the ISO/TS 21219-22 (TPEG2-OLR) specification.
In the case of a single camera alert, this will be a point location snapped to the nearest roadway, and in the case of a zone alert (Average, RegularMobileZone, or DangerousZone) it will be linear location describing a roadway segment covered by the zone. There is one array element if the directionType is “Same,” and two if the directionType is “Both,” describing the two directions of travel on the road.
timestampISO-8601 Date/Time (String)OptionalThe last updated timestamp for the camera, according to the ISO-8601.
activeBooleanOptionalIndicates if camera is active (enabled)

Position

Position defines the following attributes:

ElementData TypeUseDescription
latitudeDoubleRequiredLatitude of the location.
longitudeDoubleRequiredLongitude of the location.
drivingDirectionIntegerOptionalDriving direction that the safety camera is enforcing, [0..359].

SpeedLimit

SpeedLimit defines the following attributes:

ElementData TypeUseDescription
valueIntegerRequiredThe speed limit value.
If limit is variable and date and time range limit is defined, speed limit is updated to value valid at the local time for camera position based on date and time range.
unitStringRequiredSpeed unit, as in KPH or MPH.
isVariableBooleanOptionalThis camera is in a variable speed zone. The speed limit value provided may not be the current speed limit, because it can change.
(missing values always default to false)
isUnlimitedBooleanOptionalSpeeds for this camera are normally unlimited. A speed limit value isn't provided.
(missing value will always default to false)
dateTimeRangeLimitsArray of Date Time LimitOptionalAdditional speed limits for date and time ranges.
specialRoadConditionLimitsArray of Special Road Condition LimitOptionalAdditional speed limits for different road conditions.
speedLimitOutsideRangeIntegerOptionalSpeeds limit valid outside Date and time range or special road conditions in the same unit.
Present only when the speed limit is variable and Date time range or special road conditions limits are defined.

DateTimeLimit

DateTimeLimit defines the following attributes:

ElementData TypeUseDescription
valueIntegerRequiredSpeed limit value.
timeRangeTimeRangeOptionalDefines the time interval for the speed limit value.
daysOfWeekArray of DayOfWeekOptionalDefines days when the speed limit value applies. Omitted if the limit applies to every day of the week.
dateRangeDateRangeOptionalDefines the date interval when the speed limit value applies.
monthRangeMonthRangeOptionalDefines the months when the speed limit value applies.

SpecialRoadConditionLimit

SpecialRoadConditionLimit defines the following attributes:

ElementData TypeUseDescription
specialRoadConditionStringRequiredCan be either RAIN, FOG, SNOW, or SCHOOL.
valueIntegerRequiredSpeed limit value.

DateRange

DateRange defines the following attributes:

ElementData TypeUseDescription
startLocalDateRequiredStart of the date interval.
endLocalDateRequiredEnd of the date interval.

TimeRange

TimeRange defines the following attributes:

ElementData TypeUseDescription
startLocalTimeRequiredStart of the time interval.
endLocalTimeRequiredEnd of the time interval.

MonthRange

MonthRange defines the following attributes:

ElementData TypeUseDescription
startMonthRequiredStart of the month interval.
endMonthRequiredEnd of the month interval.

Length

Length defines the following attributes:

ElementData TypeUseDescription
valueIntegerRequiredThe length value.
unitStringRequiredLength unit, such as Meter.