Skip to main content

API Response Schema Ontario


pagingInfo: Object

  1. itemsPerPage: Integer
  2. totalPages: Integer
  3. totalItems: Integer
  4. currentPage: Integer

general: Object

  1. id: String
  2. trafficControl: String
  3. intersectionType: String
  4. light: String
  5. latitude: Double
  6. longitude: Double
  7. accidentNum: String
  8. thruLaneNo: Integer
  9. sameTypeNoOfLanes: Integer
  10. accidentDate: DateTime
  11. accidentTime: DateTime
  12. accidentYear: Integer
  13. classificationOfAccident: String
  14. impactLocation: String
  15. roadJurisdiction: String
  16. environmentCondition1: String
  17. environmentCondition2: String
  18. road1SurfaceCondition: String
  19. road2SurfaceCondition: String
  20. vehicle1Type: String
  21. vehicle2Type: String
  22. driver1Action: String
  23. driver2Action: String
  24. initialDirectionOfTravelOne: String
  25. initialDirectionOfTravelTwo: String
  26. hasInjury: Boolean
  27. hasFatal: Boolean
  28. pedestrianInvolved: Boolean
  29. cyclistInvolved: Boolean
  30. motorcycleInvolved: Boolean
  31. impairedDriverInvolved: Boolean
  32. aggressiveDriverInvolved: Boolean
  33. distractedDriverInvolved: Boolean
  34. elderDriverInvolved: Boolean
  35. youngDriverInvolved: Boolean
  36. locationDescription: String
  37. municipalityName: String
  38. jurisdictionName: String
  39. geoID: String
  40. locationType: String
  41. lastModified: DateTime

roads: Array of Objects

  1. id: String
  2. name: String
  3. roadCondition: String
  4. roadPavementMarkings: String
  5. roadSurface: String
  6. roadCharacter: String
  7. roadAlignment: String
  8. roadSurfaceCondition: String
  9. rptLocInfo: String
  10. rptNotes: String

vehicles: Array of Objects

  1. id: String
  2. vehicleCount: Integer
  3. vehicleType: String
  4. vehicleInitialDirection: String
  5. vehicleManeuver: String
  6. vehicleDamage: String
  7. firstImpact: String
  8. secondImpact: String
  9. thirdImpact: String
  10. firstEvent: String
  11. secondEvent: String
  12. thirdEvent: String
  13. licensePlate: String
  14. towedVehicle: String
  15. trailerTypeVehicle: String
  16. trailerConnectionVehicle: String
  17. vehicleLightsActivated: Boolean
  18. rptLocInfo: String
  19. rptNotes: String

persons: Array of Objects

  1. id: String
  2. name: String
  3. sex: String
  4. age: Integer
  5. driverCondition: String
  6. apparentDriverAction: String
  7. involvedAs: Integer
    • 1 for Person
    • 2 for Pedestrian
    • 3 for Driver
    • 4 for Passenger
  8. hitAndRun: String
  9. driverCharged: String
  10. driverConditionDetailA: String
  11. driverConditionDetailB: String
  12. apparentDriverActionB: String
  13. rptLocInfo: String
  14. rptNotes: String
  15. notMatched: Boolean
  16. 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
}