About the data

Overview

The following data sets are available.

  • Traffic Camera Images API
  • Traffic Events
  • Traffic Cameras
  • Parking Lots
  • Park and Rides
  • Red Light Cameras

Traffic WebCam API

Provides images for the City of Ottawa's traffic web cams. These images are available at sixty second intervals and are approximately 30-50KB in size. To access the images users will be required to have an access key. The application form for access keys can be found on this page: Certificate Request Form(link is external) After completing the registration form and receiving a confirmation email with a certificate number you will be able to access the camera images. To access a camera image you can access the URL http://traffic.ottawa.ca/opendata/camera with the following parameters: Camera number

Certificate: The certificate string as supplied in the confirmation email.

Id: User Id (optional).

Note: City of Ottawa cameras have camera numbers less than 2000, and MTO cameras have camera numbers greater than 2000.

Note: The Id is a string value assigned by your user to each user or instance of your application accessing the images. The Id must be alphanumeric characters [a-z, A-Z, 0-9]. A given user id for a given certificate may only access the cameras at intervals of at least 60 seconds.

e.g. To access City Camera 16 (Bank and Hunt Club) -- http://traffic.ottawa.ca/opendata/camera?c=16&certificate=CERT123&id=2

e.g. To access MTO Camera 2002 (St Laurent) -- http://traffic.ottawa.ca/opendata/camera?c=2002&certificate=CERT123&id=1

To obtain a list of camera numbers you can access a JSON list of the available cameras: http://traffic.ottawa.ca/map/service/camera(link is external)

Traffic Events Data

Traffic Events Data can be accessed at the following links:

The following list of fields can be present. Only fields containing data will be returned.

Field Name Type Mandatory Description
Id Integer Yes The unique ID of the event. For event IDs less than 10000, the same ID may have been reused between event types. For later events, the ID is unique across all events.
Created String Yes The time of creation of the event. The value is in the format yyyy-mm-dd hh:MM
Updated String Yes The time the event was last updated. The value is in the format yyyy-mm-dd hh:MM
EventType String Yes The type of event. Possible values include CONSTRUCTION, SPECIAL_EVENT, INCIDENT
eventSubType String Optional Further classification of the event.
generation_source String Yes The source for the event. Events created by the City of Ottawa will have a value of CITY. Events created from 3rd party sources will have a corresponding value. Possible values CITY, MTO
status String Yes The current status of the event. Status values include:
  • ACTVE - Events that have commenced
  • SCHEDULED - Events that are scheduled to start in the future
  • ARCHIVED - Events that have either been manually ended or ended based on a schedule
headline String Yes Short description (title) for the event
message String Yes Detailed message describing the event
cause String Optional Reason for the event
geodata JSON Object Yes Geodata describing the location information for the event. The data is a valid GeoJSON geometry object. Currently only POINT geometries are supported.
mainStreet String Optional The main roadway affected by the event.
crossStreet1 String Optional Secondary roadway affected by the event. If mainStreet and crossStreet1 are specified, the event occurs at the intersection of the streets.
crossStreet2 String Optional Secondary roadway affected by the event. If mainStreet, crossStreet1 and crossStreet2 are specified, the event impacts mainStreet between crossStreet1 and crossStreet2.
priority String Optional The level of impact of the event. Possible values inlude LOW, MEDIUM, HIGH and UNKNOWN
area String Optional The name of the area used to provide quick context for the event location (e.g. "Byward Market" or "Lansdowne")
impacted_groups Integer Optional

The groups affected by the event. To save space, each mode of transportation is given a number code. The impacted_groups value is the some of the impacted modes of transportation.

The codes for the modes of transportation are:

  • 1 - Cars
  • 2 - Pedestrians
  • 4 - Bicycles
  • 8 - Transit
  • 16 - Trucks

e.g. a value of 25 indicates that cars, transit and trucks are impacted but not pedestrians or bicycles

Priority String Optional The level of impact of the event. Possible values inlude LOW, MEDIUM, HIGH and UNKNOWN
schedule JSON Array Optional If present, the schedule is an array of schedule JSON Objects. Each schedule object can contain the following fields:
  • startDateTime - (mandatory) a string value in the format "yyyy-mm-dd hh:MM"
  • endDateTime - (mandatory) a string value in the format "yyyy-mm-dd hh:MM"
  • days - (optional) Defines the days of the week that the event affects with days assigned numerical value 1 (Monday) to 7 Sunday. For example, 67 means Saturday & Sunday, --- 167 is M/Sa/Su.
  • hours - (optional) A string in the format "hhMMhhMM" that defines the hours of the day that the event occurs. If the second time is earlier than the first time, it implies the event occurs overnight. e.g. 21300530 implies an event scheduled form 21:30 to 05:30

