API Response Schema Ontario
pagingInfo: Object
- itemsPerPage: Integer
- totalPages: Integer
- totalItems: Integer
- currentPage: Integer
general: Object
- id: String
- trafficControl: String
- intersectionType: String
- light: String
- latitude: Double
- longitude: Double
- accidentNum: String
- thruLaneNo: Integer
- sameTypeNoOfLanes: Integer
- accidentDate: DateTime
- accidentTime: DateTime
- accidentYear: Integer
- classificationOfAccident: String
- impactLocation: String
- roadJurisdiction: String
- environmentCondition1: String
- environmentCondition2: String
- road1SurfaceCondition: String
- road2SurfaceCondition: String
- vehicle1Type: String
- vehicle2Type: String
- driver1Action: String
- driver2Action: String
- initialDirectionOfTravelOne: String
- initialDirectionOfTravelTwo: String
- hasInjury: Boolean
- hasFatal: Boolean
- pedestrianInvolved: Boolean
- cyclistInvolved: Boolean
- motorcycleInvolved: Boolean
- impairedDriverInvolved: Boolean
- aggressiveDriverInvolved: Boolean
- distractedDriverInvolved: Boolean
- elderDriverInvolved: Boolean
- youngDriverInvolved: Boolean
- locationDescription: String
- municipalityName: String
- jurisdictionName: String
- geoID: String
- locationType: String
- lastModified: DateTime
roads: Array of Objects
- id: String
- name: String
- roadCondition: String
- roadPavementMarkings: String
- roadSurface: String
- roadCharacter: String
- roadAlignment: String
- roadSurfaceCondition: String
- rptLocInfo: String
- rptNotes: String
vehicles: Array of Objects
- id: String
- vehicleCount: Integer
- vehicleType: String
- vehicleInitialDirection: String
- vehicleManeuver: String
- vehicleDamage: String
- firstImpact: String
- secondImpact: String
- thirdImpact: String
- firstEvent: String
- secondEvent: String
- thirdEvent: String
- licensePlate: String
- towedVehicle: String
- trailerTypeVehicle: String
- trailerConnectionVehicle: String
- vehicleLightsActivated: Boolean
- rptLocInfo: String
- rptNotes: String
persons: Array of Objects
- id: String
- name: String
- sex: String
- age: Integer
- driverCondition: String
- apparentDriverAction: String
- involvedAs: Integer
- 1 for Person
- 2 for Pedestrian
- 3 for Driver
- 4 for Passenger
- hitAndRun: String
- driverCharged: String
- driverConditionDetailA: String
- driverConditionDetailB: String
- apparentDriverActionB: String
- rptLocInfo: String
- rptNotes: String
- notMatched: Boolean
- personId: String
Integration Sample
You can access the samples here.
API Response Sample
{
"pagingInfo": {
"itemsPerPage": 2,
"totalPages": 18909,
"totalItems": 37818,
"currentPage": 1
},
"id": "00000000-0000-0000-0000-000000000000",
"errorMessages": [],
"responseCode": 0,
"results": [
{
"general": {
"id": "0d610a45-bac1-4e94-b67e-8ee87f70673d",
"trafficControl": "Stop sign",
"intersectionType": "",
"light": "Dark, artificial",
"latitude": 43.929773,
"accidentNum": "21-127",
"thruLaneNo": 0,
"sameTypeNoOfLanes": 0,
"southBoundDisobeyCount": 0,
"lastEditedDate": "",
"accidentYear": 2021,
"yCoord": 4865131.67365,
"roadJurisdiction": "Regional municipality",
"specialZoneA": "",
"accidentLocation": "Intersection related",
"classificationOfAccident": "P.D. only",
"trafficControlCondition": "Functioning",
"trafficControlConditionC": "",
"environmentCondition1": "Clear",
"trafficControlC": "",
"trafficControlB": "",
"specialZoneC": "",
"initialImpactType": "SMV other",
"trafficControlConditionB": "",
"specialZoneB": "",
"environmentCondition2": "",
"pavementTreatmentB": "",
"longitude": -79.523411,
"notes": "",
"pedestrianInvolved": false,
"intTrafficControl": "Stop sign",
"xCoord": 618524.5797,
"xmlImportNotes": "",
"northBoundDisobeyCount": 0,
"accidentTime": "0001-01-01T02:23:00Z",
"accidentDate": "2021-01-01T02:23:00Z",
"cyclistInvolved": false,
"impactLocation": "Right shoulder",
"pavementTreatmentA": "",
"selfReported": false,
"pedestrianCondition1": "",
"pedestrianCondition2": "",
"pedInvolved": false,
"cycInvolved": false,
"driver1Action": "Lost control",
"driver2Action": "",
"initialDirectionOfTravelOne": "East",
"initialDirectionOfTravelTwo": "",
"vehicle1Type": "Pick-up truck",
"vehicle2Type": "",
"isAtIntersection": true,
"motorcycleInvolved": false,
"hasFatal": false,
"elderDriverInvolved": false,
"youngDriverInvolved": false,
"aggressiveDriverInvovled": false,
"distractedDriverInvovled": false,
"hasInjury": false,
"impairedDriverInvolved": true,
"road1SurfaceCondition": "Dry",
"road2SurfaceCondition": "Dry",
"vehicle1Manoeuver": "Pulling onto shoulder or toward curb",
"vehicle2Manoeuver": "",
"vehicle1FirstEvent": "Ran off road",
"vehicle2FirstEvent": "",
"vehicle1SecondEvent": "Pole (utility, power)",
"vehicle2SecondEvent": "",
"road2Name": "02",
"road1Name": "01",
"pedestrianAction1": "",
"pedestrianAction2": "",
"driverCondition1": "Ability impaired, alcohol (over .08)",
"driverCondition2": "",
"jurisdictionName": "Regional municipality",
"municipalityName": "King",
"locationDescription": "King Road @ Patton Street",
"geoID": "Y0929",
"locationType": "Intersection"
},
"remark": {
"id": "82442147-00c0-4772-aa61-e73572e2497e"
},
"roads": [
{
"id": "94178c85-bf5b-4772-aa91-72e86579436b",
"rptLocInfo": "",
"name": "01",
"roadCondition": "Good",
"roadPavementMarkings": "Exist",
"roadSurface": "Asphalt",
"roadCharacter": "Undivided - two-way",
"roadAllignment": "Straight on level",
"roadSurfaceCondition": "Dry",
"rptNotes": "",
"index": 1
},
{
"id": "ea5e694b-6de7-46d9-97c7-3180d20d1893",
"rptLocInfo": "",
"name": "02",
"roadCondition": "Good",
"roadPavementMarkings": "Exist",
"roadSurface": "Asphalt",
"roadCharacter": "Undivided - two-way",
"roadAllignment": "Straight on level",
"roadSurfaceCondition": "Dry",
"rptNotes": "",
"index": 2
}
],
"vehicles": [
{
"id": "f736e6aa-9907-474b-9b26-54b790bfbcfe",
"index": 1,
"vehicleCount": 1,
"rptNotes": "",
"vehicleLightsActivated": false,
"rptLocInfo": "",
"licensePlate": "",
"towedVehicle": "",
"secondEventDetail": "",
"trailerTypeVehicle": "",
"vehicleManoeuver": "Pulling onto shoulder or toward curb",
"firstOffset": "",
"secondImpact": "",
"vehicleInitialDirection": "East",
"vehicleType": "Pick-up truck",
"trailerConnectionVehicle": "",
"vehicleDamage": "Severe",
"firstImpact": "Right front corner",
"vehicleCondition": "No apparent defect",
"thirdEventDetail": "",
"thirdOffset": "Less than 3.1m",
"firstEvent": "Ran off road",
"thirdEvent": "Pole (utility, power)",
"firstEventDetail": "",
"secondEvent": "Pole (utility, power)",
"name": "01",
"secondOffset": "Less than 3.1m"
}
],
"persons": [
{
"id": "d1d8ff20-2762-48c1-bfc0-b387fd78c466",
"involvedAs": 3,
"vehicleId": "",
"sex": "",
"driverCount": 1,
"driverConditionDetailB": "",
"driverConditionDetailA": "",
"driverConditionB": "",
"apparentDriverActionB": "",
"driverCondition": "Ability impaired, alcohol (over .08)",
"hitAndRun": "No",
"apparentDriverAction": "Lost control",
"driverCharged": "",
"name": "01",
"age": 0,
"rptLocInfo": "",
"index": 1,
"rptNotes": "",
"notMatched": true,
"personId": "00000000-0000-0000-0000-000000000000"
}
]
},
// Other Collisions
}