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: http://trafficopendata.ottawa.ca/ts/rsadmin/certificate.jsp 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

Traffic Events Data

Traffic Events Data can be accessed at https://traffic.ottawa.ca/map/service.events

Results can be obtained in either French or English using the accept-language=en or accept-language=fr param

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

Field NameTypeMandatoryDescription
IdIntegerYes 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.
CreatedStringYes The time of creation of the event. The value is in the format yyyy-mm-dd hh:MM
UpdatedStringYes The time the event was last updated. The value is in the format yyyy-mm-dd hh:MM
EventTypeStringYes The type of event. Possible values include CONSTRUCTION, SPECIAL_EVENT, INCIDENT
eventSubTypeStringOptional Further classification of the event.
generation_sourceStringYes 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
statusStringYes 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
headlineStringYes Short description (title) for the event
messageStringYes Detailed message describing the event
causeStringOptional Reason for the event
geodataJSON ObjectYes Geodata describing the location information for the event. The data is a valid GeoJSON geometry object. Currently only POINT geometries are supported.
mainStreetStringOptional The main roadway affected by the event.
crossStreet1StringOptional Secondary roadway affected by the event. If mainStreet and crossStreet1 are specified, the event occurs at the intersection of the streets.
crossStreet2StringOptional Secondary roadway affected by the event. If mainStreet, crossStreet1 and crossStreet2 are specified, the event impacts mainStreet between crossStreet1 and crossStreet2.
priorityStringOptional The level of impact of the event. Possible values inlude LOW, MEDIUM, HIGH and UNKNOWN
areaStringOptional The name of the area used to provide quick context for the event location (e.g. "Byward Market" or "Lansdowne")
impacted_groupsIntegerOptional

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

PriorityStringOptional The level of impact of the event. Possible values inlude LOW, MEDIUM, HIGH and UNKNOWN
scheduleJSON ArrayOptional 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 https://traffic.ottawa.ca/map/service/camera

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

Field NameTypeDescription
IdInteger The unique ID of the event for purposes of the web service.
camera_numberInteger 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.
nameString The name of the camera. Usually a intersection or other location
name_frenchString The French name of the camera. Usually a intersection or other location
longitudeFloat 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.
latitudeFloat 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_ownerString 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

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 NameTypeDescription
IdInteger The unique ID of the parking lot for purposes of the web service.
lot_idInteger The Parking Lot ID as assigned by Parking Service
addressString Address of the parking lot
addressString Address of the parking lot in French
name_frenchString The French name of the camera. Usually a intersection or other location
longitudeFloat The longitude of the parking lot as displayed on the map
latitudeFloat The latitude of the parking lot as displayed on the map
capacityInteger The total capacity of the parking lot.
freeSpacesInteger The number of currently available parking spaces as reported by parking guidance systems. NO WARRANTY IS MADE FOR ACCURACY.
freeAccessibleSpacesInteger The number of currently available accessible spaces as reported by parking guidance systems. NO WARRANTY IS MADE FOR ACCURACY.
permit_infoString Information about parking permits for the parking lot.
permit_info_frString Information about parking permits for the parking lot.
typeString Information about the parking lot type (e.g. garage, surface lot)
type_frString Information about the parking lot type (e.g. garage, surface lot)
externalLinkString Link to additional information about the parking lot
externalLink_frString Link to additional information about the parking lot

Park and Rides

Park and Ride information can be accessed at https://www.octranspo.com/en/our-services/park-ride/

Data is provided on a best effort basis. For the authoritative source of parking data, please see the Park and Ride 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 NameTypeDescription
IdInteger The unique ID of the parking lot for purposes of the web service.
nameString Name of the Park and Ride as labelled by OC Transpo
location_detailsString Address of the parking lot
location_details_frString Address of the parking lot in French
permits_requiredboolean True if permits are required for any space at the park and ride. False otherwise.
permits_availableboolean True if permits are available for some spaces at the park and ride. False otherwise.
longitudeFloat The longitude of the parking lot as displayed on the map
latitudeFloat The latitude of the parking lot as displayed on the map
capacityInteger The total number of spaces.
accessible_capacityInteger The number of accessible spaces.
permit_infoString Information about parking permits for the parking lot.
permit_info_frString Information about parking permits for the parking lot.
free_parking_availableBoolean True if some spaces are available without a permit.
notesString Additional Information
notes_frString Additional Information
externalLinkString Link to additional information about the parking lot
externalLink_frString 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

Data is provided on a best effort basis.

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

Field NameTypeDescription
IdInteger The unique ID of the parking lot for purposes of the web service.
lot_idInteger The Parking Lot ID as assigned by Parking Service
locationString Address of the parking lot
location_frString Address of the parking lot in French
longitudeFloat The longitude of the parking lot as displayed on the map
latitudeFloat The latitude of the parking lot as displayed on the map