Traffic Camera Data

Traffic Events Data can be accessed at http://traffic.ottawa.ca/map/service/camera(link is external)

The following list of fields can be present. Only fields containing data will be returned.

Field Name Type Description
Id Integer The unique ID of the event for purposes of the web service.
camera_number Integer The camera number used to refer to the camera in the camera management system. May be used for reference if requesting video from the city.
name String The name of the camera. Usually a intersection or other location
name_french String The French name of the camera. Usually a intersection or other location
longitude Float The longitude of the camera as displayed on the map. Usually the longitude of the center of an intersection not the pole where the camera is mounted.
latitude Float The latitude of the camera as displayed on the map. Usually the latitude of the center of an intersection not the pole where the camera is mounted.
camera_owner String The source of the camera image. Currently either CITY or MTO

Parking Data

Parking Data can be accessed at https://traffic.ottawa.ca/map/service/parking(link is external)

Data is provided on a best effort basis. For the authoritative source of parking data, please see the Parking section of the City of Ottawa website.

The following list of fields can be present. Only fields containing data will be returned for a given parking lot

Field Name Type Description
Id Integer The unique ID of the parking lot for purposes of the web service.
lot_id Integer The Parking Lot ID as assigned by Parking Service
address String Address of the parking lot
address String Address of the parking lot in French
name_french String The French name of the camera. Usually a intersection or other location
longitude Float The longitude of the parking lot as displayed on the map
latitude Float The latitude of the parking lot as displayed on the map
capacity Integer The total capacity of the parking lot.
freeSpaces Integer The number of currently available parking spaces as reported by parking guidance systems. NO WARRANTY IS MADE FOR ACCURACY.
freeAccessibleSpaces Integer The number of currently available accessible spaces as reported by parking guidance systems. NO WARRANTY IS MADE FOR ACCURACY.
permit_info String Information about parking permits for the parking lot.
permit_info_fr String Information about parking permits for the parking lot.
type String Information about the parking lot type (e.g. garage, surface lot)
type_fr String Information about the parking lot type (e.g. garage, surface lot)
externalLink String Link to additional information about the parking lot
externalLink_fr String Link to additional information about the parking lot

Park and Rides

Park and Ride information can be accessed at https://traffic.ottawa.ca/map/service/park_and_ride(link is external)

Data is provided on a best effort basis. For the authoritative source of parking data, please see the Park and Ride(link is external) section of the OC Transpo website.

The following list of fields can be present. Only fields containing data will be returned for a given parking lot

Field Name Type Description
Id Integer The unique ID of the parking lot for purposes of the web service.
name String Name of the Park and Ride as labelled by OC Transpo
location_details String Address of the parking lot
location_details_fr String Address of the parking lot in French
permits_required boolean True if permits are required for any space at the park and ride. False otherwise.
permits_available boolean True if permits are available for some spaces at the park and ride. False otherwise.
longitude Float The longitude of the parking lot as displayed on the map
latitude Float The latitude of the parking lot as displayed on the map
capacity Integer The total number of spaces.
accessible_capacity Integer The number of accessible spaces.
permit_info String Information about parking permits for the parking lot.
permit_info_fr String Information about parking permits for the parking lot.
free_parking_available Boolean True if some spaces are available without a permit.
notes String Additional Information
notes_fr String Additional Information
externalLink String Link to additional information about the parking lot
externalLink_fr String Link to additional information about the parking lot

Red Light Camera Data

Red Light Camera data can be accessed at https://traffic.ottawa.ca/map/service/red_light_camera(link is external)

Data is provided on a best effort basis.

The following list of fields can be present.

Field Name Type Description
Id Integer The unique ID of the red light camera for purposes of the web service.
location String Address of the red light camera.
location_fr String Address of the red light camera.
longitude Float The longitude of the red light camera as displayed on the map
latitude Float The latitude of the red light camera as displayed on the map

Automated Speed Enforcement

Automated Speed Enforcement data can be accessed at https://traffic.ottawa.ca/map/service/ase_camera(link is external)

Data is provided on a best effort basis. For the authoritative source of automated speed enforcement data, please see the Automated Enforcement section of the City of Ottawa website.

The following list of fields can be present

Field Name Type Description
Id Integer The unique ID of the ASE camera for purposes of the web service.
name String Description of the ASE camera location.
name_french String Description of the ASE camera location in French
longitude Float The longitude of the ASE camera as displayed on the map
latitude Float The latitude of the ASE camera as displayed on the map