{
"metadata": {
"name": "",
- "signature": "sha256:176adb5e14d8b965efe05e06023506fafbc98e6474bca8a68a8dd7162fb810b0"
+ "signature": "sha256:e1f2b95cdfb9e462ee428ae2fe9070b850d752463957f6cf83fadf2a817488b3"
},
"nbformat": 3,
"nbformat_minor": 0,
"language": "python",
"metadata": {},
"outputs": [],
- "prompt_number": 28
+ "prompt_number": 2
},
{
"cell_type": "code",
"language": "python",
"metadata": {},
"outputs": [],
- "prompt_number": 8
+ "prompt_number": 4
},
{
"cell_type": "markdown",
"language": "python",
"metadata": {},
"outputs": [],
- "prompt_number": 9
+ "prompt_number": 5
},
{
"cell_type": "markdown",
{
"metadata": {},
"output_type": "pyout",
- "prompt_number": 10,
+ "prompt_number": 6,
"text": [
"145571"
]
}
],
- "prompt_number": 10
+ "prompt_number": 6
},
{
"cell_type": "markdown",
{
"metadata": {},
"output_type": "pyout",
- "prompt_number": 11,
+ "prompt_number": 7,
"text": [
"'loc_2dsphere'"
]
}
],
- "prompt_number": 11
+ "prompt_number": 7
},
{
"cell_type": "markdown",
],
"language": "python",
"metadata": {},
- "outputs": [],
- "prompt_number": 24
+ "outputs": [
+ {
+ "metadata": {},
+ "output_type": "pyout",
+ "prompt_number": 8,
+ "text": [
+ "65"
+ ]
+ }
+ ],
+ "prompt_number": 8
},
{
"cell_type": "code",
{
"metadata": {},
"output_type": "pyout",
- "prompt_number": 27,
+ "prompt_number": 9,
"text": [
"'label_1'"
]
}
],
- "prompt_number": 27
+ "prompt_number": 9
},
{
"cell_type": "markdown",
{
"metadata": {},
"output_type": "pyout",
- "prompt_number": 31,
+ "prompt_number": 10,
"text": [
- "35974"
+ "22547"
]
}
],
- "prompt_number": 31
+ "prompt_number": 10
},
{
"cell_type": "code",
{
"metadata": {},
"output_type": "pyout",
- "prompt_number": 32,
+ "prompt_number": 11,
"text": [
- "'Road_1_loc_2dsphere'"
+ "'loc_2dsphere'"
]
}
],
- "prompt_number": 32
+ "prompt_number": 11
},
{
"cell_type": "code",
],
"language": "python",
"metadata": {},
- "outputs": []
+ "outputs": [
+ {
+ "metadata": {},
+ "output_type": "pyout",
+ "prompt_number": 12,
+ "text": [
+ "{'connectionId': 11, 'err': None, 'n': 96, 'ok': 1.0}"
+ ]
+ }
+ ],
+ "prompt_number": 12
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "small_roads.find().count()"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "metadata": {},
+ "output_type": "pyout",
+ "prompt_number": 18,
+ "text": [
+ "22451"
+ ]
+ }
+ ],
+ "prompt_number": 18
},
{
"cell_type": "code",
{
"metadata": {},
"output_type": "pyout",
- "prompt_number": 12,
+ "prompt_number": 13,
"text": [
- "[{'1st_Road_Class': 6,\n",
- " '1st_Road_Number': 1034,\n",
- " '2nd_Road_Class': -1,\n",
- " '2nd_Road_Number': 0,\n",
- " 'Accident_Index': '201243S096032',\n",
- " 'Accident_Severity': 2,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 5,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ "[{'_id': ObjectId('52a9c98292c4e16686d2b771'),\n",
+ " 'Casualties': [{'Casualty_Severity': 2,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 2,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 2,\n",
" 'Casualty_Type': 2,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 2,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 5,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 4,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 2,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 2,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 2,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 4,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1}],\n",
- " 'Date': '18/03/2012',\n",
- " 'Datetime': datetime.datetime(2012, 3, 18, 21, 0),\n",
- " 'Day_of_Week': 1,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 2,\n",
- " 'Junction_Control': -1,\n",
- " 'Junction_Detail': 0,\n",
- " 'LSOA_of_Accident_Location': 'E01016747',\n",
- " 'Latitude': 52.006811,\n",
- " 'Light_Conditions': 7,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 482570,\n",
- " 'Location_Northing_OSGR': 234950,\n",
- " 'Longitude': -0.798473,\n",
- " 'Number_of_Casualties': 2,\n",
- " 'Number_of_Vehicles': 1,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 30,\n",
+ " '1st_Road_Number': 1034,\n",
" 'Time': '21:00',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 0,\n",
- " 'Age_Band_of_Driver': -1,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': -1,\n",
- " 'Driver_IMD_Decile': -1,\n",
- " 'Engine_Capacity_(CC)': -1,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 0,\n",
+ " 'Location_Northing_OSGR': 234950,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 1,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 482570,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 1,\n",
+ " 'Light_Conditions': 7,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': -1,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': -1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 9,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': -1,\n",
" 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': -1,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 0,\n",
" 'Vehicle_Type': 2,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': -1,\n",
+ " 'Propulsion_Code': -1,\n",
+ " 'Age_of_Vehicle': -1,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b771'),\n",
- " 'loc': {'coordinates': [-0.798473, 52.006811], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 9002,\n",
- " '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1034,\n",
- " 'Accident_Index': '201243S077082',\n",
+ " 'Junction_Detail': 0,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
+ " 'LSOA_of_Accident_Location': 'E01016747',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.006811,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 2,\n",
+ " 'Accident_Index': '201243S096032',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 6,\n",
+ " '2nd_Road_Class': -1,\n",
" 'Accident_Severity': 2,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 4,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.798473,\n",
+ " 'Junction_Control': -1,\n",
+ " 'Speed_limit': 30,\n",
+ " 'Date': '18/03/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 3, 18, 21, 0),\n",
+ " 'Number_of_Casualties': 2,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.798473, 52.006811]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b711'),\n",
+ " 'Casualties': [{'Casualty_Severity': 2,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 2,\n",
" 'Casualty_Type': 3,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 4,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1}],\n",
- " 'Date': '23/08/2012',\n",
- " 'Datetime': datetime.datetime(2012, 8, 23, 14, 0),\n",
- " 'Day_of_Week': 5,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 3,\n",
- " 'LSOA_of_Accident_Location': 'E01016747',\n",
- " 'Latitude': 52.008218,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 482780,\n",
- " 'Location_Northing_OSGR': 235110,\n",
- " 'Longitude': -0.795376,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 60,\n",
+ " '1st_Road_Number': 9002,\n",
" 'Time': '14:00',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 4,\n",
- " 'Age_of_Vehicle': 1,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 9,\n",
- " 'Engine_Capacity_(CC)': 125,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 1034,\n",
+ " 'Location_Northing_OSGR': 235110,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 482780,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 5,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 1,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 13,\n",
+ " 'Engine_Capacity_(CC)': 125,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 3,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 6,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 4,\n",
- " 'Engine_Capacity_(CC)': 1386,\n",
+ " 'Age_Band_of_Driver': 4,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 3,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 8,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
+ " 'Age_of_Vehicle': 1,\n",
+ " 'Vehicle_Manoeuvre': 13,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 4,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 8,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Engine_Capacity_(CC)': 1386,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 6,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 6,\n",
+ " 'Vehicle_Manoeuvre': 9,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b711'),\n",
- " 'loc': {'coordinates': [-0.795376, 52.008218], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 6,\n",
- " '1st_Road_Number': 1034,\n",
- " '2nd_Road_Class': -1,\n",
- " '2nd_Road_Number': 0,\n",
- " 'Accident_Index': '201243S129072',\n",
- " 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 6,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
+ " 'LSOA_of_Accident_Location': 'E01016747',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.008218,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S077082',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
+ " '2nd_Road_Class': 6,\n",
+ " 'Accident_Severity': 2,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.795376,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 60,\n",
+ " 'Date': '23/08/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 8, 23, 14, 0),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.795376, 52.008218]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b815'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 2,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 2,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '28/07/2012',\n",
- " 'Datetime': datetime.datetime(2012, 7, 28, 18, 50),\n",
- " 'Day_of_Week': 7,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 2,\n",
- " 'Junction_Control': -1,\n",
- " 'Junction_Detail': 0,\n",
- " 'LSOA_of_Accident_Location': 'E01016753',\n",
- " 'Latitude': 52.006037,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 482940,\n",
- " 'Location_Northing_OSGR': 234870,\n",
- " 'Longitude': -0.793103,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 3,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 30,\n",
+ " '1st_Road_Number': 1034,\n",
" 'Time': '18:50',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 0,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 2,\n",
- " 'Driver_Home_Area_Type': -1,\n",
- " 'Driver_IMD_Decile': -1,\n",
- " 'Engine_Capacity_(CC)': 1995,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 1,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 0,\n",
+ " 'Location_Northing_OSGR': 234870,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 3,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 482940,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 7,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': -1,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1995,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
" 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 1,\n",
- " 'Driver_Home_Area_Type': 2,\n",
- " 'Driver_IMD_Decile': 8,\n",
- " 'Engine_Capacity_(CC)': 2000,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 0,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 1,\n",
+ " 'Driver_Home_Area_Type': -1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 2,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 8,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 17,\n",
+ " 'Engine_Capacity_(CC)': 2000,\n",
" 'Vehicle_Reference': 2,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 1,\n",
" 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 9,\n",
- " 'Driver_Home_Area_Type': -1,\n",
- " 'Driver_IMD_Decile': -1,\n",
- " 'Engine_Capacity_(CC)': 1596,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 1,\n",
+ " 'Driver_Home_Area_Type': 2,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': 1,\n",
+ " 'Vehicle_Manoeuvre': 17,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': -1,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 17,\n",
+ " 'Engine_Capacity_(CC)': 1596,\n",
" 'Vehicle_Reference': 3,\n",
+ " 'Age_Band_of_Driver': 6,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 1,\n",
+ " 'Driver_Home_Area_Type': -1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 9,\n",
+ " 'Vehicle_Manoeuvre': 17,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b815'),\n",
- " 'loc': {'coordinates': [-0.793103, 52.006037], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 9002,\n",
- " '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1034,\n",
- " 'Accident_Index': '201243S076032',\n",
+ " 'Junction_Detail': 0,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
+ " 'LSOA_of_Accident_Location': 'E01016753',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.006037,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 2,\n",
+ " 'Accident_Index': '201243S129072',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 6,\n",
+ " '2nd_Road_Class': -1,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 6,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.793103,\n",
+ " 'Junction_Control': -1,\n",
+ " 'Speed_limit': 30,\n",
+ " 'Date': '28/07/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 7, 28, 18, 50),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.793103, 52.006037]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b708'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 3,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 3,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '15/03/2012',\n",
- " 'Datetime': datetime.datetime(2012, 3, 15, 13, 51),\n",
- " 'Day_of_Week': 5,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 3,\n",
- " 'LSOA_of_Accident_Location': 'E01016753',\n",
- " 'Latitude': 52.006392,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 482970,\n",
- " 'Location_Northing_OSGR': 234910,\n",
- " 'Longitude': -0.792656,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 60,\n",
+ " '1st_Road_Number': 9002,\n",
" 'Time': '13:51',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 4,\n",
- " 'Age_Band_of_Driver': 5,\n",
- " 'Age_of_Vehicle': 5,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 3,\n",
- " 'Engine_Capacity_(CC)': 1799,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 1034,\n",
+ " 'Location_Northing_OSGR': 234910,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 482970,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 5,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 3,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 6,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Engine_Capacity_(CC)': 1799,\n",
" 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 5,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 4,\n",
" 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 3,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 3,\n",
- " 'Driver_Home_Area_Type': 3,\n",
- " 'Driver_IMD_Decile': 8,\n",
- " 'Engine_Capacity_(CC)': 1896,\n",
- " 'Hit_Object_in_Carriageway': 10,\n",
- " 'Hit_Object_off_Carriageway': 2,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 5,\n",
+ " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 8,\n",
+ " 'Vehicle_Leaving_Carriageway': 1,\n",
" 'Junction_Location': 8,\n",
- " 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 5,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 1,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1896,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 6,\n",
+ " 'Hit_Object_in_Carriageway': 10,\n",
+ " 'Hit_Object_off_Carriageway': 2,\n",
+ " '1st_Point_of_Impact': 3,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 3,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': 3,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b708'),\n",
- " 'loc': {'coordinates': [-0.792656, 52.006392], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 6,\n",
- " '1st_Road_Number': 1034,\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
+ " 'LSOA_of_Accident_Location': 'E01016753',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.006392,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S076032',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
" '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1034,\n",
- " 'Accident_Index': '201243S061052',\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 6,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.792656,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 60,\n",
+ " 'Date': '15/03/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 3, 15, 13, 51),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.792656, 52.006392]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b6c1'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 2,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 2,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '10/05/2012',\n",
- " 'Datetime': datetime.datetime(2012, 5, 10, 14, 30),\n",
- " 'Day_of_Week': 5,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 3,\n",
- " 'LSOA_of_Accident_Location': 'E01016753',\n",
- " 'Latitude': 52.005224,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 482970,\n",
- " 'Location_Northing_OSGR': 234780,\n",
- " 'Longitude': -0.792688,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 3,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 30,\n",
+ " '1st_Road_Number': 1034,\n",
" 'Time': '14:30',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 0,\n",
- " 'Age_Band_of_Driver': 9,\n",
- " 'Age_of_Vehicle': 9,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 8,\n",
- " 'Engine_Capacity_(CC)': 1398,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 1034,\n",
+ " 'Location_Northing_OSGR': 234780,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 3,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 482970,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 5,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 8,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 6,\n",
- " 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Engine_Capacity_(CC)': 1398,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 12,\n",
- " 'Driver_Home_Area_Type': 2,\n",
- " 'Driver_IMD_Decile': 8,\n",
- " 'Engine_Capacity_(CC)': 1589,\n",
+ " 'Age_Band_of_Driver': 9,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 0,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': 9,\n",
+ " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 8,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 1,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1589,\n",
" 'Vehicle_Reference': 2,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 8,\n",
- " 'Age_of_Vehicle': 6,\n",
- " 'Driver_Home_Area_Type': 3,\n",
- " 'Driver_IMD_Decile': 10,\n",
- " 'Engine_Capacity_(CC)': 1360,\n",
+ " 'Age_Band_of_Driver': 6,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 8,\n",
+ " 'Driver_Home_Area_Type': 2,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
+ " 'Age_of_Vehicle': 12,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 10,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 8,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 10,\n",
+ " 'Engine_Capacity_(CC)': 1360,\n",
" 'Vehicle_Reference': 3,\n",
+ " 'Age_Band_of_Driver': 8,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 3,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 6,\n",
+ " 'Vehicle_Manoeuvre': 10,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 2,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b6c1'),\n",
- " 'loc': {'coordinates': [-0.792688, 52.005224], 'type': 'Point'}}]"
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
+ " 'LSOA_of_Accident_Location': 'E01016753',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.005224,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S061052',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 6,\n",
+ " '2nd_Road_Class': 6,\n",
+ " 'Accident_Severity': 3,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.792688,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 30,\n",
+ " 'Date': '10/05/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 5, 10, 14, 30),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.792688, 52.005224]},\n",
+ " 'Weather_Conditions': 2}]"
]
}
],
- "prompt_number": 12
+ "prompt_number": 13
},
{
"cell_type": "code",
{
"metadata": {},
"output_type": "pyout",
- "prompt_number": 13,
+ "prompt_number": 14,
"text": [
"2"
]
}
],
- "prompt_number": 13
+ "prompt_number": 14
},
{
"cell_type": "code",
{
"metadata": {},
"output_type": "pyout",
- "prompt_number": 20,
+ "prompt_number": 15,
"text": [
- "[{'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 174,\n",
- " '2nd_Road_Class': -1,\n",
- " '2nd_Road_Number': 0,\n",
- " 'Accident_Index': '201243S084022',\n",
- " 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 8,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ "[{'_id': ObjectId('52a9c98292c4e16686d2b72e'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 8,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 1}],\n",
- " 'Date': '23/02/2012',\n",
- " 'Datetime': datetime.datetime(2012, 2, 23, 18, 5),\n",
- " 'Day_of_Week': 5,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': -1,\n",
- " 'Junction_Detail': 0,\n",
- " 'LSOA_of_Accident_Location': 'E01016735',\n",
- " 'Latitude': 52.012173,\n",
- " 'Light_Conditions': 4,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 492470,\n",
- " 'Location_Northing_OSGR': 235720,\n",
- " 'Longitude': -0.654074,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 30,\n",
+ " '1st_Road_Number': 174,\n",
" 'Time': '18:05',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 8,\n",
- " 'Age_of_Vehicle': 11,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 8,\n",
- " 'Engine_Capacity_(CC)': 1679,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 0,\n",
+ " 'Location_Northing_OSGR': 235720,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 492470,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 5,\n",
+ " 'Light_Conditions': 4,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 8,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1679,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': -1,\n",
- " 'Age_of_Vehicle': 13,\n",
- " 'Driver_Home_Area_Type': 2,\n",
- " 'Driver_IMD_Decile': 9,\n",
- " 'Engine_Capacity_(CC)': 2296,\n",
+ " 'Age_Band_of_Driver': 8,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 0,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 3,\n",
+ " 'Age_of_Vehicle': 11,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 0,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 2,\n",
+ " 'Engine_Capacity_(CC)': 2296,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': -1,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 3,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 2,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 13,\n",
+ " 'Vehicle_Manoeuvre': 2,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b72e'),\n",
- " 'loc': {'coordinates': [-0.654074, 52.012173], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 3,\n",
- " '1st_Road_Number': 5130,\n",
- " '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1323,\n",
- " 'Accident_Index': '201243S012062',\n",
+ " 'Junction_Detail': 0,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
+ " 'LSOA_of_Accident_Location': 'E01016735',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.012173,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S084022',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
+ " '2nd_Road_Class': -1,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 4,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.654074,\n",
+ " 'Junction_Control': -1,\n",
+ " 'Speed_limit': 30,\n",
+ " 'Date': '23/02/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 2, 23, 18, 5),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.654074, 52.012173]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b5e1'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 2,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 2,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 4,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1}],\n",
- " 'Date': '05/06/2012',\n",
- " 'Datetime': datetime.datetime(2012, 6, 5, 19, 0),\n",
- " 'Day_of_Week': 3,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 2,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 3,\n",
- " 'LSOA_of_Accident_Location': 'E01016735',\n",
- " 'Latitude': 52.01755,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 492570,\n",
- " 'Location_Northing_OSGR': 236320,\n",
- " 'Longitude': -0.652456,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 30,\n",
+ " '1st_Road_Number': 5130,\n",
" 'Time': '19:00',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 3,\n",
- " 'Age_Band_of_Driver': 4,\n",
- " 'Age_of_Vehicle': 10,\n",
- " 'Driver_Home_Area_Type': 2,\n",
- " 'Driver_IMD_Decile': 9,\n",
- " 'Engine_Capacity_(CC)': 1124,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 1323,\n",
+ " 'Location_Northing_OSGR': 236320,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 492570,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 3,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 6,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 7,\n",
+ " 'Engine_Capacity_(CC)': 1124,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 4,\n",
- " 'Age_Band_of_Driver': -1,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': -1,\n",
- " 'Driver_IMD_Decile': -1,\n",
- " 'Engine_Capacity_(CC)': -1,\n",
+ " 'Age_Band_of_Driver': 4,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 3,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 2,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 10,\n",
+ " 'Vehicle_Manoeuvre': 7,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': -1,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 1,\n",
- " 'Propulsion_Code': -1,\n",
- " 'Sex_of_Driver': 3,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': -1,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': -1,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 4,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 3,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': -1,\n",
+ " 'Propulsion_Code': -1,\n",
+ " 'Age_of_Vehicle': -1,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b5e1'),\n",
- " 'loc': {'coordinates': [-0.652456, 52.01755], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 3,\n",
- " '1st_Road_Number': 4146,\n",
- " '2nd_Road_Class': 3,\n",
- " '2nd_Road_Number': 4146,\n",
- " 'Accident_Index': '201243S079062',\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
+ " 'LSOA_of_Accident_Location': 'E01016735',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.01755,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 2,\n",
+ " 'Accident_Index': '201243S012062',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 3,\n",
+ " '2nd_Road_Class': 6,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 7,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.652456,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 30,\n",
+ " 'Date': '05/06/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 6, 5, 19, 0),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.652456, 52.01755]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b718'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 7,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 7,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 1,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 2,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 2,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 1,\n",
+ " 'Age_Band_of_Casualty': 7,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 1}],\n",
- " 'Date': '20/06/2012',\n",
- " 'Datetime': datetime.datetime(2012, 6, 20, 19, 58),\n",
- " 'Day_of_Week': 4,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 1,\n",
- " 'LSOA_of_Accident_Location': 'E01016824',\n",
- " 'Latitude': 52.018181,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 490370,\n",
- " 'Location_Northing_OSGR': 236350,\n",
- " 'Longitude': -0.684498,\n",
- " 'Number_of_Casualties': 2,\n",
- " 'Number_of_Vehicles': 1,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 1,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 70,\n",
+ " '1st_Road_Number': 4146,\n",
" 'Time': '19:58',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': 8,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 4,\n",
- " 'Engine_Capacity_(CC)': 1796,\n",
- " 'Hit_Object_in_Carriageway': 10,\n",
- " 'Hit_Object_off_Carriageway': 10,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 1,\n",
+ " '2nd_Road_Number': 4146,\n",
+ " 'Location_Northing_OSGR': 236350,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 1,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 490370,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 4,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 4,\n",
+ " 'Vehicle_Leaving_Carriageway': 1,\n",
" 'Junction_Location': 8,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 2,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 1,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Engine_Capacity_(CC)': 1796,\n",
" 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 7,\n",
+ " 'Hit_Object_in_Carriageway': 10,\n",
+ " 'Hit_Object_off_Carriageway': 10,\n",
+ " '1st_Point_of_Impact': 1,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 8,\n",
+ " 'Vehicle_Manoeuvre': 9,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b718'),\n",
- " 'loc': {'coordinates': [-0.684498, 52.018181], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 6,\n",
- " '1st_Road_Number': 1072,\n",
- " '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1072,\n",
- " 'Accident_Index': '201243S048092',\n",
+ " 'Junction_Detail': 1,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
+ " 'LSOA_of_Accident_Location': 'E01016824',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.018181,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S079062',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 3,\n",
+ " '2nd_Road_Class': 3,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 6,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.684498,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 70,\n",
+ " 'Date': '20/06/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 6, 20, 19, 58),\n",
+ " 'Number_of_Casualties': 2,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.684498, 52.018181]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b686'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '11/09/2012',\n",
- " 'Datetime': datetime.datetime(2012, 9, 11, 12, 47),\n",
- " 'Day_of_Week': 3,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 3,\n",
- " 'LSOA_of_Accident_Location': 'E01016824',\n",
- " 'Latitude': 52.017324,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 490670,\n",
- " 'Location_Northing_OSGR': 236260,\n",
- " 'Longitude': -0.680151,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 30,\n",
+ " '1st_Road_Number': 1072,\n",
" 'Time': '12:47',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 1,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 8,\n",
- " 'Engine_Capacity_(CC)': 1242,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 1072,\n",
+ " 'Location_Northing_OSGR': 236260,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 490670,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 3,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 8,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 8,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Engine_Capacity_(CC)': 1242,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 1,\n",
" 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 8,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 8,\n",
- " 'Engine_Capacity_(CC)': 1796,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 1,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
+ " 'Age_of_Vehicle': 1,\n",
+ " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 8,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1796,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 6,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 8,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b686'),\n",
- " 'loc': {'coordinates': [-0.680151, 52.017324], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 6,\n",
- " '1st_Road_Number': 1072,\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016824',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.017324,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S048092',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 6,\n",
" '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1072,\n",
- " 'Accident_Index': '201243S036032',\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 7,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.680151,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 30,\n",
+ " 'Date': '11/09/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 9, 11, 12, 47),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.680151, 52.017324]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b64b'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 8,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 7,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1}],\n",
- " 'Date': '04/03/2012',\n",
- " 'Datetime': datetime.datetime(2012, 3, 4, 5, 51),\n",
- " 'Day_of_Week': 1,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 3,\n",
- " 'LSOA_of_Accident_Location': 'E01016828',\n",
- " 'Latitude': 52.016027,\n",
- " 'Light_Conditions': 4,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 489800,\n",
- " 'Location_Northing_OSGR': 236100,\n",
- " 'Longitude': -0.692867,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 30,\n",
+ " '1st_Road_Number': 1072,\n",
" 'Time': '05:51',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': 5,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 8,\n",
- " 'Engine_Capacity_(CC)': 1896,\n",
- " 'Hit_Object_in_Carriageway': 10,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 2,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 1072,\n",
+ " 'Location_Northing_OSGR': 236100,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 489800,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 1,\n",
+ " 'Light_Conditions': 4,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 8,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 2,\n",
- " 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 5,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1896,\n",
" 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 7,\n",
+ " 'Hit_Object_in_Carriageway': 10,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
" 'Vehicle_Type': 8,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 2,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': 5,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': -1,\n",
- " 'Age_of_Vehicle': 9,\n",
- " 'Driver_Home_Area_Type': -1,\n",
- " 'Driver_IMD_Decile': -1,\n",
- " 'Engine_Capacity_(CC)': 1388,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " {'Driver_IMD_Decile': -1,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 8,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 2,\n",
+ " 'Engine_Capacity_(CC)': 1388,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': -1,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': -1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 9,\n",
+ " 'Vehicle_Manoeuvre': 2,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b64b'),\n",
- " 'loc': {'coordinates': [-0.692867, 52.016027], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 174,\n",
- " '2nd_Road_Class': -1,\n",
- " '2nd_Road_Number': 0,\n",
- " 'Accident_Index': '201243S073102',\n",
- " 'Accident_Severity': 2,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 4,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016828',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.016027,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S036032',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 6,\n",
+ " '2nd_Road_Class': 6,\n",
+ " 'Accident_Severity': 3,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.692867,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 30,\n",
+ " 'Date': '04/03/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 3, 4, 5, 51),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.692867, 52.016027]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b6fb'),\n",
+ " 'Casualties': [{'Casualty_Severity': 2,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 3,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 2,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 3,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 4,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 10,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 10,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2},\n",
- " {'Age_Band_of_Casualty': 8,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 1,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 3,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 3,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 1,\n",
+ " 'Age_Band_of_Casualty': 8,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '18/10/2012',\n",
- " 'Datetime': datetime.datetime(2012, 10, 18, 21, 48),\n",
- " 'Day_of_Week': 5,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': -1,\n",
- " 'Junction_Detail': 0,\n",
- " 'LSOA_of_Accident_Location': 'E01016734',\n",
- " 'Latitude': 51.999247,\n",
- " 'Light_Conditions': 6,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 489620,\n",
- " 'Location_Northing_OSGR': 234230,\n",
- " 'Longitude': -0.695978,\n",
- " 'Number_of_Casualties': 3,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 60,\n",
+ " '1st_Road_Number': 174,\n",
" 'Time': '21:48',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 4,\n",
- " 'Age_of_Vehicle': 6,\n",
- " 'Driver_Home_Area_Type': 3,\n",
- " 'Driver_IMD_Decile': 8,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 0,\n",
+ " 'Location_Northing_OSGR': 234230,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 489620,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 5,\n",
+ " 'Light_Conditions': 6,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 8,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 0,\n",
+ " 'Skidding_and_Overturning': 0,\n",
+ " 'Towing_and_Articulation': 0,\n",
+ " 'Vehicle_Location-Restricted_Lane': 0,\n",
" 'Engine_Capacity_(CC)': 1149,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 4,\n",
" 'Hit_Object_in_Carriageway': 12,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 0,\n",
+ " 'Driver_Home_Area_Type': 3,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
+ " 'Age_of_Vehicle': 6,\n",
+ " 'Vehicle_Manoeuvre': 16,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 8,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 0,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 16,\n",
- " 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 10,\n",
- " 'Age_of_Vehicle': 5,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 8,\n",
" 'Engine_Capacity_(CC)': 1587,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 10,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 0,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
- " 'Skidding_and_Overturning': 0,\n",
- " 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
- " 'Vehicle_Location-Restricted_Lane': 0,\n",
+ " 'Age_of_Vehicle': 5,\n",
" 'Vehicle_Manoeuvre': 17,\n",
- " 'Vehicle_Reference': 2,\n",
- " 'Vehicle_Type': 9,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b6fb'),\n",
- " 'loc': {'coordinates': [-0.695978, 51.999247], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 3,\n",
- " '1st_Road_Number': 5,\n",
+ " 'Junction_Detail': 0,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
+ " 'LSOA_of_Accident_Location': 'E01016734',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 51.999247,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S073102',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
" '2nd_Road_Class': -1,\n",
- " '2nd_Road_Number': 0,\n",
- " 'Accident_Index': '201243S067082',\n",
" 'Accident_Severity': 2,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 8,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.695978,\n",
+ " 'Junction_Control': -1,\n",
+ " 'Speed_limit': 60,\n",
+ " 'Date': '18/10/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 10, 18, 21, 48),\n",
+ " 'Number_of_Casualties': 3,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.695978, 51.999247]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b6db'),\n",
+ " 'Casualties': [{'Casualty_Severity': 2,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 2,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 8,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 1}],\n",
- " 'Date': '23/08/2012',\n",
- " 'Datetime': datetime.datetime(2012, 8, 23, 10, 46),\n",
- " 'Day_of_Week': 5,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': -1,\n",
- " 'Junction_Detail': 0,\n",
- " 'LSOA_of_Accident_Location': 'E01016734',\n",
- " 'Latitude': 51.99948,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 488730,\n",
- " 'Location_Northing_OSGR': 234240,\n",
- " 'Longitude': -0.708936,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 3,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 70,\n",
+ " '1st_Road_Number': 5,\n",
" 'Time': '10:46',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 8,\n",
- " 'Age_of_Vehicle': 9,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 9,\n",
- " 'Engine_Capacity_(CC)': 1598,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': 0,\n",
+ " 'Location_Northing_OSGR': 234240,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 488730,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 5,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 1,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 1,\n",
" 'Vehicle_Location-Restricted_Lane': 6,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1598,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
" 'Age_Band_of_Driver': 8,\n",
- " 'Age_of_Vehicle': 2,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 2,\n",
- " 'Engine_Capacity_(CC)': 12740,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 1,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 9,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 2,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 1,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 6,\n",
- " 'Vehicle_Manoeuvre': 2,\n",
+ " 'Engine_Capacity_(CC)': 12740,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 8,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
" 'Vehicle_Type': 21,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 1,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': 2,\n",
+ " 'Vehicle_Manoeuvre': 2,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b6db'),\n",
- " 'loc': {'coordinates': [-0.708936, 51.99948], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 3,\n",
- " '1st_Road_Number': 4146,\n",
- " '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1072,\n",
- " 'Accident_Index': '201243S074122',\n",
- " 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 8,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Junction_Detail': 0,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
+ " 'LSOA_of_Accident_Location': 'E01016734',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 51.99948,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S067082',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 3,\n",
+ " '2nd_Road_Class': -1,\n",
+ " 'Accident_Severity': 2,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.708936,\n",
+ " 'Junction_Control': -1,\n",
+ " 'Speed_limit': 70,\n",
+ " 'Date': '23/08/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 8, 23, 10, 46),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.708936, 51.99948]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b700'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 8,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2},\n",
- " {'Age_Band_of_Casualty': 5,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 3,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 3,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 3,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 5,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 3}],\n",
- " 'Date': '16/12/2012',\n",
- " 'Datetime': datetime.datetime(2012, 12, 16, 19, 40),\n",
- " 'Day_of_Week': 1,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 3,\n",
- " 'LSOA_of_Accident_Location': 'E01016828',\n",
- " 'Latitude': 52.011151,\n",
- " 'Light_Conditions': 4,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 489152,\n",
- " 'Location_Northing_OSGR': 235546,\n",
- " 'Longitude': -0.702451,\n",
- " 'Number_of_Casualties': 2,\n",
- " 'Number_of_Vehicles': 3,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 3,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 70,\n",
+ " '1st_Road_Number': 4146,\n",
" 'Time': '19:40',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 0,\n",
- " 'Age_Band_of_Driver': -1,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': -1,\n",
- " 'Driver_IMD_Decile': -1,\n",
- " 'Engine_Capacity_(CC)': -1,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': 1072,\n",
+ " 'Location_Northing_OSGR': 235546,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 3,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 489152,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 1,\n",
+ " 'Light_Conditions': 4,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': -1,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 8,\n",
- " 'Propulsion_Code': -1,\n",
- " 'Sex_of_Driver': 3,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 6,\n",
+ " 'Engine_Capacity_(CC)': -1,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 3,\n",
- " 'Age_Band_of_Driver': 8,\n",
- " 'Age_of_Vehicle': 7,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 9,\n",
- " 'Engine_Capacity_(CC)': 1975,\n",
+ " 'Age_Band_of_Driver': -1,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 0,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 3,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': -1,\n",
+ " 'Propulsion_Code': -1,\n",
+ " 'Age_of_Vehicle': -1,\n",
+ " 'Vehicle_Manoeuvre': 6,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 4,\n",
" 'Junction_Location': 8,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 1,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 4,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1975,\n",
" 'Vehicle_Reference': 2,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 4,\n",
- " 'Age_Band_of_Driver': 5,\n",
- " 'Age_of_Vehicle': 12,\n",
- " 'Driver_Home_Area_Type': 3,\n",
- " 'Driver_IMD_Decile': 8,\n",
- " 'Engine_Capacity_(CC)': 1781,\n",
+ " 'Age_Band_of_Driver': 8,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 2,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 3,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 8,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
+ " 'Age_of_Vehicle': 7,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 8,\n",
+ " 'Vehicle_Leaving_Carriageway': 1,\n",
+ " 'Junction_Location': 8,\n",
" 'Skidding_and_Overturning': 1,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 1,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1781,\n",
" 'Vehicle_Reference': 3,\n",
+ " 'Age_Band_of_Driver': 5,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 2,\n",
+ " '1st_Point_of_Impact': 4,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 3,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 12,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b700'),\n",
- " 'loc': {'coordinates': [-0.702451, 52.011151], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 9009,\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
+ " 'LSOA_of_Accident_Location': 'E01016828',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.011151,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S074122',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 3,\n",
" '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1072,\n",
- " 'Accident_Index': '201243S072012',\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 9,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.702451,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 70,\n",
+ " 'Date': '16/12/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 12, 16, 19, 40),\n",
+ " 'Number_of_Casualties': 2,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.702451, 52.011151]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b6f3'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 9,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 9,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 9,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '20/01/2012',\n",
- " 'Datetime': datetime.datetime(2012, 1, 20, 17, 20),\n",
- " 'Day_of_Week': 6,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 3,\n",
- " 'LSOA_of_Accident_Location': 'E01016828',\n",
- " 'Latitude': 52.014822,\n",
- " 'Light_Conditions': 4,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 489470,\n",
- " 'Location_Northing_OSGR': 235960,\n",
- " 'Longitude': -0.697711,\n",
- " 'Number_of_Casualties': 2,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 60,\n",
+ " '1st_Road_Number': 9009,\n",
" 'Time': '17:20',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 9,\n",
- " 'Age_of_Vehicle': 2,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 9,\n",
- " 'Engine_Capacity_(CC)': 2143,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 1072,\n",
+ " 'Location_Northing_OSGR': 235960,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 489470,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 6,\n",
+ " 'Light_Conditions': 4,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 8,\n",
- " 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Engine_Capacity_(CC)': 2143,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 1,\n",
" 'Age_Band_of_Driver': 9,\n",
- " 'Age_of_Vehicle': 3,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 9,\n",
- " 'Engine_Capacity_(CC)': 1591,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 2,\n",
- " 'Junction_Location': 1,\n",
- " 'Propulsion_Code': 1,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
" 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': 2,\n",
+ " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1591,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 9,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 2,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 3,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b6f3'),\n",
- " 'loc': {'coordinates': [-0.697711, 52.014822], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 40,\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016828',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.014822,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S072012',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
" '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1069,\n",
- " 'Accident_Index': '201243S094022',\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 4,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.697711,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 60,\n",
+ " 'Date': '20/01/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 1, 20, 17, 20),\n",
+ " 'Number_of_Casualties': 2,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.697711, 52.014822]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b760'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 19,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 4,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 1,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 1,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 1,\n",
+ " 'Age_Band_of_Casualty': 1,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '22/02/2012',\n",
- " 'Datetime': datetime.datetime(2012, 2, 22, 12, 35),\n",
- " 'Day_of_Week': 4,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 3,\n",
- " 'LSOA_of_Accident_Location': 'E01016820',\n",
- " 'Latitude': 52.019181,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 489190,\n",
- " 'Location_Northing_OSGR': 236440,\n",
- " 'Longitude': -0.701665,\n",
- " 'Number_of_Casualties': 2,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 60,\n",
+ " '1st_Road_Number': 40,\n",
" 'Time': '12:35',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 3,\n",
- " 'Age_Band_of_Driver': 4,\n",
- " 'Age_of_Vehicle': 5,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 7,\n",
- " 'Engine_Capacity_(CC)': 1560,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 1,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 1069,\n",
+ " 'Location_Northing_OSGR': 236440,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 489190,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 4,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 7,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 8,\n",
- " 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Engine_Capacity_(CC)': 1560,\n",
" 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 4,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 3,\n",
" 'Vehicle_Type': 19,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 3,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 1,\n",
" 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 8,\n",
- " 'Engine_Capacity_(CC)': 1598,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 10,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': 5,\n",
+ " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 8,\n",
+ " 'Vehicle_Leaving_Carriageway': 1,\n",
" 'Junction_Location': 1,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 1,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 1,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1598,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 7,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 10,\n",
+ " '1st_Point_of_Impact': 3,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 9,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b760'),\n",
- " 'loc': {'coordinates': [-0.701665, 52.019181], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 9009,\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016820',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.019181,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S094022',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
" '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1072,\n",
- " 'Accident_Index': '201243S045122',\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 6,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.701665,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 60,\n",
+ " 'Date': '22/02/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 2, 22, 12, 35),\n",
+ " 'Number_of_Casualties': 2,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.701665, 52.019181]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b677'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 6,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 20,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '12/12/2012',\n",
- " 'Datetime': datetime.datetime(2012, 12, 12, 18, 15),\n",
- " 'Day_of_Week': 4,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 3,\n",
- " 'LSOA_of_Accident_Location': 'E01016828',\n",
- " 'Latitude': 52.014912,\n",
- " 'Light_Conditions': 4,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 489470,\n",
- " 'Location_Northing_OSGR': 235970,\n",
- " 'Longitude': -0.697709,\n",
- " 'Number_of_Casualties': 2,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 60,\n",
+ " '1st_Road_Number': 9009,\n",
" 'Time': '18:15',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 7,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 9,\n",
- " 'Engine_Capacity_(CC)': 1400,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 1072,\n",
+ " 'Location_Northing_OSGR': 235970,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 489470,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 4,\n",
+ " 'Light_Conditions': 4,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 1,\n",
" 'Junction_Location': 5,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 1,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Engine_Capacity_(CC)': 1400,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 1,\n",
" 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 2,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 8,\n",
- " 'Engine_Capacity_(CC)': 2143,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 7,\n",
+ " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 8,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 8,\n",
- " 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 2143,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 6,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
" 'Vehicle_Type': 20,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': 2,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b677'),\n",
- " 'loc': {'coordinates': [-0.697709, 52.014912], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 149,\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016828',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.014912,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S045122',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
" '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1069,\n",
- " 'Accident_Index': '201243S143102',\n",
- " 'Accident_Severity': 1,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 11,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Accident_Severity': 3,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.697709,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 60,\n",
+ " 'Date': '12/12/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 12, 12, 18, 15),\n",
+ " 'Number_of_Casualties': 2,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.697709, 52.014912]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b841'),\n",
+ " 'Casualties': [{'Casualty_Severity': 1,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 1,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 11,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 7,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 7,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '24/10/2012',\n",
- " 'Datetime': datetime.datetime(2012, 10, 24, 14, 36),\n",
- " 'Day_of_Week': 4,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 3,\n",
- " 'LSOA_of_Accident_Location': 'E01016712',\n",
- " 'Latitude': 52.017949,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 487900,\n",
- " 'Location_Northing_OSGR': 236280,\n",
- " 'Longitude': -0.7205,\n",
- " 'Number_of_Casualties': 2,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 3,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 70,\n",
+ " '1st_Road_Number': 149,\n",
" 'Time': '14:36',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 3,\n",
- " 'Age_Band_of_Driver': 11,\n",
- " 'Age_of_Vehicle': 1,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 1,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': 1069,\n",
+ " 'Location_Northing_OSGR': 236280,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 487900,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 4,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 1,\n",
+ " 'Vehicle_Leaving_Carriageway': 4,\n",
+ " 'Junction_Location': 8,\n",
+ " 'Skidding_and_Overturning': 0,\n",
+ " 'Towing_and_Articulation': 0,\n",
+ " 'Vehicle_Location-Restricted_Lane': 0,\n",
" 'Engine_Capacity_(CC)': 1197,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 11,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 3,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 8,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
+ " 'Age_of_Vehicle': 1,\n",
+ " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 1,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 8,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 4,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 9,\n",
- " 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': 5,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 1,\n",
" 'Engine_Capacity_(CC)': 1870,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 7,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 2,\n",
- " 'Junction_Location': 8,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 1,\n",
- " 'Skidding_and_Overturning': 0,\n",
- " 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
- " 'Vehicle_Location-Restricted_Lane': 0,\n",
+ " 'Age_of_Vehicle': 5,\n",
" 'Vehicle_Manoeuvre': 18,\n",
- " 'Vehicle_Reference': 2,\n",
- " 'Vehicle_Type': 9,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b841'),\n",
- " 'loc': {'coordinates': [-0.7205, 52.017949], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 129,\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016712',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.017949,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S143102',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
" '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 432,\n",
- " 'Accident_Index': '201243S119012',\n",
- " 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 8,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 2,\n",
+ " 'Accident_Severity': 1,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.7205,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 70,\n",
+ " 'Date': '24/10/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 10, 24, 14, 36),\n",
+ " 'Number_of_Casualties': 2,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.7205, 52.017949]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b7e6'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 8,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 2,\n",
+ " 'Age_Band_of_Casualty': 8,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '22/01/2012',\n",
- " 'Datetime': datetime.datetime(2012, 1, 22, 17, 15),\n",
- " 'Day_of_Week': 1,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 2,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 2,\n",
- " 'LSOA_of_Accident_Location': 'E01016712',\n",
- " 'Latitude': 51.998571,\n",
- " 'Light_Conditions': 4,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 488230,\n",
- " 'Location_Northing_OSGR': 234130,\n",
- " 'Longitude': -0.716246,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 1,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 30,\n",
+ " '1st_Road_Number': 129,\n",
" 'Time': '17:15',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': -1,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': -1,\n",
- " 'Driver_IMD_Decile': -1,\n",
- " 'Engine_Capacity_(CC)': -1,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 1,\n",
+ " '2nd_Road_Number': 432,\n",
+ " 'Location_Northing_OSGR': 234130,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 488230,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 1,\n",
+ " 'Light_Conditions': 4,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': -1,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 8,\n",
- " 'Propulsion_Code': -1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': -1,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': -1,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 1,\n",
" 'Age_Band_of_Driver': -1,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': -1,\n",
- " 'Driver_IMD_Decile': -1,\n",
- " 'Engine_Capacity_(CC)': -1,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 1,\n",
- " 'Junction_Location': 4,\n",
- " 'Propulsion_Code': -1,\n",
+ " '1st_Point_of_Impact': 2,\n",
+ " 'Vehicle_Type': -1,\n",
" 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': -1,\n",
+ " 'Propulsion_Code': -1,\n",
+ " 'Age_of_Vehicle': -1,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': -1,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 4,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': -1,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': -1,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
" 'Vehicle_Type': 8,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 1,\n",
+ " 'Driver_Home_Area_Type': -1,\n",
+ " 'Propulsion_Code': -1,\n",
+ " 'Age_of_Vehicle': -1,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b7e6'),\n",
- " 'loc': {'coordinates': [-0.716246, 51.998571], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 129,\n",
- " '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 432,\n",
- " 'Accident_Index': '201243S110082',\n",
- " 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 7,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
- " 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
- " 'Casualty_Type': 1,\n",
- " 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
- " 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '29/08/2012',\n",
- " 'Datetime': datetime.datetime(2012, 8, 29, 5, 35),\n",
- " 'Day_of_Week': 4,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 2,\n",
- " 'Junction_Control': 4,\n",
" 'Junction_Detail': 2,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
" 'LSOA_of_Accident_Location': 'E01016712',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
" 'Latitude': 51.998571,\n",
- " 'Light_Conditions': 4,\n",
" 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 488230,\n",
- " 'Location_Northing_OSGR': 234130,\n",
- " 'Longitude': -0.716246,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 2,\n",
+ " 'Accident_Index': '201243S119012',\n",
" 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
- " 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 6,\n",
+ " '1st_Road_Class': 5,\n",
+ " '2nd_Road_Class': 6,\n",
+ " 'Accident_Severity': 3,\n",
" 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.716246,\n",
+ " 'Junction_Control': 4,\n",
" 'Speed_limit': 30,\n",
+ " 'Date': '22/01/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 1, 22, 17, 15),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.716246, 51.998571]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b7b5'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
+ " 'Casualty_Class': 1,\n",
+ " 'Casualty_Type': 1,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
+ " 'Pedestrian_Location': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 7,\n",
+ " 'Pedestrian_Road_Maintenance_Worker': 0,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
+ " 'Road_Surface_Conditions': 1,\n",
+ " '1st_Road_Number': 129,\n",
" 'Time': '05:35',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': -1,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': -1,\n",
- " 'Driver_IMD_Decile': -1,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 432,\n",
+ " 'Location_Northing_OSGR': 234130,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 488230,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 4,\n",
+ " 'Light_Conditions': 4,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': -1,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 4,\n",
+ " 'Skidding_and_Overturning': 0,\n",
+ " 'Towing_and_Articulation': 0,\n",
+ " 'Vehicle_Location-Restricted_Lane': 0,\n",
" 'Engine_Capacity_(CC)': -1,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': -1,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 4,\n",
+ " 'Driver_Home_Area_Type': -1,\n",
" 'Propulsion_Code': -1,\n",
- " 'Sex_of_Driver': 1,\n",
+ " 'Age_of_Vehicle': -1,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 5,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 8,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
- " 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 5,\n",
" 'Engine_Capacity_(CC)': -1,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 7,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 1,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 2,\n",
- " 'Junction_Location': 8,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': -1,\n",
- " 'Sex_of_Driver': 1,\n",
- " 'Skidding_and_Overturning': 0,\n",
- " 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
- " 'Vehicle_Location-Restricted_Lane': 0,\n",
+ " 'Age_of_Vehicle': -1,\n",
" 'Vehicle_Manoeuvre': 18,\n",
- " 'Vehicle_Reference': 2,\n",
- " 'Vehicle_Type': 1,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b7b5'),\n",
- " 'loc': {'coordinates': [-0.716246, 51.998571], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 129,\n",
+ " 'Junction_Detail': 2,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016712',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 51.998571,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 2,\n",
+ " 'Accident_Index': '201243S110082',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
" '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1027,\n",
- " 'Accident_Index': '201243S030042',\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 7,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.716246,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 30,\n",
+ " 'Date': '29/08/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 8, 29, 5, 35),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.716246, 51.998571]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b629'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 7,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2},\n",
- " {'Age_Band_of_Casualty': 4,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 1,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 1,\n",
+ " 'Age_Band_of_Casualty': 4,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '05/04/2012',\n",
- " 'Datetime': datetime.datetime(2012, 4, 5, 17, 0),\n",
- " 'Day_of_Week': 5,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 1,\n",
- " 'LSOA_of_Accident_Location': 'E01016716',\n",
- " 'Latitude': 52.001626,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 487670,\n",
- " 'Location_Northing_OSGR': 234460,\n",
- " 'Longitude': -0.724316,\n",
- " 'Number_of_Casualties': 2,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 30,\n",
+ " '1st_Road_Number': 129,\n",
" 'Time': '17:00',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 9,\n",
- " 'Age_of_Vehicle': 11,\n",
- " 'Driver_Home_Area_Type': 3,\n",
- " 'Driver_IMD_Decile': 10,\n",
- " 'Engine_Capacity_(CC)': 1598,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 1027,\n",
+ " 'Location_Northing_OSGR': 234460,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 487670,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 5,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 10,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 3,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1598,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': 6,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 3,\n",
- " 'Engine_Capacity_(CC)': 1364,\n",
+ " 'Age_Band_of_Driver': 9,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 3,\n",
+ " 'Driver_Home_Area_Type': 3,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
+ " 'Age_of_Vehicle': 11,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 3,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 3,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 3,\n",
+ " 'Engine_Capacity_(CC)': 1364,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 7,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 6,\n",
+ " 'Vehicle_Manoeuvre': 3,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b629'),\n",
- " 'loc': {'coordinates': [-0.724316, 52.001626], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 4,\n",
- " '1st_Road_Number': 4034,\n",
- " '2nd_Road_Class': 5,\n",
- " '2nd_Road_Number': 129,\n",
- " 'Accident_Index': '201243S119042',\n",
+ " 'Junction_Detail': 1,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016716',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.001626,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S030042',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
+ " '2nd_Road_Class': 6,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 7,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.724316,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 30,\n",
+ " 'Date': '05/04/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 4, 5, 17, 0),\n",
+ " 'Number_of_Casualties': 2,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.724316, 52.001626]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b7e7'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 7,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '25/04/2012',\n",
- " 'Datetime': datetime.datetime(2012, 4, 25, 14, 20),\n",
- " 'Day_of_Week': 4,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 2,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 1,\n",
- " 'LSOA_of_Accident_Location': 'E01016712',\n",
- " 'Latitude': 52.002726,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 487530,\n",
- " 'Location_Northing_OSGR': 234580,\n",
- " 'Longitude': -0.726325,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 3,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 30,\n",
+ " '1st_Road_Number': 4034,\n",
" 'Time': '14:20',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 14,\n",
- " 'Driver_Home_Area_Type': -1,\n",
- " 'Driver_IMD_Decile': -1,\n",
- " 'Engine_Capacity_(CC)': 2793,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': 129,\n",
+ " 'Location_Northing_OSGR': 234580,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 487530,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 4,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': -1,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 1,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 2793,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': 13,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 4,\n",
- " 'Engine_Capacity_(CC)': 1390,\n",
+ " 'Age_Band_of_Driver': 6,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 1,\n",
+ " 'Driver_Home_Area_Type': -1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
+ " 'Age_of_Vehicle': 14,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 4,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 3,\n",
+ " 'Engine_Capacity_(CC)': 1390,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 7,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 13,\n",
+ " 'Vehicle_Manoeuvre': 3,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b7e7'),\n",
- " 'loc': {'coordinates': [-0.726325, 52.002726], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 129,\n",
- " '2nd_Road_Class': -1,\n",
- " '2nd_Road_Number': 0,\n",
- " 'Accident_Index': '201243S093052',\n",
+ " 'Junction_Detail': 1,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016712',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.002726,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 2,\n",
+ " 'Accident_Index': '201243S119042',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 4,\n",
+ " '2nd_Road_Class': 5,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 9,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.726325,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 30,\n",
+ " 'Date': '25/04/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 4, 25, 14, 20),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.726325, 52.002726]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b75c'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 9,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 10,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 3,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 3,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 10,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '16/05/2012',\n",
- " 'Datetime': datetime.datetime(2012, 5, 16, 12, 42),\n",
- " 'Day_of_Week': 4,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': -1,\n",
- " 'Junction_Detail': 0,\n",
- " 'LSOA_of_Accident_Location': 'E01016716',\n",
- " 'Latitude': 52.001996,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 487600,\n",
- " 'Location_Northing_OSGR': 234500,\n",
- " 'Longitude': -0.725326,\n",
- " 'Number_of_Casualties': 2,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 4,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 30,\n",
+ " '1st_Road_Number': 129,\n",
" 'Time': '12:42',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 9,\n",
- " 'Age_of_Vehicle': 5,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 4,\n",
- " 'Engine_Capacity_(CC)': 1368,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 0,\n",
+ " 'Location_Northing_OSGR': 234500,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 487600,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 4,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 4,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1368,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': 10,\n",
- " 'Age_of_Vehicle': 5,\n",
- " 'Driver_Home_Area_Type': 3,\n",
- " 'Driver_IMD_Decile': 10,\n",
- " 'Engine_Capacity_(CC)': 998,\n",
+ " 'Age_Band_of_Driver': 9,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 0,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
+ " 'Age_of_Vehicle': 5,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 10,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 0,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 4,\n",
+ " 'Engine_Capacity_(CC)': 998,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 10,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 3,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 5,\n",
+ " 'Vehicle_Manoeuvre': 4,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b75c'),\n",
- " 'loc': {'coordinates': [-0.725326, 52.001996], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 4,\n",
- " '1st_Road_Number': 4034,\n",
- " '2nd_Road_Class': 5,\n",
- " '2nd_Road_Number': 129,\n",
- " 'Accident_Index': '201243S131062',\n",
- " 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 6,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
- " 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
- " 'Casualty_Type': 9,\n",
+ " 'Junction_Detail': 0,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016716',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.001996,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S093052',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 4,\n",
+ " '1st_Road_Class': 5,\n",
+ " '2nd_Road_Class': -1,\n",
+ " 'Accident_Severity': 3,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.725326,\n",
+ " 'Junction_Control': -1,\n",
+ " 'Speed_limit': 30,\n",
+ " 'Date': '16/05/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 5, 16, 12, 42),\n",
+ " 'Number_of_Casualties': 2,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.725326, 52.001996]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b81b'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
+ " 'Casualty_Class': 1,\n",
+ " 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 6,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 1,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 1,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 6,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 2,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 3,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 3,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 2,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': -1,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 2,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': -1,\n",
- " 'Casualty_Reference': 4,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 4,\n",
+ " 'Casualty_Home_Area_Type': -1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 2,\n",
+ " 'Age_Band_of_Casualty': -1,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1}],\n",
- " 'Date': '09/06/2012',\n",
- " 'Datetime': datetime.datetime(2012, 6, 9, 10, 7),\n",
- " 'Day_of_Week': 7,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 1,\n",
- " 'LSOA_of_Accident_Location': 'E01016712',\n",
- " 'Latitude': 52.002726,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 487530,\n",
- " 'Location_Northing_OSGR': 234580,\n",
- " 'Longitude': -0.726325,\n",
- " 'Number_of_Casualties': 4,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 3,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 30,\n",
+ " '1st_Road_Number': 4034,\n",
" 'Time': '10:07',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 16,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 2,\n",
- " 'Engine_Capacity_(CC)': 1489,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': 129,\n",
+ " 'Location_Northing_OSGR': 234580,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 487530,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 7,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 2,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 1,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1489,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': 10,\n",
- " 'Age_of_Vehicle': 15,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 5,\n",
- " 'Engine_Capacity_(CC)': 1332,\n",
+ " 'Age_Band_of_Driver': 6,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 1,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
+ " 'Age_of_Vehicle': 16,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 5,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1332,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 10,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 15,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b81b'),\n",
- " 'loc': {'coordinates': [-0.726325, 52.002726], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 129,\n",
- " '2nd_Road_Class': -1,\n",
- " '2nd_Road_Number': 0,\n",
- " 'Accident_Index': '201243S039092',\n",
+ " 'Junction_Detail': 1,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016712',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.002726,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S131062',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 4,\n",
+ " '2nd_Road_Class': 5,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 7,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.726325,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 30,\n",
+ " 'Date': '09/06/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 6, 9, 10, 7),\n",
+ " 'Number_of_Casualties': 4,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.726325, 52.002726]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b65c'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 1,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 7,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '11/09/2012',\n",
- " 'Datetime': datetime.datetime(2012, 9, 11, 14, 15),\n",
- " 'Day_of_Week': 3,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 2,\n",
- " 'Junction_Control': -1,\n",
- " 'Junction_Detail': 0,\n",
- " 'LSOA_of_Accident_Location': 'E01016712',\n",
- " 'Latitude': 52.002178,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 487590,\n",
- " 'Location_Northing_OSGR': 234520,\n",
- " 'Longitude': -0.725466,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 4,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 30,\n",
+ " '1st_Road_Number': 129,\n",
" 'Time': '14:15',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': -1,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': -1,\n",
- " 'Driver_IMD_Decile': -1,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 0,\n",
+ " 'Location_Northing_OSGR': 234520,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 487590,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 3,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': -1,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 0,\n",
+ " 'Skidding_and_Overturning': 0,\n",
+ " 'Towing_and_Articulation': 0,\n",
+ " 'Vehicle_Location-Restricted_Lane': 0,\n",
" 'Engine_Capacity_(CC)': -1,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': -1,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 3,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 0,\n",
+ " 'Driver_Home_Area_Type': -1,\n",
" 'Propulsion_Code': -1,\n",
- " 'Sex_of_Driver': 3,\n",
+ " 'Age_of_Vehicle': -1,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 8,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 0,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
- " 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 4,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 8,\n",
" 'Engine_Capacity_(CC)': -1,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 7,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 4,\n",
+ " 'Vehicle_Type': 1,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 2,\n",
- " 'Junction_Location': 0,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': -1,\n",
- " 'Sex_of_Driver': 2,\n",
- " 'Skidding_and_Overturning': 0,\n",
- " 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
- " 'Vehicle_Location-Restricted_Lane': 0,\n",
+ " 'Age_of_Vehicle': -1,\n",
" 'Vehicle_Manoeuvre': 18,\n",
- " 'Vehicle_Reference': 2,\n",
- " 'Vehicle_Type': 1,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b65c'),\n",
- " 'loc': {'coordinates': [-0.725466, 52.002178], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 4,\n",
- " '1st_Road_Number': 4034,\n",
+ " 'Junction_Detail': 0,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016712',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.002178,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 2,\n",
+ " 'Accident_Index': '201243S039092',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 4,\n",
+ " '1st_Road_Class': 5,\n",
" '2nd_Road_Class': -1,\n",
- " '2nd_Road_Number': 0,\n",
- " 'Accident_Index': '201243S101102',\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 7,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.725466,\n",
+ " 'Junction_Control': -1,\n",
+ " 'Speed_limit': 30,\n",
+ " 'Date': '11/09/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 9, 11, 14, 15),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.725466, 52.002178]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b789'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 7,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 4,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 2,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 2,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 4,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '03/10/2012',\n",
- " 'Datetime': datetime.datetime(2012, 10, 3, 19, 20),\n",
- " 'Day_of_Week': 4,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': -1,\n",
- " 'Junction_Detail': 0,\n",
- " 'LSOA_of_Accident_Location': 'E01016712',\n",
- " 'Latitude': 52.001563,\n",
- " 'Light_Conditions': 4,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 487500,\n",
- " 'Location_Northing_OSGR': 234450,\n",
- " 'Longitude': -0.726795,\n",
- " 'Number_of_Casualties': 2,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 3,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 70,\n",
+ " '1st_Road_Number': 4034,\n",
" 'Time': '19:20',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 3,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': 5,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 1,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': 0,\n",
+ " 'Location_Northing_OSGR': 234450,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 487500,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 4,\n",
+ " 'Light_Conditions': 4,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 1,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 0,\n",
+ " 'Skidding_and_Overturning': 0,\n",
+ " 'Towing_and_Articulation': 0,\n",
+ " 'Vehicle_Location-Restricted_Lane': 0,\n",
" 'Engine_Capacity_(CC)': 1968,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 7,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 3,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 1,\n",
- " 'Junction_Location': 0,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 1,\n",
+ " 'Age_of_Vehicle': 5,\n",
+ " 'Vehicle_Manoeuvre': 12,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 10,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 0,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 12,\n",
- " 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 4,\n",
- " 'Age_Band_of_Driver': 4,\n",
- " 'Age_of_Vehicle': 14,\n",
- " 'Driver_Home_Area_Type': 2,\n",
- " 'Driver_IMD_Decile': 10,\n",
" 'Engine_Capacity_(CC)': 1389,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 4,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 4,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 0,\n",
+ " 'Driver_Home_Area_Type': 2,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
- " 'Skidding_and_Overturning': 0,\n",
- " 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
- " 'Vehicle_Location-Restricted_Lane': 0,\n",
+ " 'Age_of_Vehicle': 14,\n",
" 'Vehicle_Manoeuvre': 18,\n",
- " 'Vehicle_Reference': 2,\n",
- " 'Vehicle_Type': 9,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b789'),\n",
- " 'loc': {'coordinates': [-0.726795, 52.001563], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 129,\n",
- " '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 439,\n",
- " 'Accident_Index': '201243S066112',\n",
+ " 'Junction_Detail': 0,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016712',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.001563,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S101102',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 4,\n",
+ " '2nd_Road_Class': -1,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 11,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.726795,\n",
+ " 'Junction_Control': -1,\n",
+ " 'Speed_limit': 70,\n",
+ " 'Date': '03/10/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 10, 3, 19, 20),\n",
+ " 'Number_of_Casualties': 2,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.726795, 52.001563]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b6d9'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 11,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '16/11/2012',\n",
- " 'Datetime': datetime.datetime(2012, 11, 16, 10, 55),\n",
- " 'Day_of_Week': 6,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 3,\n",
- " 'LSOA_of_Accident_Location': 'E01016716',\n",
- " 'Latitude': 52.000976,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 487800,\n",
- " 'Location_Northing_OSGR': 234390,\n",
- " 'Longitude': -0.722441,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 3,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 30,\n",
+ " '1st_Road_Number': 129,\n",
" 'Time': '10:55',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 1,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 6,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 439,\n",
+ " 'Location_Northing_OSGR': 234390,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 3,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 487800,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 6,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 6,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 6,\n",
+ " 'Skidding_and_Overturning': 0,\n",
+ " 'Towing_and_Articulation': 0,\n",
+ " 'Vehicle_Location-Restricted_Lane': 0,\n",
" 'Engine_Capacity_(CC)': 6870,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 6,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 21,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 1,\n",
- " 'Junction_Location': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 2,\n",
+ " 'Age_of_Vehicle': 1,\n",
+ " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 8,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 9,\n",
- " 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 21,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 4,\n",
- " 'Age_Band_of_Driver': 11,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 9,\n",
" 'Engine_Capacity_(CC)': -1,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 11,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 4,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 8,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': -1,\n",
- " 'Sex_of_Driver': 1,\n",
+ " 'Age_of_Vehicle': -1,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': -1,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
- " 'Vehicle_Reference': 2,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 8,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': -1,\n",
- " 'Driver_IMD_Decile': -1,\n",
" 'Engine_Capacity_(CC)': 2298,\n",
+ " 'Vehicle_Reference': 3,\n",
+ " 'Age_Band_of_Driver': 8,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 19,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 1,\n",
- " 'Junction_Location': 2,\n",
+ " 'Driver_Home_Area_Type': -1,\n",
" 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 1,\n",
- " 'Skidding_and_Overturning': 0,\n",
- " 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
- " 'Vehicle_Location-Restricted_Lane': 0,\n",
+ " 'Age_of_Vehicle': -1,\n",
" 'Vehicle_Manoeuvre': 10,\n",
- " 'Vehicle_Reference': 3,\n",
- " 'Vehicle_Type': 19,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b6d9'),\n",
- " 'loc': {'coordinates': [-0.722441, 52.000976], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 6,\n",
- " '1st_Road_Number': 1014,\n",
- " '2nd_Road_Class': -1,\n",
- " '2nd_Road_Number': -1,\n",
- " 'Accident_Index': '201243S003042',\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016716',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.000976,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S066112',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
+ " '2nd_Road_Class': 6,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 5,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.722441,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 30,\n",
+ " 'Date': '16/11/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 11, 16, 10, 55),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.722441, 52.000976]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b5c0'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 3,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
- " 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 3,\n",
+ " 'Pedestrian_Location': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 5,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 1}],\n",
- " 'Date': '03/04/2012',\n",
- " 'Datetime': datetime.datetime(2012, 4, 3, 7, 55),\n",
- " 'Day_of_Week': 3,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 2,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 8,\n",
- " 'LSOA_of_Accident_Location': 'E01016712',\n",
- " 'Latitude': 52.003133,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 487230,\n",
- " 'Location_Northing_OSGR': 234620,\n",
- " 'Longitude': -0.730683,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 30,\n",
+ " '1st_Road_Number': 1014,\n",
" 'Time': '07:55',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 5,\n",
- " 'Age_of_Vehicle': 11,\n",
- " 'Driver_Home_Area_Type': 3,\n",
- " 'Driver_IMD_Decile': 10,\n",
- " 'Engine_Capacity_(CC)': 1124,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': -1,\n",
+ " 'Location_Northing_OSGR': 234620,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 487230,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 3,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 10,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 1,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1124,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 3,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 7,\n",
- " 'Driver_Home_Area_Type': -1,\n",
- " 'Driver_IMD_Decile': -1,\n",
- " 'Engine_Capacity_(CC)': 1986,\n",
+ " 'Age_Band_of_Driver': 5,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 3,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 11,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': -1,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 1,\n",
- " 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Engine_Capacity_(CC)': 1986,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 6,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 3,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': -1,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': 7,\n",
+ " 'Vehicle_Manoeuvre': 9,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b5c0'),\n",
- " 'loc': {'coordinates': [-0.730683, 52.003133], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 4,\n",
- " '1st_Road_Number': 4034,\n",
+ " 'Junction_Detail': 8,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016712',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.003133,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 2,\n",
+ " 'Accident_Index': '201243S003042',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 6,\n",
" '2nd_Road_Class': -1,\n",
- " '2nd_Road_Number': -1,\n",
- " 'Accident_Index': '201243S116062',\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 5,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.730683,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 30,\n",
+ " 'Date': '03/04/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 4, 3, 7, 55),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.730683, 52.003133]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b7d7'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 5,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '30/06/2012',\n",
- " 'Datetime': datetime.datetime(2012, 6, 30, 11, 30),\n",
- " 'Day_of_Week': 7,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 2,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 8,\n",
- " 'LSOA_of_Accident_Location': 'E01016712',\n",
- " 'Latitude': 51.999279,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 487160,\n",
- " 'Location_Northing_OSGR': 234190,\n",
- " 'Longitude': -0.731812,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 3,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 70,\n",
+ " '1st_Road_Number': 4034,\n",
" 'Time': '11:30',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': -1,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': -1,\n",
- " 'Driver_IMD_Decile': -1,\n",
- " 'Engine_Capacity_(CC)': 1206,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': -1,\n",
+ " 'Location_Northing_OSGR': 234190,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 487160,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 7,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': -1,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 1,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 11,\n",
+ " 'Engine_Capacity_(CC)': 1206,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 5,\n",
- " 'Age_of_Vehicle': 7,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 3,\n",
- " 'Engine_Capacity_(CC)': 1229,\n",
+ " 'Age_Band_of_Driver': -1,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 1,\n",
+ " 'Driver_Home_Area_Type': -1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
+ " 'Age_of_Vehicle': -1,\n",
+ " 'Vehicle_Manoeuvre': 11,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 3,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1229,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 5,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 7,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b7d7'),\n",
- " 'loc': {'coordinates': [-0.731812, 51.999279], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 4,\n",
- " '1st_Road_Number': 4034,\n",
- " '2nd_Road_Class': 5,\n",
- " '2nd_Road_Number': 9150,\n",
- " 'Accident_Index': '201243S068032',\n",
+ " 'Junction_Detail': 8,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016712',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 51.999279,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 2,\n",
+ " 'Accident_Index': '201243S116062',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 4,\n",
+ " '2nd_Road_Class': -1,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 8,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.731812,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 70,\n",
+ " 'Date': '30/06/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 6, 30, 11, 30),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.731812, 51.999279]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b6de'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 8,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 9,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 9,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '15/03/2012',\n",
- " 'Datetime': datetime.datetime(2012, 3, 15, 12, 50),\n",
- " 'Day_of_Week': 5,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 1,\n",
- " 'LSOA_of_Accident_Location': 'E01016712',\n",
- " 'Latitude': 52.00436,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 487430,\n",
- " 'Location_Northing_OSGR': 234760,\n",
- " 'Longitude': -0.727735,\n",
- " 'Number_of_Casualties': 2,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 1,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 70,\n",
+ " '1st_Road_Number': 4034,\n",
" 'Time': '12:50',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 8,\n",
- " 'Age_of_Vehicle': 5,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 1,\n",
+ " 'Road_Type': 1,\n",
+ " '2nd_Road_Number': 9150,\n",
+ " 'Location_Northing_OSGR': 234760,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 487430,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 5,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 1,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 1,\n",
+ " 'Skidding_and_Overturning': 0,\n",
+ " 'Towing_and_Articulation': 0,\n",
+ " 'Vehicle_Location-Restricted_Lane': 0,\n",
" 'Engine_Capacity_(CC)': 998,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 8,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 1,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
+ " 'Age_of_Vehicle': 5,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
- " 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': 9,\n",
- " 'Age_of_Vehicle': 2,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 9,\n",
" 'Engine_Capacity_(CC)': 1560,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 9,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 2,\n",
- " 'Junction_Location': 1,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 1,\n",
- " 'Skidding_and_Overturning': 0,\n",
- " 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
- " 'Vehicle_Location-Restricted_Lane': 0,\n",
+ " 'Age_of_Vehicle': 2,\n",
" 'Vehicle_Manoeuvre': 18,\n",
- " 'Vehicle_Reference': 2,\n",
- " 'Vehicle_Type': 9,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b6de'),\n",
- " 'loc': {'coordinates': [-0.727735, 52.00436], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 4,\n",
- " '1st_Road_Number': 4034,\n",
- " '2nd_Road_Class': -1,\n",
- " '2nd_Road_Number': 0,\n",
- " 'Accident_Index': '201243S120062',\n",
+ " 'Junction_Detail': 1,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
+ " 'LSOA_of_Accident_Location': 'E01016712',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.00436,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S068032',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 4,\n",
+ " '2nd_Road_Class': 5,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 10,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.727735,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 70,\n",
+ " 'Date': '15/03/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 3, 15, 12, 50),\n",
+ " 'Number_of_Casualties': 2,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.727735, 52.00436]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b7ee'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 10,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 8,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 8,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '28/06/2012',\n",
- " 'Datetime': datetime.datetime(2012, 6, 28, 8, 55),\n",
- " 'Day_of_Week': 5,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': -1,\n",
- " 'Junction_Detail': 0,\n",
- " 'LSOA_of_Accident_Location': 'E01016712',\n",
- " 'Latitude': 52.008615,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 487240,\n",
- " 'Location_Northing_OSGR': 235230,\n",
- " 'Longitude': -0.730383,\n",
- " 'Number_of_Casualties': 2,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 60,\n",
+ " '1st_Road_Number': 4034,\n",
" 'Time': '08:55',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 3,\n",
- " 'Age_Band_of_Driver': 10,\n",
- " 'Age_of_Vehicle': 6,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 4,\n",
- " 'Engine_Capacity_(CC)': 1242,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 0,\n",
+ " 'Location_Northing_OSGR': 235230,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 487240,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 5,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 4,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 8,\n",
- " 'Vehicle_Manoeuvre': 6,\n",
+ " 'Engine_Capacity_(CC)': 1242,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 4,\n",
- " 'Age_Band_of_Driver': 8,\n",
- " 'Age_of_Vehicle': 16,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 4,\n",
- " 'Engine_Capacity_(CC)': 1998,\n",
+ " 'Age_Band_of_Driver': 10,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 3,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 0,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
+ " 'Age_of_Vehicle': 6,\n",
+ " 'Vehicle_Manoeuvre': 6,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 4,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 0,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1998,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 8,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 4,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 16,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b7ee'),\n",
- " 'loc': {'coordinates': [-0.730383, 52.008615], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 9150,\n",
- " '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1014,\n",
- " 'Accident_Index': '201243S097072',\n",
+ " 'Junction_Detail': 0,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016712',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.008615,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S120062',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 4,\n",
+ " '2nd_Road_Class': -1,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 8,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.730383,\n",
+ " 'Junction_Control': -1,\n",
+ " 'Speed_limit': 60,\n",
+ " 'Date': '28/06/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 6, 28, 8, 55),\n",
+ " 'Number_of_Casualties': 2,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.730383, 52.008615]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b77a'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 3,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 3,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 8,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '16/07/2012',\n",
- " 'Datetime': datetime.datetime(2012, 7, 16, 18, 37),\n",
- " 'Day_of_Week': 2,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 2,\n",
- " 'Junction_Detail': 3,\n",
- " 'LSOA_of_Accident_Location': 'E01016712',\n",
- " 'Latitude': 52.004574,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 487210,\n",
- " 'Location_Northing_OSGR': 234780,\n",
- " 'Longitude': -0.730934,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 5,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 3,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 40,\n",
+ " '1st_Road_Number': 9150,\n",
" 'Time': '18:37',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': 3,\n",
- " 'Driver_IMD_Decile': 10,\n",
- " 'Engine_Capacity_(CC)': 1984,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': 1014,\n",
+ " 'Location_Northing_OSGR': 234780,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 487210,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 2,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 10,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 1,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1984,\n",
" 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 6,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
" 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': 8,\n",
- " 'Age_of_Vehicle': 6,\n",
- " 'Driver_Home_Area_Type': 3,\n",
- " 'Driver_IMD_Decile': 10,\n",
- " 'Engine_Capacity_(CC)': 1796,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 1,\n",
+ " 'Driver_Home_Area_Type': 3,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
+ " 'Age_of_Vehicle': -1,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 10,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 3,\n",
+ " 'Engine_Capacity_(CC)': 1796,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 8,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 3,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 6,\n",
+ " 'Vehicle_Manoeuvre': 3,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b77a'),\n",
- " 'loc': {'coordinates': [-0.730934, 52.004574], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 4,\n",
- " '1st_Road_Number': 4034,\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
+ " 'LSOA_of_Accident_Location': 'E01016712',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.004574,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S097072',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 5,\n",
+ " '1st_Road_Class': 5,\n",
" '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1014,\n",
- " 'Accident_Index': '201243S155122',\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 6,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 2,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.730934,\n",
+ " 'Junction_Control': 2,\n",
+ " 'Speed_limit': 40,\n",
+ " 'Date': '16/07/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 7, 16, 18, 37),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.730934, 52.004574]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b850'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 6,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 6,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 2,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2},\n",
- " {'Age_Band_of_Casualty': 9,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 3,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 9,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 3},\n",
- " {'Age_Band_of_Casualty': 8,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 1,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 3,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 1,\n",
+ " 'Age_Band_of_Casualty': 8,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 3},\n",
- " {'Age_Band_of_Casualty': 11,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 1,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 3,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 3,\n",
+ " 'Casualty_Reference': 3,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 1,\n",
+ " 'Age_Band_of_Casualty': 11,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 3},\n",
- " {'Age_Band_of_Casualty': 6,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 2,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 4,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 3,\n",
+ " 'Casualty_Reference': 4,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 2,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 3},\n",
- " {'Age_Band_of_Casualty': 1,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 2,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 5,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 3,\n",
+ " 'Casualty_Reference': 5,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 2,\n",
+ " 'Age_Band_of_Casualty': 1,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 3}],\n",
- " 'Date': '31/12/2012',\n",
- " 'Datetime': datetime.datetime(2012, 12, 31, 11, 17),\n",
- " 'Day_of_Week': 2,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 3,\n",
- " 'LSOA_of_Accident_Location': 'E01016712',\n",
- " 'Latitude': 52.006254,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 487390,\n",
- " 'Location_Northing_OSGR': 234970,\n",
- " 'Longitude': -0.728264,\n",
- " 'Number_of_Casualties': 6,\n",
- " 'Number_of_Vehicles': 3,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 60,\n",
+ " '1st_Road_Number': 4034,\n",
" 'Time': '11:17',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 3,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': 2,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 8,\n",
- " 'Engine_Capacity_(CC)': 1199,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 1014,\n",
+ " 'Location_Northing_OSGR': 234970,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 3,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 487390,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 2,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 8,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 6,\n",
- " 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Engine_Capacity_(CC)': 1199,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 10,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 3,\n",
- " 'Engine_Capacity_(CC)': 2976,\n",
+ " 'Age_Band_of_Driver': 7,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 3,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': 2,\n",
+ " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 3,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 8,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 2976,\n",
" 'Vehicle_Reference': 2,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 9,\n",
- " 'Age_of_Vehicle': 12,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 4,\n",
- " 'Engine_Capacity_(CC)': 1390,\n",
+ " 'Age_Band_of_Driver': 6,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 1,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
+ " 'Age_of_Vehicle': 10,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 4,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1390,\n",
" 'Vehicle_Reference': 3,\n",
+ " 'Age_Band_of_Driver': 9,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 12,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b850'),\n",
- " 'loc': {'coordinates': [-0.728264, 52.006254], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 4,\n",
- " '1st_Road_Number': 4034,\n",
- " '2nd_Road_Class': 5,\n",
- " '2nd_Road_Number': 150,\n",
- " 'Accident_Index': '201243S023022',\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016712',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.006254,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S155122',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 4,\n",
+ " '2nd_Road_Class': 6,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 7,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.728264,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 60,\n",
+ " 'Date': '31/12/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 12, 31, 11, 17),\n",
+ " 'Number_of_Casualties': 6,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.728264, 52.006254]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b60d'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 7,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '02/02/2012',\n",
- " 'Datetime': datetime.datetime(2012, 2, 2, 10, 55),\n",
- " 'Day_of_Week': 5,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 1,\n",
- " 'LSOA_of_Accident_Location': 'E01016712',\n",
- " 'Latitude': 52.004072,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 487550,\n",
- " 'Location_Northing_OSGR': 234730,\n",
- " 'Longitude': -0.725995,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 1,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 70,\n",
+ " '1st_Road_Number': 4034,\n",
" 'Time': '10:55',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 8,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': 3,\n",
- " 'Driver_IMD_Decile': 9,\n",
- " 'Engine_Capacity_(CC)': -1,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 1,\n",
+ " 'Road_Type': 1,\n",
+ " '2nd_Road_Number': 150,\n",
+ " 'Location_Northing_OSGR': 234730,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 487550,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 5,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 1,\n",
- " 'Propulsion_Code': -1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': -1,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': 10,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 9,\n",
- " 'Engine_Capacity_(CC)': 1587,\n",
+ " 'Age_Band_of_Driver': 8,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 1,\n",
+ " 'Driver_Home_Area_Type': 3,\n",
+ " 'Propulsion_Code': -1,\n",
+ " 'Age_of_Vehicle': -1,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 1,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1587,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 7,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 1,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 10,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b60d'),\n",
- " 'loc': {'coordinates': [-0.725995, 52.004072], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 4,\n",
- " '1st_Road_Number': 4034,\n",
+ " 'Junction_Detail': 1,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
+ " 'LSOA_of_Accident_Location': 'E01016712',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.004072,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S023022',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 4,\n",
" '2nd_Road_Class': 5,\n",
- " '2nd_Road_Number': 9150,\n",
- " 'Accident_Index': '201243S001032',\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 8,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.725995,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 70,\n",
+ " 'Date': '02/02/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 2, 2, 10, 55),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.725995, 52.004072]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b5b6'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 5,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 8,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '01/03/2012',\n",
- " 'Datetime': datetime.datetime(2012, 3, 1, 8, 35),\n",
- " 'Day_of_Week': 5,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 2,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 1,\n",
- " 'LSOA_of_Accident_Location': 'E01016712',\n",
- " 'Latitude': 52.00416,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 487560,\n",
- " 'Location_Northing_OSGR': 234740,\n",
- " 'Longitude': -0.725847,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 1,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 70,\n",
+ " '1st_Road_Number': 4034,\n",
" 'Time': '08:35',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': -1,\n",
- " 'Age_of_Vehicle': 9,\n",
- " 'Driver_Home_Area_Type': 2,\n",
- " 'Driver_IMD_Decile': 8,\n",
+ " 'Road_Type': 1,\n",
+ " '2nd_Road_Number': 9150,\n",
+ " 'Location_Northing_OSGR': 234740,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 487560,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 5,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 8,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 1,\n",
+ " 'Skidding_and_Overturning': 0,\n",
+ " 'Towing_and_Articulation': 0,\n",
+ " 'Vehicle_Location-Restricted_Lane': 0,\n",
" 'Engine_Capacity_(CC)': 1870,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': -1,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 19,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 1,\n",
+ " 'Driver_Home_Area_Type': 2,\n",
" 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 1,\n",
+ " 'Age_of_Vehicle': 9,\n",
+ " 'Vehicle_Manoeuvre': 4,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 8,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 4,\n",
- " 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 19,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': 8,\n",
- " 'Age_of_Vehicle': 7,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 8,\n",
" 'Engine_Capacity_(CC)': 1171,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 8,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
+ " 'Vehicle_Type': 5,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 1,\n",
- " 'Junction_Location': 1,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
- " 'Skidding_and_Overturning': 0,\n",
- " 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
- " 'Vehicle_Location-Restricted_Lane': 0,\n",
+ " 'Age_of_Vehicle': 7,\n",
" 'Vehicle_Manoeuvre': 3,\n",
- " 'Vehicle_Reference': 2,\n",
- " 'Vehicle_Type': 5,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 7,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b5b6'),\n",
- " 'loc': {'coordinates': [-0.725847, 52.00416], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 4,\n",
- " '1st_Road_Number': 4034,\n",
+ " 'Junction_Detail': 1,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
+ " 'LSOA_of_Accident_Location': 'E01016712',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.00416,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 2,\n",
+ " 'Accident_Index': '201243S001032',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 4,\n",
" '2nd_Road_Class': 5,\n",
- " '2nd_Road_Number': 150,\n",
- " 'Accident_Index': '201243S105032',\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 7,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.725847,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 70,\n",
+ " 'Date': '01/03/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 3, 1, 8, 35),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.725847, 52.00416]},\n",
+ " 'Weather_Conditions': 7},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b79a'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 7,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '22/03/2012',\n",
- " 'Datetime': datetime.datetime(2012, 3, 22, 16, 5),\n",
- " 'Day_of_Week': 5,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 1,\n",
- " 'LSOA_of_Accident_Location': 'E01016712',\n",
- " 'Latitude': 52.004798,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 487500,\n",
- " 'Location_Northing_OSGR': 234810,\n",
- " 'Longitude': -0.726703,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 1,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 70,\n",
+ " '1st_Road_Number': 4034,\n",
" 'Time': '16:05',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': 12,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 7,\n",
- " 'Engine_Capacity_(CC)': 1796,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 1,\n",
+ " '2nd_Road_Number': 150,\n",
+ " 'Location_Northing_OSGR': 234810,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 487500,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 5,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 7,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 1,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 5,\n",
+ " 'Engine_Capacity_(CC)': 1796,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
" 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': 11,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 4,\n",
- " 'Engine_Capacity_(CC)': 2151,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 12,\n",
+ " 'Vehicle_Manoeuvre': 5,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 4,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 1,\n",
- " 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 5,\n",
+ " 'Engine_Capacity_(CC)': 2151,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 7,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': 11,\n",
+ " 'Vehicle_Manoeuvre': 5,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b79a'),\n",
- " 'loc': {'coordinates': [-0.726703, 52.004798], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 4,\n",
- " '1st_Road_Number': 4034,\n",
+ " 'Junction_Detail': 1,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
+ " 'LSOA_of_Accident_Location': 'E01016712',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.004798,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S105032',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 4,\n",
" '2nd_Road_Class': 5,\n",
- " '2nd_Road_Number': 9150,\n",
- " 'Accident_Index': '201243S029042',\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 5,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.726703,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 70,\n",
+ " 'Date': '22/03/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 3, 22, 16, 5),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.726703, 52.004798]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b625'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 19,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 5,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1}],\n",
- " 'Date': '11/04/2012',\n",
- " 'Datetime': datetime.datetime(2012, 4, 11, 13, 0),\n",
- " 'Day_of_Week': 4,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 1,\n",
- " 'LSOA_of_Accident_Location': 'E01016712',\n",
- " 'Latitude': 52.004625,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 487460,\n",
- " 'Location_Northing_OSGR': 234790,\n",
- " 'Longitude': -0.72729,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 1,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 70,\n",
+ " '1st_Road_Number': 4034,\n",
" 'Time': '13:00',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 5,\n",
- " 'Age_of_Vehicle': 6,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 2,\n",
- " 'Engine_Capacity_(CC)': 2460,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 1,\n",
+ " 'Road_Type': 1,\n",
+ " '2nd_Road_Number': 9150,\n",
+ " 'Location_Northing_OSGR': 234790,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 487460,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 4,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 2,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 3,\n",
- " 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 1,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 2460,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 19,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
" 'Age_Band_of_Driver': 5,\n",
- " 'Age_of_Vehicle': 11,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 3,\n",
- " 'Engine_Capacity_(CC)': 1242,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 3,\n",
- " 'Propulsion_Code': 1,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 19,\n",
" 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 1,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': 6,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 3,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 3,\n",
" 'Skidding_and_Overturning': 1,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1242,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 5,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 11,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b625'),\n",
- " 'loc': {'coordinates': [-0.72729, 52.004625], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 4,\n",
- " '1st_Road_Number': 4034,\n",
+ " 'Junction_Detail': 1,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
+ " 'LSOA_of_Accident_Location': 'E01016712',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.004625,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S029042',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 4,\n",
" '2nd_Road_Class': 5,\n",
- " '2nd_Road_Number': 9150,\n",
- " 'Accident_Index': '201243S090072',\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 7,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.72729,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 70,\n",
+ " 'Date': '11/04/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 4, 11, 13, 0),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.72729, 52.004625]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b74f'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 3,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 3,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 7,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 6,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2},\n",
- " {'Age_Band_of_Casualty': 5,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 3,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 4,\n",
+ " 'Casualty_Reference': 3,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 5,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 4}],\n",
- " 'Date': '20/07/2012',\n",
- " 'Datetime': datetime.datetime(2012, 7, 20, 17, 26),\n",
- " 'Day_of_Week': 6,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 1,\n",
- " 'LSOA_of_Accident_Location': 'E01016712',\n",
- " 'Latitude': 52.003997,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 487450,\n",
- " 'Location_Northing_OSGR': 234720,\n",
- " 'Longitude': -0.727454,\n",
- " 'Number_of_Casualties': 3,\n",
- " 'Number_of_Vehicles': 4,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 3,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 70,\n",
+ " '1st_Road_Number': 4034,\n",
" 'Time': '17:26',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 4,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': 6,\n",
- " 'Driver_Home_Area_Type': 3,\n",
- " 'Driver_IMD_Decile': 10,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': 9150,\n",
+ " 'Location_Northing_OSGR': 234720,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 4,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 487450,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 6,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 10,\n",
+ " 'Vehicle_Leaving_Carriageway': 4,\n",
+ " 'Junction_Location': 8,\n",
+ " 'Skidding_and_Overturning': 1,\n",
+ " 'Towing_and_Articulation': 0,\n",
+ " 'Vehicle_Location-Restricted_Lane': 0,\n",
" 'Engine_Capacity_(CC)': 1339,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 7,\n",
" 'Hit_Object_in_Carriageway': 10,\n",
" 'Hit_Object_off_Carriageway': 2,\n",
+ " '1st_Point_of_Impact': 4,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 1,\n",
- " 'Junction_Location': 8,\n",
+ " 'Driver_Home_Area_Type': 3,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
+ " 'Age_of_Vehicle': 6,\n",
+ " 'Vehicle_Manoeuvre': 7,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 8,\n",
+ " 'Vehicle_Leaving_Carriageway': 6,\n",
+ " 'Junction_Location': 8,\n",
" 'Skidding_and_Overturning': 1,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 4,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 7,\n",
- " 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 3,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 8,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 8,\n",
" 'Engine_Capacity_(CC)': 1997,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 6,\n",
" 'Hit_Object_in_Carriageway': 10,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 3,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 1,\n",
- " 'Junction_Location': 8,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 2,\n",
- " 'Skidding_and_Overturning': 1,\n",
- " 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 6,\n",
- " 'Vehicle_Location-Restricted_Lane': 0,\n",
+ " 'Age_of_Vehicle': 8,\n",
" 'Vehicle_Manoeuvre': 7,\n",
- " 'Vehicle_Reference': 2,\n",
- " 'Vehicle_Type': 9,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 5,\n",
- " 'Age_of_Vehicle': 14,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 2,\n",
- " 'Engine_Capacity_(CC)': 1124,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 1,\n",
+ " {'Driver_IMD_Decile': 2,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 1,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 3,\n",
+ " 'Engine_Capacity_(CC)': 1124,\n",
" 'Vehicle_Reference': 3,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 3,\n",
" 'Age_Band_of_Driver': 5,\n",
- " 'Age_of_Vehicle': 6,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 9,\n",
- " 'Engine_Capacity_(CC)': 1587,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 1,\n",
- " 'Junction_Location': 1,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
+ " 'Age_of_Vehicle': 14,\n",
+ " 'Vehicle_Manoeuvre': 3,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 3,\n",
+ " 'Engine_Capacity_(CC)': 1587,\n",
" 'Vehicle_Reference': 4,\n",
+ " 'Age_Band_of_Driver': 5,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 3,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 1,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 6,\n",
+ " 'Vehicle_Manoeuvre': 3,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b74f'),\n",
- " 'loc': {'coordinates': [-0.727454, 52.003997], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 4,\n",
- " '1st_Road_Number': 4034,\n",
+ " 'Junction_Detail': 1,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
+ " 'LSOA_of_Accident_Location': 'E01016712',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.003997,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S090072',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 4,\n",
" '2nd_Road_Class': 5,\n",
- " '2nd_Road_Number': 150,\n",
- " 'Accident_Index': '201243S086122',\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 4,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.727454,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 70,\n",
+ " 'Date': '20/07/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 7, 20, 17, 26),\n",
+ " 'Number_of_Casualties': 3,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.727454, 52.003997]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b73c'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 4,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 4,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 1,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 1,\n",
+ " 'Age_Band_of_Casualty': 4,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 6,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 1,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 3,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 3,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 1,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '16/12/2012',\n",
- " 'Datetime': datetime.datetime(2012, 12, 16, 14, 38),\n",
- " 'Day_of_Week': 1,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 1,\n",
- " 'LSOA_of_Accident_Location': 'E01016712',\n",
- " 'Latitude': 52.004134,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 487551,\n",
- " 'Location_Northing_OSGR': 234737,\n",
- " 'Longitude': -0.725979,\n",
- " 'Number_of_Casualties': 3,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 3,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 70,\n",
+ " '1st_Road_Number': 4034,\n",
" 'Time': '14:38',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 4,\n",
- " 'Age_of_Vehicle': 19,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 5,\n",
- " 'Engine_Capacity_(CC)': 1289,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': 150,\n",
+ " 'Location_Northing_OSGR': 234737,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 487551,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 1,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 5,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 4,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 5,\n",
+ " 'Engine_Capacity_(CC)': 1289,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': 8,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 5,\n",
- " 'Engine_Capacity_(CC)': 1560,\n",
+ " 'Age_Band_of_Driver': 4,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 19,\n",
+ " 'Vehicle_Manoeuvre': 5,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 5,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 8,\n",
- " 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 4,\n",
+ " 'Engine_Capacity_(CC)': 1560,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 7,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': 8,\n",
+ " 'Vehicle_Manoeuvre': 4,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b73c'),\n",
- " 'loc': {'coordinates': [-0.725979, 52.004134], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 6,\n",
- " '1st_Road_Number': 1014,\n",
- " '2nd_Road_Class': -1,\n",
- " '2nd_Road_Number': 0,\n",
- " 'Accident_Index': '201243S004092',\n",
+ " 'Junction_Detail': 1,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
+ " 'LSOA_of_Accident_Location': 'E01016712',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.004134,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S086122',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 4,\n",
+ " '2nd_Road_Class': 5,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 11,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.725979,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 70,\n",
+ " 'Date': '16/12/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 12, 16, 14, 38),\n",
+ " 'Number_of_Casualties': 3,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.725979, 52.004134]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b5c6'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 11,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 4,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 2,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 3,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 2,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 4,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 3}],\n",
- " 'Date': '01/09/2012',\n",
- " 'Datetime': datetime.datetime(2012, 9, 1, 17, 10),\n",
- " 'Day_of_Week': 7,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': -1,\n",
- " 'Junction_Detail': 0,\n",
- " 'LSOA_of_Accident_Location': 'E01016712',\n",
- " 'Latitude': 52.010088,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 487590,\n",
- " 'Location_Northing_OSGR': 235400,\n",
- " 'Longitude': -0.725241,\n",
- " 'Number_of_Casualties': 2,\n",
- " 'Number_of_Vehicles': 3,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 30,\n",
+ " '1st_Road_Number': 1014,\n",
" 'Time': '17:10',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 11,\n",
- " 'Age_of_Vehicle': 4,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 10,\n",
- " 'Engine_Capacity_(CC)': 1339,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 0,\n",
+ " 'Location_Northing_OSGR': 235400,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 3,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 487590,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 7,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 10,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1339,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': 9,\n",
- " 'Age_of_Vehicle': 10,\n",
- " 'Driver_Home_Area_Type': 3,\n",
- " 'Driver_IMD_Decile': 9,\n",
- " 'Engine_Capacity_(CC)': 1796,\n",
+ " 'Age_Band_of_Driver': 11,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 0,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
+ " 'Age_of_Vehicle': 4,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 0,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 2,\n",
+ " 'Engine_Capacity_(CC)': 1796,\n",
" 'Vehicle_Reference': 2,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 4,\n",
- " 'Age_Band_of_Driver': 4,\n",
- " 'Age_of_Vehicle': 4,\n",
- " 'Driver_Home_Area_Type': 2,\n",
- " 'Driver_IMD_Decile': 9,\n",
- " 'Engine_Capacity_(CC)': 995,\n",
+ " 'Age_Band_of_Driver': 9,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 0,\n",
+ " 'Driver_Home_Area_Type': 3,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
+ " 'Age_of_Vehicle': 10,\n",
+ " 'Vehicle_Manoeuvre': 2,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 0,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 3,\n",
+ " 'Engine_Capacity_(CC)': 995,\n",
" 'Vehicle_Reference': 3,\n",
+ " 'Age_Band_of_Driver': 4,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 4,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 2,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 4,\n",
+ " 'Vehicle_Manoeuvre': 3,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b5c6'),\n",
- " 'loc': {'coordinates': [-0.725241, 52.010088], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 4,\n",
- " '1st_Road_Number': 4034,\n",
+ " 'Junction_Detail': 0,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016712',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.010088,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S004092',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 6,\n",
" '2nd_Road_Class': -1,\n",
- " '2nd_Road_Number': 0,\n",
- " 'Accident_Index': '201243S066092',\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 6,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 1,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.725241,\n",
+ " 'Junction_Control': -1,\n",
+ " 'Speed_limit': 30,\n",
+ " 'Date': '01/09/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 9, 1, 17, 10),\n",
+ " 'Number_of_Casualties': 2,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.725241, 52.010088]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b6d8'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 1,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '18/09/2012',\n",
- " 'Datetime': datetime.datetime(2012, 9, 18, 19, 39),\n",
- " 'Day_of_Week': 3,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': -1,\n",
- " 'Junction_Detail': 0,\n",
- " 'LSOA_of_Accident_Location': 'E01016712',\n",
- " 'Latitude': 52.014025,\n",
- " 'Light_Conditions': 4,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 487130,\n",
- " 'Location_Northing_OSGR': 235830,\n",
- " 'Longitude': -0.731832,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 3,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 60,\n",
+ " '1st_Road_Number': 4034,\n",
" 'Time': '19:39',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 0,\n",
- " 'Age_Band_of_Driver': -1,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': -1,\n",
- " 'Driver_IMD_Decile': -1,\n",
- " 'Engine_Capacity_(CC)': -1,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 0,\n",
+ " 'Location_Northing_OSGR': 235830,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 3,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 487130,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 3,\n",
+ " 'Light_Conditions': 4,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': -1,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': -1,\n",
- " 'Sex_of_Driver': 3,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': -1,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 5,\n",
- " 'Age_of_Vehicle': 13,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 7,\n",
- " 'Engine_Capacity_(CC)': 1149,\n",
+ " 'Age_Band_of_Driver': -1,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 0,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 3,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': -1,\n",
+ " 'Propulsion_Code': -1,\n",
+ " 'Age_of_Vehicle': -1,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 7,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1149,\n",
" 'Vehicle_Reference': 2,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': 6,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 5,\n",
- " 'Engine_Capacity_(CC)': 2204,\n",
+ " 'Age_Band_of_Driver': 5,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 13,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 5,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 2204,\n",
" 'Vehicle_Reference': 3,\n",
+ " 'Age_Band_of_Driver': 7,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': 6,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b6d8'),\n",
- " 'loc': {'coordinates': [-0.731832, 52.014025], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 4,\n",
- " '1st_Road_Number': 4034,\n",
- " '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1014,\n",
- " 'Accident_Index': '201243S036012',\n",
+ " 'Junction_Detail': 0,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
+ " 'LSOA_of_Accident_Location': 'E01016712',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.014025,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S066092',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 4,\n",
+ " '2nd_Road_Class': -1,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 7,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.731832,\n",
+ " 'Junction_Control': -1,\n",
+ " 'Speed_limit': 60,\n",
+ " 'Date': '18/09/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 9, 18, 19, 39),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.731832, 52.014025]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b649'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 7,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '08/01/2012',\n",
- " 'Datetime': datetime.datetime(2012, 1, 8, 16, 3),\n",
- " 'Day_of_Week': 1,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 3,\n",
- " 'LSOA_of_Accident_Location': 'E01016712',\n",
- " 'Latitude': 52.010151,\n",
- " 'Light_Conditions': 7,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 487190,\n",
- " 'Location_Northing_OSGR': 235400,\n",
- " 'Longitude': -0.731068,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 60,\n",
+ " '1st_Road_Number': 4034,\n",
" 'Time': '16:03',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 5,\n",
- " 'Age_of_Vehicle': 12,\n",
- " 'Driver_Home_Area_Type': -1,\n",
- " 'Driver_IMD_Decile': -1,\n",
- " 'Engine_Capacity_(CC)': 1997,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 1014,\n",
+ " 'Location_Northing_OSGR': 235400,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 487190,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 1,\n",
+ " 'Light_Conditions': 7,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': -1,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 1,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 3,\n",
" 'Skidding_and_Overturning': 1,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1997,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': 6,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 3,\n",
- " 'Engine_Capacity_(CC)': 1968,\n",
+ " 'Age_Band_of_Driver': 5,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 3,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': -1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 12,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 3,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 1,\n",
- " 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 10,\n",
+ " 'Engine_Capacity_(CC)': 1968,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 7,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': 6,\n",
+ " 'Vehicle_Manoeuvre': 10,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b649'),\n",
- " 'loc': {'coordinates': [-0.731068, 52.010151], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 4,\n",
- " '1st_Road_Number': 4034,\n",
- " '2nd_Road_Class': -1,\n",
- " '2nd_Road_Number': 0,\n",
- " 'Accident_Index': '201243S033052',\n",
- " 'Accident_Severity': 1,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 6,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 1,\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016712',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.010151,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S036012',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 4,\n",
+ " '2nd_Road_Class': 6,\n",
+ " 'Accident_Severity': 3,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.731068,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 60,\n",
+ " 'Date': '08/01/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 1, 8, 16, 3),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.731068, 52.010151]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b63c'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 1,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 2,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 2,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 3,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 3,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 2,\n",
+ " 'Age_Band_of_Casualty': 2,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 2,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 2,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 4,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 4,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 2,\n",
+ " 'Age_Band_of_Casualty': 2,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 11,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1},\n",
+ " {'Casualty_Severity': 1,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 1,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 11,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '05/05/2012',\n",
- " 'Datetime': datetime.datetime(2012, 5, 5, 10, 45),\n",
- " 'Day_of_Week': 7,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': -1,\n",
- " 'Junction_Detail': 0,\n",
- " 'LSOA_of_Accident_Location': 'E01016712',\n",
- " 'Latitude': 52.012404,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 487150,\n",
- " 'Location_Northing_OSGR': 235650,\n",
- " 'Longitude': -0.731587,\n",
- " 'Number_of_Casualties': 4,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 60,\n",
+ " '1st_Road_Number': 4034,\n",
" 'Time': '10:45',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': 7,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 10,\n",
- " 'Engine_Capacity_(CC)': 1769,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 0,\n",
+ " 'Location_Northing_OSGR': 235650,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 487150,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 7,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 10,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 12,\n",
+ " 'Engine_Capacity_(CC)': 1769,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 11,\n",
- " 'Age_of_Vehicle': 11,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 5,\n",
- " 'Engine_Capacity_(CC)': 998,\n",
+ " 'Age_Band_of_Driver': 7,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 0,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
+ " 'Age_of_Vehicle': 7,\n",
+ " 'Vehicle_Manoeuvre': 12,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 5,\n",
+ " 'Vehicle_Leaving_Carriageway': 7,\n",
+ " 'Junction_Location': 0,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 7,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 998,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 11,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 11,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b63c'),\n",
- " 'loc': {'coordinates': [-0.731587, 52.012404], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 4,\n",
- " '1st_Road_Number': 4034,\n",
- " '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1014,\n",
- " 'Accident_Index': '201243S093072',\n",
- " 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 5,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Junction_Detail': 0,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
+ " 'LSOA_of_Accident_Location': 'E01016712',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.012404,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S033052',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 4,\n",
+ " '2nd_Road_Class': -1,\n",
+ " 'Accident_Severity': 1,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.731587,\n",
+ " 'Junction_Control': -1,\n",
+ " 'Speed_limit': 60,\n",
+ " 'Date': '05/05/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 5, 5, 10, 45),\n",
+ " 'Number_of_Casualties': 4,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.731587, 52.012404]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b75d'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 5,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 6,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 2,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 3,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 3,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 2,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 6,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 1,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 4,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 4,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 1,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 6,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '20/07/2012',\n",
- " 'Datetime': datetime.datetime(2012, 7, 20, 13, 25),\n",
- " 'Day_of_Week': 6,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 3,\n",
- " 'LSOA_of_Accident_Location': 'E01016712',\n",
- " 'Latitude': 52.010061,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 487190,\n",
- " 'Location_Northing_OSGR': 235390,\n",
- " 'Longitude': -0.73107,\n",
- " 'Number_of_Casualties': 4,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 60,\n",
+ " '1st_Road_Number': 4034,\n",
" 'Time': '13:25',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 5,\n",
- " 'Age_of_Vehicle': 8,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 2,\n",
- " 'Engine_Capacity_(CC)': 1388,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 1014,\n",
+ " 'Location_Northing_OSGR': 235390,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 487190,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 6,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 2,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 8,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Engine_Capacity_(CC)': 1388,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 14,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 6,\n",
- " 'Engine_Capacity_(CC)': 1398,\n",
+ " 'Age_Band_of_Driver': 5,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 1,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
+ " 'Age_of_Vehicle': 8,\n",
+ " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 6,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1398,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 6,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 14,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b75d'),\n",
- " 'loc': {'coordinates': [-0.73107, 52.010061], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 3,\n",
- " '1st_Road_Number': 5,\n",
- " '2nd_Road_Class': -1,\n",
- " '2nd_Road_Number': 0,\n",
- " 'Accident_Index': '201243S130072',\n",
- " 'Accident_Severity': 2,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 5,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016712',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.010061,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S093072',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 4,\n",
+ " '2nd_Road_Class': 6,\n",
+ " 'Accident_Severity': 3,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.73107,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 60,\n",
+ " 'Date': '20/07/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 7, 20, 13, 25),\n",
+ " 'Number_of_Casualties': 4,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.73107, 52.010061]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b819'),\n",
+ " 'Casualties': [{'Casualty_Severity': 2,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 2,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 5,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 4,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 1,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 1,\n",
+ " 'Age_Band_of_Casualty': 4,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1}],\n",
- " 'Date': '31/07/2012',\n",
- " 'Datetime': datetime.datetime(2012, 7, 31, 23, 40),\n",
- " 'Day_of_Week': 3,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': -1,\n",
- " 'Junction_Detail': 0,\n",
- " 'LSOA_of_Accident_Location': 'E01016712',\n",
- " 'Latitude': 52.012227,\n",
- " 'Light_Conditions': 4,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 487130,\n",
- " 'Location_Northing_OSGR': 235630,\n",
- " 'Longitude': -0.731883,\n",
- " 'Number_of_Casualties': 2,\n",
- " 'Number_of_Vehicles': 1,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 3,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 70,\n",
+ " '1st_Road_Number': 5,\n",
" 'Time': '23:40',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 4,\n",
- " 'Age_Band_of_Driver': 5,\n",
- " 'Age_of_Vehicle': 9,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 9,\n",
- " 'Engine_Capacity_(CC)': 1149,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 7,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': 0,\n",
+ " 'Location_Northing_OSGR': 235630,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 1,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 487130,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 3,\n",
+ " 'Light_Conditions': 4,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 2,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 2,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 2,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1149,\n",
" 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 5,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 7,\n",
+ " '1st_Point_of_Impact': 4,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 9,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b819'),\n",
- " 'loc': {'coordinates': [-0.731883, 52.012227], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 156,\n",
- " '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1014,\n",
- " 'Accident_Index': '201243S059012',\n",
- " 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 8,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Junction_Detail': 0,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
+ " 'LSOA_of_Accident_Location': 'E01016712',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.012227,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S130072',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 3,\n",
+ " '2nd_Road_Class': -1,\n",
+ " 'Accident_Severity': 2,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.731883,\n",
+ " 'Junction_Control': -1,\n",
+ " 'Speed_limit': 70,\n",
+ " 'Date': '31/07/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 7, 31, 23, 40),\n",
+ " 'Number_of_Casualties': 2,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.731883, 52.012227]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b6b2'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 8,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 6,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 2,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 2,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2},\n",
- " {'Age_Band_of_Casualty': 6,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 1,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 2,\n",
- " 'Casualty_Reference': 3,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 3,\n",
+ " 'Casualty_Home_Area_Type': 2,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 1,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '22/01/2012',\n",
- " 'Datetime': datetime.datetime(2012, 1, 22, 11, 30),\n",
- " 'Day_of_Week': 1,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 2,\n",
- " 'Junction_Detail': 3,\n",
- " 'LSOA_of_Accident_Location': 'E01016712',\n",
- " 'Latitude': 52.008687,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 486780,\n",
- " 'Location_Northing_OSGR': 235230,\n",
- " 'Longitude': -0.737083,\n",
- " 'Number_of_Casualties': 3,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 5,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 40,\n",
+ " '1st_Road_Number': 156,\n",
" 'Time': '11:30',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 4,\n",
- " 'Age_Band_of_Driver': 8,\n",
- " 'Age_of_Vehicle': 5,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 1,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 1014,\n",
+ " 'Location_Northing_OSGR': 235230,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 486780,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 1,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 1,\n",
+ " 'Vehicle_Leaving_Carriageway': 7,\n",
+ " 'Junction_Location': 8,\n",
+ " 'Skidding_and_Overturning': 0,\n",
+ " 'Towing_and_Articulation': 0,\n",
+ " 'Vehicle_Location-Restricted_Lane': 0,\n",
" 'Engine_Capacity_(CC)': 1998,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 8,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 10,\n",
+ " '1st_Point_of_Impact': 4,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 8,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 2,\n",
+ " 'Age_of_Vehicle': 5,\n",
+ " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 7,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 9,\n",
- " 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 3,\n",
- " 'Driver_Home_Area_Type': 2,\n",
- " 'Driver_IMD_Decile': 9,\n",
" 'Engine_Capacity_(CC)': 2179,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 6,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 1,\n",
+ " 'Driver_Home_Area_Type': 2,\n",
" 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 2,\n",
- " 'Skidding_and_Overturning': 0,\n",
- " 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
- " 'Vehicle_Location-Restricted_Lane': 0,\n",
+ " 'Age_of_Vehicle': 3,\n",
" 'Vehicle_Manoeuvre': 18,\n",
- " 'Vehicle_Reference': 2,\n",
- " 'Vehicle_Type': 9,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 4,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b6b2'),\n",
- " 'loc': {'coordinates': [-0.737083, 52.008687], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 3,\n",
- " '1st_Road_Number': 5,\n",
- " '2nd_Road_Class': 3,\n",
- " '2nd_Road_Number': 5,\n",
- " 'Accident_Index': '201243S021052',\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016712',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.008687,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S059012',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 5,\n",
+ " '1st_Road_Class': 5,\n",
+ " '2nd_Road_Class': 6,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 4,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.737083,\n",
+ " 'Junction_Control': 2,\n",
+ " 'Speed_limit': 40,\n",
+ " 'Date': '22/01/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 1, 22, 11, 30),\n",
+ " 'Number_of_Casualties': 3,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.737083, 52.008687]},\n",
+ " 'Weather_Conditions': 4},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b604'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 4,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2},\n",
- " {'Age_Band_of_Casualty': 8,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 1,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 2,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 2,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 1,\n",
+ " 'Age_Band_of_Casualty': 8,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '03/05/2012',\n",
- " 'Datetime': datetime.datetime(2012, 5, 3, 11, 55),\n",
- " 'Day_of_Week': 5,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 5,\n",
- " 'LSOA_of_Accident_Location': 'E01016712',\n",
- " 'Latitude': 52.011805,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 486960,\n",
- " 'Location_Northing_OSGR': 235580,\n",
- " 'Longitude': -0.734372,\n",
- " 'Number_of_Casualties': 2,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 3,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 70,\n",
+ " '1st_Road_Number': 5,\n",
" 'Time': '11:55',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 4,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 9,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 8,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': 5,\n",
+ " 'Location_Northing_OSGR': 235580,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 486960,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 5,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 8,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 5,\n",
+ " 'Skidding_and_Overturning': 1,\n",
+ " 'Towing_and_Articulation': 0,\n",
+ " 'Vehicle_Location-Restricted_Lane': 0,\n",
" 'Engine_Capacity_(CC)': 1299,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 6,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 4,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 5,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
+ " 'Age_of_Vehicle': 9,\n",
+ " 'Vehicle_Manoeuvre': 11,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 8,\n",
+ " 'Vehicle_Leaving_Carriageway': 1,\n",
+ " 'Junction_Location': 5,\n",
" 'Skidding_and_Overturning': 1,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 11,\n",
- " 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 3,\n",
- " 'Age_Band_of_Driver': 4,\n",
- " 'Age_of_Vehicle': 2,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 8,\n",
" 'Engine_Capacity_(CC)': 1364,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 4,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 2,\n",
+ " '1st_Point_of_Impact': 3,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 1,\n",
- " 'Junction_Location': 5,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
- " 'Skidding_and_Overturning': 1,\n",
- " 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 1,\n",
- " 'Vehicle_Location-Restricted_Lane': 0,\n",
+ " 'Age_of_Vehicle': 2,\n",
" 'Vehicle_Manoeuvre': 18,\n",
- " 'Vehicle_Reference': 2,\n",
- " 'Vehicle_Type': 9,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 2,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b604'),\n",
- " 'loc': {'coordinates': [-0.734372, 52.011805], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 4,\n",
- " '1st_Road_Number': 4034,\n",
- " '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1069,\n",
- " 'Accident_Index': '201243S019032',\n",
+ " 'Junction_Detail': 5,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
+ " 'LSOA_of_Accident_Location': 'E01016712',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.011805,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S021052',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 3,\n",
+ " '2nd_Road_Class': 3,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 6,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.734372,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 70,\n",
+ " 'Date': '03/05/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 5, 3, 11, 55),\n",
+ " 'Number_of_Casualties': 2,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.734372, 52.011805]},\n",
+ " 'Weather_Conditions': 2},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b5fb'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 2,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 1,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 1,\n",
+ " 'Age_Band_of_Casualty': 2,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1}],\n",
- " 'Date': '03/03/2012',\n",
- " 'Datetime': datetime.datetime(2012, 3, 3, 22, 30),\n",
- " 'Day_of_Week': 7,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 3,\n",
- " 'LSOA_of_Accident_Location': 'E01016842',\n",
- " 'Latitude': 52.018544,\n",
- " 'Light_Conditions': 4,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 486970,\n",
- " 'Location_Northing_OSGR': 236330,\n",
- " 'Longitude': -0.734036,\n",
- " 'Number_of_Casualties': 2,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 40,\n",
+ " '1st_Road_Number': 4034,\n",
" 'Time': '22:30',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 6,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 8,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 1069,\n",
+ " 'Location_Northing_OSGR': 236330,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 486970,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 7,\n",
+ " 'Light_Conditions': 4,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 8,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 6,\n",
+ " 'Skidding_and_Overturning': 0,\n",
+ " 'Towing_and_Articulation': 0,\n",
+ " 'Vehicle_Location-Restricted_Lane': 0,\n",
" 'Engine_Capacity_(CC)': 998,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 6,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
+ " 'Age_of_Vehicle': 6,\n",
+ " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 6,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 9,\n",
- " 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 3,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': 6,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 6,\n",
" 'Engine_Capacity_(CC)': 1896,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 7,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 3,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 1,\n",
- " 'Junction_Location': 1,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 1,\n",
- " 'Skidding_and_Overturning': 0,\n",
- " 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
- " 'Vehicle_Location-Restricted_Lane': 0,\n",
+ " 'Age_of_Vehicle': 6,\n",
" 'Vehicle_Manoeuvre': 18,\n",
- " 'Vehicle_Reference': 2,\n",
- " 'Vehicle_Type': 9,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b5fb'),\n",
- " 'loc': {'coordinates': [-0.734036, 52.018544], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 6,\n",
- " '1st_Road_Number': 1069,\n",
- " '2nd_Road_Class': -1,\n",
- " '2nd_Road_Number': 0,\n",
- " 'Accident_Index': '201243S017052',\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016842',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.018544,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S019032',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 4,\n",
+ " '2nd_Road_Class': 6,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 5,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
- " 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.734036,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 40,\n",
+ " 'Date': '03/03/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 3, 3, 22, 30),\n",
+ " 'Number_of_Casualties': 2,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.734036, 52.018544]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b5f3'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
+ " 'Casualty_Class': 1,\n",
" 'Casualty_Type': 1,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 5,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 5,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 5,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2},\n",
- " {'Age_Band_of_Casualty': 5,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 1,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 3,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 3,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 1,\n",
+ " 'Age_Band_of_Casualty': 5,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '04/05/2012',\n",
- " 'Datetime': datetime.datetime(2012, 5, 4, 17, 30),\n",
- " 'Day_of_Week': 6,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 2,\n",
- " 'Junction_Control': -1,\n",
- " 'Junction_Detail': 0,\n",
- " 'LSOA_of_Accident_Location': 'E01016844',\n",
- " 'Latitude': 52.016623,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 486610,\n",
- " 'Location_Northing_OSGR': 236110,\n",
- " 'Longitude': -0.739337,\n",
- " 'Number_of_Casualties': 3,\n",
- " 'Number_of_Vehicles': 3,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 30,\n",
+ " '1st_Road_Number': 1069,\n",
" 'Time': '17:30',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 5,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 1,\n",
- " 'Engine_Capacity_(CC)': -1,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 0,\n",
+ " 'Location_Northing_OSGR': 236110,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 3,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 486610,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 6,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 1,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': -1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': -1,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 1,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
" 'Age_Band_of_Driver': 5,\n",
- " 'Age_of_Vehicle': 11,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 3,\n",
- " 'Engine_Capacity_(CC)': 1199,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 1,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': -1,\n",
+ " 'Age_of_Vehicle': -1,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 3,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 4,\n",
+ " 'Engine_Capacity_(CC)': 1199,\n",
" 'Vehicle_Reference': 2,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 4,\n",
- " 'Age_Band_of_Driver': -1,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': -1,\n",
- " 'Driver_IMD_Decile': -1,\n",
- " 'Engine_Capacity_(CC)': -1,\n",
+ " 'Age_Band_of_Driver': 5,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 11,\n",
+ " 'Vehicle_Manoeuvre': 4,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': -1,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': -1,\n",
- " 'Sex_of_Driver': 3,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': -1,\n",
" 'Vehicle_Reference': 3,\n",
+ " 'Age_Band_of_Driver': -1,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 4,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 3,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': -1,\n",
+ " 'Propulsion_Code': -1,\n",
+ " 'Age_of_Vehicle': -1,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b5f3'),\n",
- " 'loc': {'coordinates': [-0.739337, 52.016623], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 156,\n",
+ " 'Junction_Detail': 0,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016844',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.016623,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 2,\n",
+ " 'Accident_Index': '201243S017052',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 6,\n",
" '2nd_Road_Class': -1,\n",
- " '2nd_Road_Number': 0,\n",
- " 'Accident_Index': '201243S133011',\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 6,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.739337,\n",
+ " 'Junction_Control': -1,\n",
+ " 'Speed_limit': 30,\n",
+ " 'Date': '04/05/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 5, 4, 17, 30),\n",
+ " 'Number_of_Casualties': 3,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.739337, 52.016623]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b824'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1}],\n",
- " 'Date': '23/01/2012',\n",
- " 'Datetime': datetime.datetime(2012, 1, 23, 15, 5),\n",
- " 'Day_of_Week': 2,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': -1,\n",
- " 'Junction_Detail': 0,\n",
- " 'LSOA_of_Accident_Location': 'E01016844',\n",
- " 'Latitude': 52.01705,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 486180,\n",
- " 'Location_Northing_OSGR': 236150,\n",
- " 'Longitude': -0.745591,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 1,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 3,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 70,\n",
+ " '1st_Road_Number': 156,\n",
" 'Time': '15:05',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 11,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 2,\n",
- " 'Engine_Capacity_(CC)': 1497,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 4,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': 0,\n",
+ " 'Location_Northing_OSGR': 236150,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 1,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 486180,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 2,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 2,\n",
+ " 'Vehicle_Leaving_Carriageway': 4,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 4,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1497,\n",
" 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 6,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 4,\n",
+ " '1st_Point_of_Impact': 1,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 11,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b824'),\n",
- " 'loc': {'coordinates': [-0.745591, 52.01705], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 3,\n",
- " '1st_Road_Number': 421,\n",
- " '2nd_Road_Class': 3,\n",
- " '2nd_Road_Number': 421,\n",
- " 'Accident_Index': '201243S102032',\n",
+ " 'Junction_Detail': 0,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016844',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.01705,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S133011',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
+ " '2nd_Road_Class': -1,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 5,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.745591,\n",
+ " 'Junction_Control': -1,\n",
+ " 'Speed_limit': 70,\n",
+ " 'Date': '23/01/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 1, 23, 15, 5),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.745591, 52.01705]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b78b'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 5,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 4,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 3,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 4,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '20/03/2012',\n",
- " 'Datetime': datetime.datetime(2012, 3, 20, 17, 30),\n",
- " 'Day_of_Week': 3,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 1,\n",
- " 'LSOA_of_Accident_Location': 'E01016844',\n",
- " 'Latitude': 52.016506,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 486210,\n",
- " 'Location_Northing_OSGR': 236090,\n",
- " 'Longitude': -0.745169,\n",
- " 'Number_of_Casualties': 2,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 1,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 70,\n",
+ " '1st_Road_Number': 421,\n",
" 'Time': '17:30',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 3,\n",
- " 'Age_Band_of_Driver': 5,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 9,\n",
- " 'Engine_Capacity_(CC)': -1,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 1,\n",
+ " '2nd_Road_Number': 421,\n",
+ " 'Location_Northing_OSGR': 236090,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 486210,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 3,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 8,\n",
- " 'Propulsion_Code': -1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 9,\n",
- " 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': 4,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 8,\n",
" 'Engine_Capacity_(CC)': -1,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 5,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 3,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 8,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': -1,\n",
- " 'Sex_of_Driver': 1,\n",
+ " 'Age_of_Vehicle': -1,\n",
+ " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 8,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 8,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Engine_Capacity_(CC)': -1,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 4,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
" 'Vehicle_Type': 3,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': -1,\n",
+ " 'Age_of_Vehicle': -1,\n",
+ " 'Vehicle_Manoeuvre': 9,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b78b'),\n",
- " 'loc': {'coordinates': [-0.745169, 52.016506], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 3,\n",
- " '1st_Road_Number': 421,\n",
- " '2nd_Road_Class': 5,\n",
- " '2nd_Road_Number': 156,\n",
- " 'Accident_Index': '201243S057042',\n",
- " 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 6,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 1,\n",
- " 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
- " 'Casualty_Type': 9,\n",
- " 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
- " 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '17/04/2012',\n",
- " 'Datetime': datetime.datetime(2012, 4, 17, 17, 40),\n",
- " 'Day_of_Week': 3,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
" 'Junction_Detail': 1,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
" 'LSOA_of_Accident_Location': 'E01016844',\n",
- " 'Latitude': 52.016509,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 486190,\n",
- " 'Location_Northing_OSGR': 236090,\n",
- " 'Longitude': -0.74546,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
" 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.016506,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S102032',\n",
" 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
- " 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 1,\n",
+ " '1st_Road_Class': 3,\n",
+ " '2nd_Road_Class': 3,\n",
+ " 'Accident_Severity': 3,\n",
" 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.745169,\n",
+ " 'Junction_Control': 4,\n",
" 'Speed_limit': 70,\n",
+ " 'Date': '20/03/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 3, 20, 17, 30),\n",
+ " 'Number_of_Casualties': 2,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.745169, 52.016506]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b6a9'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
+ " 'Casualty_Class': 2,\n",
+ " 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
+ " 'Pedestrian_Location': 0,\n",
+ " 'Car_Passenger': 1,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
+ " 'Pedestrian_Road_Maintenance_Worker': 0,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
+ " 'Road_Surface_Conditions': 1,\n",
+ " '1st_Road_Number': 421,\n",
" 'Time': '17:40',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': -1,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': -1,\n",
- " 'Driver_IMD_Decile': -1,\n",
- " 'Engine_Capacity_(CC)': -1,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 1,\n",
+ " '2nd_Road_Number': 156,\n",
+ " 'Location_Northing_OSGR': 236090,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 486190,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 3,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': -1,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 1,\n",
- " 'Propulsion_Code': -1,\n",
- " 'Sex_of_Driver': 3,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': -1,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': 11,\n",
- " 'Age_of_Vehicle': 13,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 7,\n",
- " 'Engine_Capacity_(CC)': 1598,\n",
+ " 'Age_Band_of_Driver': -1,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 3,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': -1,\n",
+ " 'Propulsion_Code': -1,\n",
+ " 'Age_of_Vehicle': -1,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 7,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 1,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1598,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 11,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 13,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b6a9'),\n",
- " 'loc': {'coordinates': [-0.74546, 52.016509], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 3,\n",
- " '1st_Road_Number': 421,\n",
+ " 'Junction_Detail': 1,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016844',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.016509,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S057042',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 3,\n",
" '2nd_Road_Class': 5,\n",
- " '2nd_Road_Number': 156,\n",
- " 'Accident_Index': '201243S001062',\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 6,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.74546,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 70,\n",
+ " 'Date': '17/04/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 4, 17, 17, 40),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.74546, 52.016509]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b5b8'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '02/06/2012',\n",
- " 'Datetime': datetime.datetime(2012, 6, 2, 11, 0),\n",
- " 'Day_of_Week': 7,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 2,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 1,\n",
- " 'LSOA_of_Accident_Location': 'E01016844',\n",
- " 'Latitude': 52.016689,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 486190,\n",
- " 'Location_Northing_OSGR': 236110,\n",
- " 'Longitude': -0.745455,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 1,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 70,\n",
+ " '1st_Road_Number': 421,\n",
" 'Time': '11:00',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 3,\n",
- " 'Age_Band_of_Driver': -1,\n",
- " 'Age_of_Vehicle': 1,\n",
- " 'Driver_Home_Area_Type': -1,\n",
- " 'Driver_IMD_Decile': -1,\n",
- " 'Engine_Capacity_(CC)': 2402,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 8,\n",
- " 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 1,\n",
- " 'Skidding_and_Overturning': 0,\n",
- " 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
- " 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Road_Type': 1,\n",
+ " '2nd_Road_Number': 156,\n",
+ " 'Location_Northing_OSGR': 236110,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 486190,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 7,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': -1,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 8,\n",
+ " 'Skidding_and_Overturning': 0,\n",
+ " 'Towing_and_Articulation': 0,\n",
+ " 'Vehicle_Location-Restricted_Lane': 0,\n",
+ " 'Engine_Capacity_(CC)': 2402,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 19,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 4,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 16,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 2,\n",
- " 'Engine_Capacity_(CC)': 1527,\n",
+ " 'Age_Band_of_Driver': -1,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 3,\n",
+ " 'Vehicle_Type': 19,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 8,\n",
+ " 'Driver_Home_Area_Type': -1,\n",
" 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 2,\n",
+ " 'Age_of_Vehicle': 1,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 2,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 8,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Engine_Capacity_(CC)': 1527,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 6,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 4,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': 16,\n",
+ " 'Vehicle_Manoeuvre': 9,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b5b8'),\n",
- " 'loc': {'coordinates': [-0.745455, 52.016689], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 3,\n",
- " '1st_Road_Number': 421,\n",
- " '2nd_Road_Class': -1,\n",
- " '2nd_Road_Number': 0,\n",
- " 'Accident_Index': '201243S024092',\n",
+ " 'Junction_Detail': 1,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016844',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.016689,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 2,\n",
+ " 'Accident_Index': '201243S001062',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 3,\n",
+ " '2nd_Road_Class': 5,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 4,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.745455,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 70,\n",
+ " 'Date': '02/06/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 6, 2, 11, 0),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.745455, 52.016689]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b612'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 3,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 4,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1}],\n",
- " 'Date': '07/09/2012',\n",
- " 'Datetime': datetime.datetime(2012, 9, 7, 9, 17),\n",
- " 'Day_of_Week': 6,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': -1,\n",
- " 'Junction_Detail': 0,\n",
- " 'LSOA_of_Accident_Location': 'E01016844',\n",
- " 'Latitude': 52.016135,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 486280,\n",
- " 'Location_Northing_OSGR': 236050,\n",
- " 'Longitude': -0.744159,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 1,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 3,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 70,\n",
+ " '1st_Road_Number': 421,\n",
" 'Time': '09:17',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 0,\n",
- " 'Age_Band_of_Driver': 4,\n",
- " 'Age_of_Vehicle': 11,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 8,\n",
- " 'Engine_Capacity_(CC)': 124,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 2,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': 0,\n",
+ " 'Location_Northing_OSGR': 236050,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 1,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 486280,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 6,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 8,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 1,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 124,\n",
" 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 4,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 0,\n",
" 'Vehicle_Type': 3,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 2,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 11,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b612'),\n",
- " 'loc': {'coordinates': [-0.744159, 52.016135], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 129,\n",
+ " 'Junction_Detail': 0,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016844',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.016135,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S024092',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 3,\n",
" '2nd_Road_Class': -1,\n",
- " '2nd_Road_Number': 0,\n",
- " 'Accident_Index': '201243S001022',\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 5,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.744159,\n",
+ " 'Junction_Control': -1,\n",
+ " 'Speed_limit': 70,\n",
+ " 'Date': '07/09/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 9, 7, 9, 17),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.744159, 52.016135]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b5b5'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 1,\n",
+ " 'Vehicle_Reference': 3,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 5,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 3}],\n",
- " 'Date': '02/02/2012',\n",
- " 'Datetime': datetime.datetime(2012, 2, 2, 11, 58),\n",
- " 'Day_of_Week': 5,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': -1,\n",
- " 'Junction_Detail': 0,\n",
- " 'LSOA_of_Accident_Location': 'E01016712',\n",
- " 'Latitude': 52.009384,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 486340,\n",
- " 'Location_Northing_OSGR': 235300,\n",
- " 'Longitude': -0.743474,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 3,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 60,\n",
+ " '1st_Road_Number': 129,\n",
" 'Time': '11:58',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 4,\n",
- " 'Age_Band_of_Driver': 10,\n",
- " 'Age_of_Vehicle': 3,\n",
- " 'Driver_Home_Area_Type': 2,\n",
- " 'Driver_IMD_Decile': 8,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 0,\n",
+ " 'Location_Northing_OSGR': 235300,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 3,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 486340,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 5,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 8,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 0,\n",
+ " 'Skidding_and_Overturning': 0,\n",
+ " 'Towing_and_Articulation': 0,\n",
+ " 'Vehicle_Location-Restricted_Lane': 0,\n",
" 'Engine_Capacity_(CC)': 2204,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 10,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 4,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 0,\n",
+ " 'Driver_Home_Area_Type': 2,\n",
" 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 2,\n",
+ " 'Age_of_Vehicle': 3,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 7,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 0,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
- " 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': 5,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 7,\n",
" 'Engine_Capacity_(CC)': 1560,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 7,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 2,\n",
- " 'Junction_Location': 0,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 2,\n",
+ " 'Age_of_Vehicle': 5,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 7,\n",
+ " 'Vehicle_Leaving_Carriageway': 2,\n",
+ " 'Junction_Location': 0,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
- " 'Vehicle_Reference': 2,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': 5,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 7,\n",
" 'Engine_Capacity_(CC)': -1,\n",
+ " 'Vehicle_Reference': 3,\n",
+ " 'Age_Band_of_Driver': 5,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
+ " 'Vehicle_Type': 1,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 2,\n",
- " 'Junction_Location': 0,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': -1,\n",
- " 'Sex_of_Driver': 1,\n",
- " 'Skidding_and_Overturning': 0,\n",
- " 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 2,\n",
- " 'Vehicle_Location-Restricted_Lane': 0,\n",
+ " 'Age_of_Vehicle': -1,\n",
" 'Vehicle_Manoeuvre': 18,\n",
- " 'Vehicle_Reference': 3,\n",
- " 'Vehicle_Type': 1,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b5b5'),\n",
- " 'loc': {'coordinates': [-0.743474, 52.009384], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 129,\n",
- " '2nd_Road_Class': -1,\n",
- " '2nd_Road_Number': 0,\n",
- " 'Accident_Index': '201243S109042',\n",
- " 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 6,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
- " 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': -1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
- " 'Casualty_Type': 1,\n",
- " 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
- " 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '30/04/2012',\n",
- " 'Datetime': datetime.datetime(2012, 4, 30, 11, 50),\n",
- " 'Day_of_Week': 2,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': -1,\n",
" 'Junction_Detail': 0,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
" 'LSOA_of_Accident_Location': 'E01016712',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
" 'Latitude': 52.009384,\n",
- " 'Light_Conditions': 1,\n",
" 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 486340,\n",
- " 'Location_Northing_OSGR': 235300,\n",
- " 'Longitude': -0.743474,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S001022',\n",
" 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
- " 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 6,\n",
+ " '1st_Road_Class': 5,\n",
+ " '2nd_Road_Class': -1,\n",
+ " 'Accident_Severity': 3,\n",
" 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.743474,\n",
+ " 'Junction_Control': -1,\n",
" 'Speed_limit': 60,\n",
+ " 'Date': '02/02/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 2, 2, 11, 58),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.743474, 52.009384]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b7ac'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
+ " 'Casualty_Class': 1,\n",
+ " 'Casualty_Type': 1,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': -1,\n",
+ " 'Pedestrian_Location': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
+ " 'Pedestrian_Road_Maintenance_Worker': 0,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
+ " 'Road_Surface_Conditions': 1,\n",
+ " '1st_Road_Number': 129,\n",
" 'Time': '11:50',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': -1,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': -1,\n",
- " 'Driver_IMD_Decile': -1,\n",
- " 'Engine_Capacity_(CC)': -1,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 0,\n",
+ " 'Location_Northing_OSGR': 235300,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 486340,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 2,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': -1,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': -1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
- " 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 4,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': -1,\n",
- " 'Driver_IMD_Decile': -1,\n",
" 'Engine_Capacity_(CC)': -1,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': -1,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 0,\n",
+ " 'Driver_Home_Area_Type': -1,\n",
" 'Propulsion_Code': -1,\n",
- " 'Sex_of_Driver': 1,\n",
+ " 'Age_of_Vehicle': -1,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': -1,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 0,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': -1,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 6,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 4,\n",
" 'Vehicle_Type': 1,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': -1,\n",
+ " 'Propulsion_Code': -1,\n",
+ " 'Age_of_Vehicle': -1,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b7ac'),\n",
- " 'loc': {'coordinates': [-0.743474, 52.009384], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 3,\n",
- " '1st_Road_Number': 421,\n",
- " '2nd_Road_Class': 3,\n",
- " '2nd_Road_Number': 5,\n",
- " 'Accident_Index': '201243S037052',\n",
+ " 'Junction_Detail': 0,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
+ " 'LSOA_of_Accident_Location': 'E01016712',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.009384,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S109042',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
+ " '2nd_Road_Class': -1,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 7,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.743474,\n",
+ " 'Junction_Control': -1,\n",
+ " 'Speed_limit': 60,\n",
+ " 'Date': '30/04/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 4, 30, 11, 50),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.743474, 52.009384]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b652'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 2,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 2,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 7,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '08/05/2012',\n",
- " 'Datetime': datetime.datetime(2012, 5, 8, 9, 33),\n",
- " 'Day_of_Week': 3,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 2,\n",
- " 'Junction_Detail': 1,\n",
- " 'LSOA_of_Accident_Location': 'E01016844',\n",
- " 'Latitude': 52.012764,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 486570,\n",
- " 'Location_Northing_OSGR': 235680,\n",
- " 'Longitude': -0.740028,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 1,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 70,\n",
+ " '1st_Road_Number': 421,\n",
" 'Time': '09:33',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 3,\n",
- " 'Age_Band_of_Driver': 5,\n",
- " 'Age_of_Vehicle': 12,\n",
- " 'Driver_Home_Area_Type': 2,\n",
- " 'Driver_IMD_Decile': 8,\n",
- " 'Engine_Capacity_(CC)': 1242,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 1,\n",
+ " '2nd_Road_Number': 5,\n",
+ " 'Location_Northing_OSGR': 235680,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 486570,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 3,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 8,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 8,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1242,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 4,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': 13,\n",
- " 'Driver_Home_Area_Type': 2,\n",
- " 'Driver_IMD_Decile': 7,\n",
- " 'Engine_Capacity_(CC)': 1598,\n",
+ " 'Age_Band_of_Driver': 5,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 3,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 3,\n",
+ " 'Driver_Home_Area_Type': 2,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
+ " 'Age_of_Vehicle': 12,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 7,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 3,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1598,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 7,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 4,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 2,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 13,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b652'),\n",
- " 'loc': {'coordinates': [-0.740028, 52.012764], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 156,\n",
- " '2nd_Road_Class': 5,\n",
- " '2nd_Road_Number': 9150,\n",
- " 'Accident_Index': '201243S138012',\n",
+ " 'Junction_Detail': 1,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
+ " 'LSOA_of_Accident_Location': 'E01016844',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.012764,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S037052',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 3,\n",
+ " '2nd_Road_Class': 3,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 5,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.740028,\n",
+ " 'Junction_Control': 2,\n",
+ " 'Speed_limit': 70,\n",
+ " 'Date': '08/05/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 5, 8, 9, 33),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.740028, 52.012764]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b836'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 5,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '27/01/2012',\n",
- " 'Datetime': datetime.datetime(2012, 1, 27, 13, 45),\n",
- " 'Day_of_Week': 6,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 2,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 1,\n",
- " 'LSOA_of_Accident_Location': 'E01016712',\n",
- " 'Latitude': 52.006689,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 486910,\n",
- " 'Location_Northing_OSGR': 235010,\n",
- " 'Longitude': -0.735245,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 1,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 40,\n",
+ " '1st_Road_Number': 156,\n",
" 'Time': '13:45',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': -1,\n",
- " 'Age_of_Vehicle': 2,\n",
- " 'Driver_Home_Area_Type': -1,\n",
- " 'Driver_IMD_Decile': -1,\n",
- " 'Engine_Capacity_(CC)': 1398,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 1,\n",
+ " '2nd_Road_Number': 9150,\n",
+ " 'Location_Northing_OSGR': 235010,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 486910,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 6,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': -1,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 1,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1398,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': 5,\n",
- " 'Age_of_Vehicle': 14,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 3,\n",
- " 'Engine_Capacity_(CC)': 1149,\n",
+ " 'Age_Band_of_Driver': -1,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 1,\n",
+ " 'Driver_Home_Area_Type': -1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
+ " 'Age_of_Vehicle': 2,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 3,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 3,\n",
+ " 'Engine_Capacity_(CC)': 1149,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 5,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 14,\n",
+ " 'Vehicle_Manoeuvre': 3,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b836'),\n",
- " 'loc': {'coordinates': [-0.735245, 52.006689], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 9150,\n",
- " '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1014,\n",
- " 'Accident_Index': '201243S080022',\n",
+ " 'Junction_Detail': 1,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016712',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.006689,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 2,\n",
+ " 'Accident_Index': '201243S138012',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
+ " '2nd_Road_Class': 5,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 6,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.735245,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 40,\n",
+ " 'Date': '27/01/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 1, 27, 13, 45),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.735245, 52.006689]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b71c'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 2,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 2,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 6,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 1,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 2,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 2,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 1,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 1}],\n",
- " 'Date': '21/02/2012',\n",
- " 'Datetime': datetime.datetime(2012, 2, 21, 9, 50),\n",
- " 'Day_of_Week': 3,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 2,\n",
- " 'Junction_Detail': 3,\n",
- " 'LSOA_of_Accident_Location': 'E01016712',\n",
- " 'Latitude': 52.005686,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 487000,\n",
- " 'Location_Northing_OSGR': 234900,\n",
- " 'Longitude': -0.733962,\n",
- " 'Number_of_Casualties': 2,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 3,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 40,\n",
+ " '1st_Road_Number': 9150,\n",
" 'Time': '09:50',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 5,\n",
- " 'Driver_Home_Area_Type': 2,\n",
- " 'Driver_IMD_Decile': 8,\n",
- " 'Engine_Capacity_(CC)': 1796,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': 1014,\n",
+ " 'Location_Northing_OSGR': 234900,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 487000,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 3,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 8,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 8,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Engine_Capacity_(CC)': 1796,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 9,\n",
- " 'Age_of_Vehicle': 14,\n",
- " 'Driver_Home_Area_Type': 3,\n",
- " 'Driver_IMD_Decile': 9,\n",
- " 'Engine_Capacity_(CC)': 3960,\n",
+ " 'Age_Band_of_Driver': 6,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 1,\n",
+ " 'Driver_Home_Area_Type': 2,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
+ " 'Age_of_Vehicle': 5,\n",
+ " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 3960,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 9,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 3,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 14,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b71c'),\n",
- " 'loc': {'coordinates': [-0.733962, 52.005686], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 129,\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
+ " 'LSOA_of_Accident_Location': 'E01016712',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.005686,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S080022',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
" '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1014,\n",
- " 'Accident_Index': '201243S122092',\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 6,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.733962,\n",
+ " 'Junction_Control': 2,\n",
+ " 'Speed_limit': 40,\n",
+ " 'Date': '21/02/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 2, 21, 9, 50),\n",
+ " 'Number_of_Casualties': 2,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.733962, 52.005686]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b7f5'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 2,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 2,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '29/09/2012',\n",
- " 'Datetime': datetime.datetime(2012, 9, 29, 9, 55),\n",
- " 'Day_of_Week': 7,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 3,\n",
- " 'LSOA_of_Accident_Location': 'E01016712',\n",
- " 'Latitude': 52.007537,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 486660,\n",
- " 'Location_Northing_OSGR': 235100,\n",
- " 'Longitude': -0.738864,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 60,\n",
+ " '1st_Road_Number': 129,\n",
" 'Time': '09:55',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 8,\n",
- " 'Age_of_Vehicle': 12,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 4,\n",
- " 'Engine_Capacity_(CC)': 1598,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 1014,\n",
+ " 'Location_Northing_OSGR': 235100,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 486660,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 7,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 4,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 8,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Engine_Capacity_(CC)': 1598,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 3,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 6,\n",
- " 'Driver_Home_Area_Type': 2,\n",
- " 'Driver_IMD_Decile': 8,\n",
- " 'Engine_Capacity_(CC)': 1596,\n",
+ " 'Age_Band_of_Driver': 8,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 8,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
+ " 'Age_of_Vehicle': 12,\n",
+ " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 8,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 8,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Engine_Capacity_(CC)': 1596,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 6,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 3,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 2,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 6,\n",
+ " 'Vehicle_Manoeuvre': 9,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b7f5'),\n",
- " 'loc': {'coordinates': [-0.738864, 52.007537], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 129,\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016712',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.007537,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S122092',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
" '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1030,\n",
- " 'Accident_Index': '201243S118112',\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 6,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.738864,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 60,\n",
+ " 'Date': '29/09/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 9, 29, 9, 55),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.738864, 52.007537]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b7e4'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 6,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '27/11/2012',\n",
- " 'Datetime': datetime.datetime(2012, 11, 27, 14, 45),\n",
- " 'Day_of_Week': 3,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 3,\n",
- " 'LSOA_of_Accident_Location': 'E01016712',\n",
- " 'Latitude': 52.007538,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 486650,\n",
- " 'Location_Northing_OSGR': 235100,\n",
- " 'Longitude': -0.739009,\n",
- " 'Number_of_Casualties': 2,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 60,\n",
+ " '1st_Road_Number': 129,\n",
" 'Time': '14:45',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 3,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 1,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 5,\n",
- " 'Engine_Capacity_(CC)': 875,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 1030,\n",
+ " 'Location_Northing_OSGR': 235100,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 486650,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 3,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 5,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 6,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Engine_Capacity_(CC)': 875,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 1,\n",
" 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 3,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 8,\n",
- " 'Engine_Capacity_(CC)': 1388,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 3,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 8,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
+ " 'Age_of_Vehicle': 1,\n",
+ " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 8,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 8,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1388,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 6,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 3,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b7e4'),\n",
- " 'loc': {'coordinates': [-0.739009, 52.007538], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 6,\n",
- " '1st_Road_Number': 1030,\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016712',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.007538,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S118112',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
" '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1030,\n",
- " 'Accident_Index': '201243S117122',\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 4,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.739009,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 60,\n",
+ " 'Date': '27/11/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 11, 27, 14, 45),\n",
+ " 'Number_of_Casualties': 2,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.739009, 52.007538]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b7df'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 4,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 4,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 1,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 1,\n",
+ " 'Age_Band_of_Casualty': 4,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 5,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 2,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 3,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 3,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 2,\n",
+ " 'Age_Band_of_Casualty': 5,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 4,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 2,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 4,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 4,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 2,\n",
+ " 'Age_Band_of_Casualty': 4,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1}],\n",
- " 'Date': '21/12/2012',\n",
- " 'Datetime': datetime.datetime(2012, 12, 21, 20, 32),\n",
- " 'Day_of_Week': 6,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 3,\n",
- " 'LSOA_of_Accident_Location': 'E01016711',\n",
- " 'Latitude': 51.999475,\n",
- " 'Light_Conditions': 4,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 486652,\n",
- " 'Location_Northing_OSGR': 234203,\n",
- " 'Longitude': -0.739207,\n",
- " 'Number_of_Casualties': 4,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 30,\n",
+ " '1st_Road_Number': 1030,\n",
" 'Time': '20:32',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 4,\n",
- " 'Age_of_Vehicle': 8,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 4,\n",
- " 'Engine_Capacity_(CC)': 1995,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 5,\n",
- " 'Junction_Location': 5,\n",
- " 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 1,\n",
- " 'Skidding_and_Overturning': 0,\n",
- " 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
- " 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 7,\n",
- " 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': 7,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 9,\n",
- " 'Engine_Capacity_(CC)': 1988,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 1030,\n",
+ " 'Location_Northing_OSGR': 234203,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 486652,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 6,\n",
+ " 'Light_Conditions': 4,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 4,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 5,\n",
+ " 'Skidding_and_Overturning': 0,\n",
+ " 'Towing_and_Articulation': 0,\n",
+ " 'Vehicle_Location-Restricted_Lane': 0,\n",
+ " 'Engine_Capacity_(CC)': 1995,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 4,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 5,\n",
- " 'Junction_Location': 1,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 2,\n",
+ " 'Age_of_Vehicle': 8,\n",
+ " 'Vehicle_Manoeuvre': 7,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1988,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 7,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 5,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': 7,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b7df'),\n",
- " 'loc': {'coordinates': [-0.739207, 51.999475], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 6,\n",
- " '1st_Road_Number': 1030,\n",
- " '2nd_Road_Class': -1,\n",
- " '2nd_Road_Number': 0,\n",
- " 'Accident_Index': '201243S065112',\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016711',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 51.999475,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S117122',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 6,\n",
+ " '2nd_Road_Class': 6,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 4,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.739207,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 30,\n",
+ " 'Date': '21/12/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 12, 21, 20, 32),\n",
+ " 'Number_of_Casualties': 4,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.739207, 51.999475]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b6d4'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 2,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 4,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1}],\n",
- " 'Date': '16/11/2012',\n",
- " 'Datetime': datetime.datetime(2012, 11, 16, 19, 40),\n",
- " 'Day_of_Week': 6,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': -1,\n",
- " 'Junction_Detail': 0,\n",
- " 'LSOA_of_Accident_Location': 'E01016738',\n",
- " 'Latitude': 52.001471,\n",
- " 'Light_Conditions': 4,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 485780,\n",
- " 'Location_Northing_OSGR': 234410,\n",
- " 'Longitude': -0.751854,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 1,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 30,\n",
+ " '1st_Road_Number': 1030,\n",
" 'Time': '19:40',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 0,\n",
- " 'Age_Band_of_Driver': 4,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 1,\n",
- " 'Engine_Capacity_(CC)': 49,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 0,\n",
+ " 'Location_Northing_OSGR': 234410,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 1,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 485780,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 6,\n",
+ " 'Light_Conditions': 4,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 1,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 49,\n",
" 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 4,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 0,\n",
" 'Vehicle_Type': 2,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': -1,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b6d4'),\n",
- " 'loc': {'coordinates': [-0.751854, 52.001471], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 6,\n",
- " '1st_Road_Number': 9090,\n",
- " '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1030,\n",
- " 'Accident_Index': '201243S090052',\n",
+ " 'Junction_Detail': 0,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016738',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.001471,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S065112',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 6,\n",
+ " '2nd_Road_Class': -1,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 4,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.751854,\n",
+ " 'Junction_Control': -1,\n",
+ " 'Speed_limit': 30,\n",
+ " 'Date': '16/11/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 11, 16, 19, 40),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.751854, 52.001471]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b74d'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 4,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '21/05/2012',\n",
- " 'Datetime': datetime.datetime(2012, 5, 21, 8, 20),\n",
- " 'Day_of_Week': 2,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 2,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 1,\n",
- " 'LSOA_of_Accident_Location': 'E01016740',\n",
- " 'Latitude': 52.007435,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 486160,\n",
- " 'Location_Northing_OSGR': 235080,\n",
- " 'Longitude': -0.746151,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 30,\n",
+ " '1st_Road_Number': 9090,\n",
" 'Time': '08:20',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': -1,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': -1,\n",
- " 'Driver_IMD_Decile': -1,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 1030,\n",
+ " 'Location_Northing_OSGR': 235080,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 486160,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 2,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': -1,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 1,\n",
+ " 'Skidding_and_Overturning': 0,\n",
+ " 'Towing_and_Articulation': 0,\n",
+ " 'Vehicle_Location-Restricted_Lane': 0,\n",
" 'Engine_Capacity_(CC)': -1,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': -1,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 1,\n",
+ " 'Driver_Home_Area_Type': -1,\n",
" 'Propulsion_Code': -1,\n",
- " 'Sex_of_Driver': 1,\n",
+ " 'Age_of_Vehicle': -1,\n",
+ " 'Vehicle_Manoeuvre': 1,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 10,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 1,\n",
- " 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 4,\n",
- " 'Age_of_Vehicle': 6,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 10,\n",
" 'Engine_Capacity_(CC)': 1796,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 4,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 2,\n",
- " 'Junction_Location': 1,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
- " 'Skidding_and_Overturning': 0,\n",
- " 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
- " 'Vehicle_Location-Restricted_Lane': 0,\n",
+ " 'Age_of_Vehicle': 6,\n",
" 'Vehicle_Manoeuvre': 3,\n",
- " 'Vehicle_Reference': 2,\n",
- " 'Vehicle_Type': 9,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b74d'),\n",
- " 'loc': {'coordinates': [-0.746151, 52.007435], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 6,\n",
- " '1st_Road_Number': 438,\n",
+ " 'Junction_Detail': 1,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016740',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.007435,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 2,\n",
+ " 'Accident_Index': '201243S090052',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 6,\n",
" '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1030,\n",
- " 'Accident_Index': '201243S063062',\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 3,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 1,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.746151,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 30,\n",
+ " 'Date': '21/05/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 5, 21, 8, 20),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.746151, 52.007435]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b6cb'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 1,\n",
+ " 'Age_Band_of_Casualty': 3,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '15/06/2012',\n",
- " 'Datetime': datetime.datetime(2012, 6, 15, 12, 18),\n",
- " 'Day_of_Week': 6,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 3,\n",
- " 'LSOA_of_Accident_Location': 'E01016741',\n",
- " 'Latitude': 52.004327,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 485910,\n",
- " 'Location_Northing_OSGR': 234730,\n",
- " 'Longitude': -0.74988,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 30,\n",
+ " '1st_Road_Number': 438,\n",
" 'Time': '12:18',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 4,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 4,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 4,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 1030,\n",
+ " 'Location_Northing_OSGR': 234730,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 485910,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 6,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 4,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 6,\n",
+ " 'Skidding_and_Overturning': 0,\n",
+ " 'Towing_and_Articulation': 0,\n",
+ " 'Vehicle_Location-Restricted_Lane': 0,\n",
" 'Engine_Capacity_(CC)': 1896,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 6,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 4,\n",
+ " 'Vehicle_Type': 8,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 1,\n",
- " 'Junction_Location': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 1,\n",
+ " 'Age_of_Vehicle': 4,\n",
+ " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 10,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 9,\n",
- " 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 8,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': 7,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 10,\n",
" 'Engine_Capacity_(CC)': 2457,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 7,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 1,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
- " 'Skidding_and_Overturning': 0,\n",
- " 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
- " 'Vehicle_Location-Restricted_Lane': 0,\n",
+ " 'Age_of_Vehicle': 7,\n",
" 'Vehicle_Manoeuvre': 9,\n",
- " 'Vehicle_Reference': 2,\n",
- " 'Vehicle_Type': 9,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 4,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b6cb'),\n",
- " 'loc': {'coordinates': [-0.74988, 52.004327], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 3,\n",
- " '1st_Road_Number': 421,\n",
- " '2nd_Road_Class': 5,\n",
- " '2nd_Road_Number': 129,\n",
- " 'Accident_Index': '201243S073032',\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016741',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.004327,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S063062',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 6,\n",
+ " '2nd_Road_Class': 6,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 9,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.74988,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 30,\n",
+ " 'Date': '15/06/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 6, 15, 12, 18),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.74988, 52.004327]},\n",
+ " 'Weather_Conditions': 4},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b6f8'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 9,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 7,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 7,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '17/03/2012',\n",
- " 'Datetime': datetime.datetime(2012, 3, 17, 10, 42),\n",
- " 'Day_of_Week': 7,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 1,\n",
- " 'LSOA_of_Accident_Location': 'E01016757',\n",
- " 'Latitude': 52.012523,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 485810,\n",
- " 'Location_Northing_OSGR': 235640,\n",
- " 'Longitude': -0.751109,\n",
- " 'Number_of_Casualties': 2,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 1,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 70,\n",
+ " '1st_Road_Number': 421,\n",
" 'Time': '10:42',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 9,\n",
- " 'Age_of_Vehicle': 9,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 7,\n",
- " 'Engine_Capacity_(CC)': 3199,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 1,\n",
+ " '2nd_Road_Number': 129,\n",
+ " 'Location_Northing_OSGR': 235640,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 485810,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 7,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 7,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 4,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 5,\n",
+ " 'Engine_Capacity_(CC)': 3199,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': 12,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 3,\n",
- " 'Engine_Capacity_(CC)': 1840,\n",
+ " 'Age_Band_of_Driver': 9,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 4,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
+ " 'Age_of_Vehicle': 9,\n",
+ " 'Vehicle_Manoeuvre': 5,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 3,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 4,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 5,\n",
+ " 'Engine_Capacity_(CC)': 1840,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 7,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 12,\n",
+ " 'Vehicle_Manoeuvre': 5,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b6f8'),\n",
- " 'loc': {'coordinates': [-0.751109, 52.012523], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 3,\n",
- " '1st_Road_Number': 421,\n",
+ " 'Junction_Detail': 1,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016757',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.012523,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S073032',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 3,\n",
" '2nd_Road_Class': 5,\n",
- " '2nd_Road_Number': 129,\n",
- " 'Accident_Index': '201243S072052',\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 2,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 1,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.751109,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 70,\n",
+ " 'Date': '17/03/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 3, 17, 10, 42),\n",
+ " 'Number_of_Casualties': 2,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.751109, 52.012523]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b6f4'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 1,\n",
+ " 'Age_Band_of_Casualty': 2,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 9,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 9,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '16/05/2012',\n",
- " 'Datetime': datetime.datetime(2012, 5, 16, 7, 45),\n",
- " 'Day_of_Week': 4,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 1,\n",
- " 'LSOA_of_Accident_Location': 'E01016739',\n",
- " 'Latitude': 52.01225,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 485830,\n",
- " 'Location_Northing_OSGR': 235610,\n",
- " 'Longitude': -0.750825,\n",
- " 'Number_of_Casualties': 2,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 60,\n",
+ " '1st_Road_Number': 421,\n",
" 'Time': '07:45',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 7,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 4,\n",
- " 'Engine_Capacity_(CC)': 1242,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 2,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 129,\n",
+ " 'Location_Northing_OSGR': 235610,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 485830,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 4,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 4,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 1,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1242,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': 9,\n",
- " 'Age_of_Vehicle': 6,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 5,\n",
- " 'Engine_Capacity_(CC)': 1560,\n",
+ " 'Age_Band_of_Driver': 6,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 2,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 7,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 5,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 1,\n",
- " 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 3,\n",
+ " 'Engine_Capacity_(CC)': 1560,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 9,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 2,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': 6,\n",
+ " 'Vehicle_Manoeuvre': 3,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b6f4'),\n",
- " 'loc': {'coordinates': [-0.750825, 52.01225], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 3,\n",
- " '1st_Road_Number': 421,\n",
+ " 'Junction_Detail': 1,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016739',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.01225,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S072052',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 3,\n",
" '2nd_Road_Class': 5,\n",
- " '2nd_Road_Number': 129,\n",
- " 'Accident_Index': '201243S043072',\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 7,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.750825,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 60,\n",
+ " 'Date': '16/05/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 5, 16, 7, 45),\n",
+ " 'Number_of_Casualties': 2,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.750825, 52.01225]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b66e'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 7,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '10/07/2012',\n",
- " 'Datetime': datetime.datetime(2012, 7, 10, 8, 5),\n",
- " 'Day_of_Week': 3,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 2,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 1,\n",
- " 'LSOA_of_Accident_Location': 'E01016757',\n",
- " 'Latitude': 52.012434,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 485800,\n",
- " 'Location_Northing_OSGR': 235630,\n",
- " 'Longitude': -0.751257,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 60,\n",
+ " '1st_Road_Number': 421,\n",
" 'Time': '08:05',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': -1,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': -1,\n",
- " 'Driver_IMD_Decile': -1,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 129,\n",
+ " 'Location_Northing_OSGR': 235630,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 485800,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 3,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': -1,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 1,\n",
+ " 'Skidding_and_Overturning': 0,\n",
+ " 'Towing_and_Articulation': 0,\n",
+ " 'Vehicle_Location-Restricted_Lane': 0,\n",
" 'Engine_Capacity_(CC)': -1,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': -1,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 1,\n",
+ " 'Driver_Home_Area_Type': -1,\n",
" 'Propulsion_Code': -1,\n",
- " 'Sex_of_Driver': 2,\n",
+ " 'Age_of_Vehicle': -1,\n",
+ " 'Vehicle_Manoeuvre': 5,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 1,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 5,\n",
- " 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': 9,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 1,\n",
" 'Engine_Capacity_(CC)': 1968,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 7,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 1,\n",
- " 'Junction_Location': 1,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 2,\n",
- " 'Skidding_and_Overturning': 0,\n",
- " 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
- " 'Vehicle_Location-Restricted_Lane': 0,\n",
+ " 'Age_of_Vehicle': 9,\n",
" 'Vehicle_Manoeuvre': 3,\n",
- " 'Vehicle_Reference': 2,\n",
- " 'Vehicle_Type': 9,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 2,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b66e'),\n",
- " 'loc': {'coordinates': [-0.751257, 52.012434], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 129,\n",
- " '2nd_Road_Class': -1,\n",
- " '2nd_Road_Number': 0,\n",
- " 'Accident_Index': '201243S073082',\n",
+ " 'Junction_Detail': 1,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016757',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.012434,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 2,\n",
+ " 'Accident_Index': '201243S043072',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 3,\n",
+ " '2nd_Road_Class': 5,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 7,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.751257,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 60,\n",
+ " 'Date': '10/07/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 7, 10, 8, 5),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.751257, 52.012434]},\n",
+ " 'Weather_Conditions': 2},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b6fa'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 8,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 7,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '23/08/2012',\n",
- " 'Datetime': datetime.datetime(2012, 8, 23, 22, 1),\n",
- " 'Day_of_Week': 5,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': -1,\n",
- " 'Junction_Detail': 0,\n",
- " 'LSOA_of_Accident_Location': 'E01016739',\n",
- " 'Latitude': 52.011412,\n",
- " 'Light_Conditions': 4,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 486020,\n",
- " 'Location_Northing_OSGR': 235520,\n",
- " 'Longitude': -0.74808,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 60,\n",
+ " '1st_Road_Number': 129,\n",
" 'Time': '22:01',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 3,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 5,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 3,\n",
- " 'Engine_Capacity_(CC)': 1896,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 1,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 0,\n",
+ " 'Location_Northing_OSGR': 235520,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 486020,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 5,\n",
+ " 'Light_Conditions': 4,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 3,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 6,\n",
+ " 'Engine_Capacity_(CC)': 1896,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 8,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': 9,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 3,\n",
- " 'Engine_Capacity_(CC)': 1998,\n",
+ " 'Age_Band_of_Driver': 6,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 3,\n",
+ " 'Vehicle_Type': 8,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 1,\n",
- " 'Junction_Location': 0,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 2,\n",
+ " 'Age_of_Vehicle': 5,\n",
+ " 'Vehicle_Manoeuvre': 6,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 3,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 0,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1998,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 7,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
" 'Vehicle_Type': 8,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 1,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': 9,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b6fa'),\n",
- " 'loc': {'coordinates': [-0.74808, 52.011412], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 3,\n",
- " '1st_Road_Number': 421,\n",
- " '2nd_Road_Class': 5,\n",
- " '2nd_Road_Number': 129,\n",
- " 'Accident_Index': '201243S117112',\n",
+ " 'Junction_Detail': 0,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
+ " 'LSOA_of_Accident_Location': 'E01016739',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.011412,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S073082',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
+ " '2nd_Road_Class': -1,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 5,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.74808,\n",
+ " 'Junction_Control': -1,\n",
+ " 'Speed_limit': 60,\n",
+ " 'Date': '23/08/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 8, 23, 22, 1),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.74808, 52.011412]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b7de'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 5,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2},\n",
- " {'Age_Band_of_Casualty': 6,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 1,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 1,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '27/11/2012',\n",
- " 'Datetime': datetime.datetime(2012, 11, 27, 9, 45),\n",
- " 'Day_of_Week': 3,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 2,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 1,\n",
- " 'LSOA_of_Accident_Location': 'E01016757',\n",
- " 'Latitude': 52.012616,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 485790,\n",
- " 'Location_Northing_OSGR': 235650,\n",
- " 'Longitude': -0.751398,\n",
- " 'Number_of_Casualties': 2,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 1,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 60,\n",
+ " '1st_Road_Number': 421,\n",
" 'Time': '09:45',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': -1,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': -1,\n",
- " 'Driver_IMD_Decile': -1,\n",
+ " 'Road_Type': 1,\n",
+ " '2nd_Road_Number': 129,\n",
+ " 'Location_Northing_OSGR': 235650,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 485790,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 3,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': -1,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 1,\n",
+ " 'Skidding_and_Overturning': 0,\n",
+ " 'Towing_and_Articulation': 0,\n",
+ " 'Vehicle_Location-Restricted_Lane': 0,\n",
" 'Engine_Capacity_(CC)': -1,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': -1,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 3,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 1,\n",
+ " 'Driver_Home_Area_Type': -1,\n",
" 'Propulsion_Code': -1,\n",
- " 'Sex_of_Driver': 3,\n",
+ " 'Age_of_Vehicle': -1,\n",
+ " 'Vehicle_Manoeuvre': 10,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 2,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 10,\n",
- " 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': 5,\n",
- " 'Age_of_Vehicle': 2,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 2,\n",
" 'Engine_Capacity_(CC)': 1596,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 5,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 2,\n",
- " 'Junction_Location': 1,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
- " 'Skidding_and_Overturning': 0,\n",
- " 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
- " 'Vehicle_Location-Restricted_Lane': 0,\n",
+ " 'Age_of_Vehicle': 2,\n",
" 'Vehicle_Manoeuvre': 10,\n",
- " 'Vehicle_Reference': 2,\n",
- " 'Vehicle_Type': 9,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b7de'),\n",
- " 'loc': {'coordinates': [-0.751398, 52.012616], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 3,\n",
- " '1st_Road_Number': 421,\n",
+ " 'Junction_Detail': 1,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016757',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.012616,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 2,\n",
+ " 'Accident_Index': '201243S117112',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 3,\n",
" '2nd_Road_Class': 5,\n",
- " '2nd_Road_Number': 129,\n",
- " 'Accident_Index': '201243S124112',\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 6,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.751398,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 60,\n",
+ " 'Date': '27/11/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 11, 27, 9, 45),\n",
+ " 'Number_of_Casualties': 2,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.751398, 52.012616]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b804'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '29/11/2012',\n",
- " 'Datetime': datetime.datetime(2012, 11, 29, 8, 50),\n",
- " 'Day_of_Week': 5,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 1,\n",
- " 'LSOA_of_Accident_Location': 'E01016739',\n",
- " 'Latitude': 52.012248,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 485840,\n",
- " 'Location_Northing_OSGR': 235610,\n",
- " 'Longitude': -0.75068,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 60,\n",
+ " '1st_Road_Number': 421,\n",
" 'Time': '08:50',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 4,\n",
- " 'Driver_Home_Area_Type': 3,\n",
- " 'Driver_IMD_Decile': 7,\n",
- " 'Engine_Capacity_(CC)': 1299,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 1,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 129,\n",
+ " 'Location_Northing_OSGR': 235610,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 485840,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 5,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 7,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 1,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1299,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
" 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 7,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 4,\n",
- " 'Engine_Capacity_(CC)': 3555,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 1,\n",
+ " 'Driver_Home_Area_Type': 3,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 4,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 4,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 1,\n",
- " 'Propulsion_Code': 7,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 3,\n",
+ " 'Engine_Capacity_(CC)': 3555,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 6,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 1,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 7,\n",
+ " 'Age_of_Vehicle': 7,\n",
+ " 'Vehicle_Manoeuvre': 3,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b804'),\n",
- " 'loc': {'coordinates': [-0.75068, 52.012248], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 3,\n",
- " '1st_Road_Number': 421,\n",
- " '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1069,\n",
- " 'Accident_Index': '201243S134062',\n",
+ " 'Junction_Detail': 1,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016739',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.012248,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S124112',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 3,\n",
+ " '2nd_Road_Class': 5,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 4,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.75068,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 60,\n",
+ " 'Date': '29/11/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 11, 29, 8, 50),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.75068, 52.012248]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b827'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': -1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 1,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': -1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 4,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '27/06/2012',\n",
- " 'Datetime': datetime.datetime(2012, 6, 27, 2, 23),\n",
- " 'Day_of_Week': 4,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 3,\n",
- " 'LSOA_of_Accident_Location': 'E01016844',\n",
- " 'Latitude': 52.014816,\n",
- " 'Light_Conditions': 4,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 486090,\n",
- " 'Location_Northing_OSGR': 235900,\n",
- " 'Longitude': -0.746965,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 3,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 70,\n",
+ " '1st_Road_Number': 421,\n",
" 'Time': '02:23',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': 2,\n",
- " 'Driver_Home_Area_Type': -1,\n",
- " 'Driver_IMD_Decile': -1,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': 1069,\n",
+ " 'Location_Northing_OSGR': 235900,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 486090,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 4,\n",
+ " 'Light_Conditions': 4,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': -1,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 8,\n",
+ " 'Skidding_and_Overturning': 0,\n",
+ " 'Towing_and_Articulation': 0,\n",
+ " 'Vehicle_Location-Restricted_Lane': 0,\n",
" 'Engine_Capacity_(CC)': 1976,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 7,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 1,\n",
- " 'Junction_Location': 8,\n",
+ " 'Driver_Home_Area_Type': -1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
+ " 'Age_of_Vehicle': 2,\n",
+ " 'Vehicle_Manoeuvre': 4,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': -1,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 8,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 4,\n",
- " 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 3,\n",
- " 'Age_Band_of_Driver': 4,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': -1,\n",
- " 'Driver_IMD_Decile': -1,\n",
" 'Engine_Capacity_(CC)': -1,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 4,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 3,\n",
+ " 'Vehicle_Type': 1,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 8,\n",
+ " 'Driver_Home_Area_Type': -1,\n",
" 'Propulsion_Code': -1,\n",
- " 'Sex_of_Driver': 1,\n",
- " 'Skidding_and_Overturning': 0,\n",
- " 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
- " 'Vehicle_Location-Restricted_Lane': 0,\n",
+ " 'Age_of_Vehicle': -1,\n",
" 'Vehicle_Manoeuvre': 18,\n",
- " 'Vehicle_Reference': 2,\n",
- " 'Vehicle_Type': 1,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b827'),\n",
- " 'loc': {'coordinates': [-0.746965, 52.014816], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 129,\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016844',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.014816,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S134062',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 3,\n",
" '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1043,\n",
- " 'Accident_Index': '201243S043022',\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 6,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.746965,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 70,\n",
+ " 'Date': '27/06/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 6, 27, 2, 23),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.746965, 52.014816]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b66b'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 6,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '13/02/2012',\n",
- " 'Datetime': datetime.datetime(2012, 2, 13, 18, 19),\n",
- " 'Day_of_Week': 2,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 3,\n",
- " 'LSOA_of_Accident_Location': 'E01016757',\n",
- " 'Latitude': 52.01447,\n",
- " 'Light_Conditions': 4,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 485420,\n",
- " 'Location_Northing_OSGR': 235850,\n",
- " 'Longitude': -0.756738,\n",
- " 'Number_of_Casualties': 2,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 60,\n",
+ " '1st_Road_Number': 129,\n",
" 'Time': '18:19',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 13,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 9,\n",
- " 'Engine_Capacity_(CC)': 1598,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 2,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 1043,\n",
+ " 'Location_Northing_OSGR': 235850,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 485420,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 2,\n",
+ " 'Light_Conditions': 4,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 8,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Engine_Capacity_(CC)': 1598,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 1,\n",
" 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 10,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 9,\n",
- " 'Engine_Capacity_(CC)': 1199,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 1,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 2,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
+ " 'Age_of_Vehicle': 13,\n",
+ " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1199,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 6,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 10,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 2,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b66b'),\n",
- " 'loc': {'coordinates': [-0.756738, 52.01447], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 129,\n",
- " '2nd_Road_Class': -1,\n",
- " '2nd_Road_Number': -1,\n",
- " 'Accident_Index': '201243S014032',\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
+ " 'LSOA_of_Accident_Location': 'E01016757',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.01447,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S043022',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
+ " '2nd_Road_Class': 6,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 9,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 1,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.756738,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 60,\n",
+ " 'Date': '13/02/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 2, 13, 18, 19),\n",
+ " 'Number_of_Casualties': 2,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.756738, 52.01447]},\n",
+ " 'Weather_Conditions': 2},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b5e8'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 1,\n",
+ " 'Age_Band_of_Casualty': 9,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 4,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 4,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '05/03/2012',\n",
- " 'Datetime': datetime.datetime(2012, 3, 5, 20, 34),\n",
- " 'Day_of_Week': 2,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 8,\n",
- " 'LSOA_of_Accident_Location': 'E01016757',\n",
- " 'Latitude': 52.014467,\n",
- " 'Light_Conditions': 4,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 485440,\n",
- " 'Location_Northing_OSGR': 235850,\n",
- " 'Longitude': -0.756446,\n",
- " 'Number_of_Casualties': 2,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 60,\n",
+ " '1st_Road_Number': 129,\n",
" 'Time': '20:34',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 10,\n",
- " 'Age_of_Vehicle': 7,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 2,\n",
- " 'Engine_Capacity_(CC)': 1796,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': -1,\n",
+ " 'Location_Northing_OSGR': 235850,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 485440,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 2,\n",
+ " 'Light_Conditions': 4,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 2,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 6,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Engine_Capacity_(CC)': 1796,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 4,\n",
- " 'Age_of_Vehicle': 11,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 7,\n",
- " 'Engine_Capacity_(CC)': 973,\n",
+ " 'Age_Band_of_Driver': 10,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 1,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
+ " 'Age_of_Vehicle': 7,\n",
+ " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 7,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 1,\n",
" 'Skidding_and_Overturning': 1,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 973,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 4,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 11,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b5e8'),\n",
- " 'loc': {'coordinates': [-0.756446, 52.014467], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 129,\n",
- " '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1043,\n",
- " 'Accident_Index': '201243S049032',\n",
+ " 'Junction_Detail': 8,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
+ " 'LSOA_of_Accident_Location': 'E01016757',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.014467,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S014032',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
+ " '2nd_Road_Class': -1,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 8,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.756446,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 60,\n",
+ " 'Date': '05/03/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 3, 5, 20, 34),\n",
+ " 'Number_of_Casualties': 2,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.756446, 52.014467]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b68a'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 8,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '09/03/2012',\n",
- " 'Datetime': datetime.datetime(2012, 3, 9, 8, 50),\n",
- " 'Day_of_Week': 6,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 2,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 3,\n",
- " 'LSOA_of_Accident_Location': 'E01016757',\n",
- " 'Latitude': 52.01447,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 485420,\n",
- " 'Location_Northing_OSGR': 235850,\n",
- " 'Longitude': -0.756738,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 60,\n",
+ " '1st_Road_Number': 129,\n",
" 'Time': '08:50',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': -1,\n",
- " 'Age_of_Vehicle': 4,\n",
- " 'Driver_Home_Area_Type': 3,\n",
- " 'Driver_IMD_Decile': 9,\n",
- " 'Engine_Capacity_(CC)': 1364,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 1043,\n",
+ " 'Location_Northing_OSGR': 235850,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 485420,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 6,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 1,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1364,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': 8,\n",
- " 'Age_of_Vehicle': 6,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 9,\n",
- " 'Engine_Capacity_(CC)': 1596,\n",
+ " 'Age_Band_of_Driver': -1,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 1,\n",
+ " 'Driver_Home_Area_Type': 3,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
+ " 'Age_of_Vehicle': 4,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 8,\n",
+ " 'Engine_Capacity_(CC)': 1596,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 8,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 6,\n",
+ " 'Vehicle_Manoeuvre': 8,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b68a'),\n",
- " 'loc': {'coordinates': [-0.756738, 52.01447], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 129,\n",
- " '2nd_Road_Class': -1,\n",
- " '2nd_Road_Number': 0,\n",
- " 'Accident_Index': '201243S088062',\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
+ " 'LSOA_of_Accident_Location': 'E01016757',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.01447,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 2,\n",
+ " 'Accident_Index': '201243S049032',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
+ " '2nd_Road_Class': 6,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 9,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.756738,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 60,\n",
+ " 'Date': '09/03/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 3, 9, 8, 50),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.756738, 52.01447]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b744'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 9,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2},\n",
- " {'Age_Band_of_Casualty': 7,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 3,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 7,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 3}],\n",
- " 'Date': '22/06/2012',\n",
- " 'Datetime': datetime.datetime(2012, 6, 22, 16, 15),\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
+ " 'Road_Surface_Conditions': 1,\n",
+ " '1st_Road_Number': 129,\n",
+ " 'Time': '16:15',\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 0,\n",
+ " 'Location_Northing_OSGR': 235800,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 3,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 485540,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
" 'Day_of_Week': 6,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': -1,\n",
- " 'Junction_Detail': 0,\n",
- " 'LSOA_of_Accident_Location': 'E01016757',\n",
- " 'Latitude': 52.014002,\n",
" 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 485540,\n",
- " 'Location_Northing_OSGR': 235800,\n",
- " 'Longitude': -0.755002,\n",
- " 'Number_of_Casualties': 2,\n",
- " 'Number_of_Vehicles': 3,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
- " 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 60,\n",
- " 'Time': '16:15',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 5,\n",
- " 'Age_of_Vehicle': 9,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 9,\n",
- " 'Engine_Capacity_(CC)': 2792,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 2,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 1,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 4,\n",
+ " 'Engine_Capacity_(CC)': 2792,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': 9,\n",
- " 'Age_of_Vehicle': 2,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 9,\n",
- " 'Engine_Capacity_(CC)': 1956,\n",
+ " 'Age_Band_of_Driver': 5,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 2,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 9,\n",
+ " 'Vehicle_Manoeuvre': 4,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 4,\n",
+ " 'Engine_Capacity_(CC)': 1956,\n",
" 'Vehicle_Reference': 2,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': 8,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 4,\n",
- " 'Engine_Capacity_(CC)': 1360,\n",
+ " 'Age_Band_of_Driver': 9,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 2,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': 2,\n",
+ " 'Vehicle_Manoeuvre': 4,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 4,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 4,\n",
+ " 'Engine_Capacity_(CC)': 1360,\n",
" 'Vehicle_Reference': 3,\n",
+ " 'Age_Band_of_Driver': 7,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 2,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 8,\n",
+ " 'Vehicle_Manoeuvre': 4,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b744'),\n",
- " 'loc': {'coordinates': [-0.755002, 52.014002], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 129,\n",
- " '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1069,\n",
- " 'Accident_Index': '201243S075072',\n",
+ " 'Junction_Detail': 0,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
+ " 'LSOA_of_Accident_Location': 'E01016757',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.014002,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S088062',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
+ " '2nd_Road_Class': -1,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 6,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.755002,\n",
+ " 'Junction_Control': -1,\n",
+ " 'Speed_limit': 60,\n",
+ " 'Date': '22/06/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 6, 22, 16, 15),\n",
+ " 'Number_of_Casualties': 2,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.755002, 52.014002]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b704'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 7,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 7,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '16/07/2012',\n",
- " 'Datetime': datetime.datetime(2012, 7, 16, 9, 57),\n",
- " 'Day_of_Week': 2,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 3,\n",
- " 'LSOA_of_Accident_Location': 'E01016757',\n",
- " 'Latitude': 52.014283,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 485470,\n",
- " 'Location_Northing_OSGR': 235830,\n",
- " 'Longitude': -0.756014,\n",
- " 'Number_of_Casualties': 2,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 60,\n",
+ " '1st_Road_Number': 129,\n",
" 'Time': '09:57',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 4,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 10,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 9,\n",
- " 'Engine_Capacity_(CC)': 1995,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 2,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 1069,\n",
+ " 'Location_Northing_OSGR': 235830,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 485470,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 2,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 8,\n",
- " 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Engine_Capacity_(CC)': 1995,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': 11,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 5,\n",
- " 'Engine_Capacity_(CC)': 1497,\n",
+ " 'Age_Band_of_Driver': 6,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 4,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 2,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': 10,\n",
+ " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 5,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 1,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 1,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1497,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 7,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 2,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 11,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 2,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b704'),\n",
- " 'loc': {'coordinates': [-0.756014, 52.014283], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 129,\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
+ " 'LSOA_of_Accident_Location': 'E01016757',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.014283,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S075072',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
" '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1043,\n",
- " 'Accident_Index': '201243S122112',\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 7,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.756014,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 60,\n",
+ " 'Date': '16/07/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 7, 16, 9, 57),\n",
+ " 'Number_of_Casualties': 2,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.756014, 52.014283]},\n",
+ " 'Weather_Conditions': 2},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b7f7'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 1,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 7,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '27/11/2012',\n",
- " 'Datetime': datetime.datetime(2012, 11, 27, 19, 20),\n",
- " 'Day_of_Week': 3,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 3,\n",
- " 'LSOA_of_Accident_Location': 'E01016757',\n",
- " 'Latitude': 52.014562,\n",
- " 'Light_Conditions': 4,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 485410,\n",
- " 'Location_Northing_OSGR': 235860,\n",
- " 'Longitude': -0.756881,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 60,\n",
+ " '1st_Road_Number': 129,\n",
" 'Time': '19:20',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': 9,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 9,\n",
- " 'Engine_Capacity_(CC)': 1794,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 1043,\n",
+ " 'Location_Northing_OSGR': 235860,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 485410,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 3,\n",
+ " 'Light_Conditions': 4,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 6,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 7,\n",
+ " 'Engine_Capacity_(CC)': 1794,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 4,\n",
" 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 9,\n",
- " 'Engine_Capacity_(CC)': -1,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 9,\n",
+ " 'Vehicle_Manoeuvre': 7,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 8,\n",
- " 'Propulsion_Code': -1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': -1,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 7,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 4,\n",
" 'Vehicle_Type': 1,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': -1,\n",
+ " 'Age_of_Vehicle': -1,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b7f7'),\n",
- " 'loc': {'coordinates': [-0.756881, 52.014562], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 129,\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
+ " 'LSOA_of_Accident_Location': 'E01016757',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.014562,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S122112',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
" '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1043,\n",
- " 'Accident_Index': '201243S094122',\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 6,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.756881,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 60,\n",
+ " 'Date': '27/11/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 11, 27, 19, 20),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.756881, 52.014562]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b769'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 8,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 9,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 9,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2},\n",
- " {'Age_Band_of_Casualty': 5,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 1,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 3,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 3,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 1,\n",
+ " 'Age_Band_of_Casualty': 5,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '19/12/2012',\n",
- " 'Datetime': datetime.datetime(2012, 12, 19, 8, 0),\n",
- " 'Day_of_Week': 4,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 3,\n",
- " 'LSOA_of_Accident_Location': 'E01016757',\n",
- " 'Latitude': 52.014522,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 485432,\n",
- " 'Location_Northing_OSGR': 235856,\n",
- " 'Longitude': -0.756562,\n",
- " 'Number_of_Casualties': 3,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 60,\n",
+ " '1st_Road_Number': 129,\n",
" 'Time': '08:00',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 5,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 2,\n",
- " 'Engine_Capacity_(CC)': 1968,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 1043,\n",
+ " 'Location_Northing_OSGR': 235856,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 485432,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 4,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 2,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 8,\n",
- " 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Engine_Capacity_(CC)': 1968,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 8,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 9,\n",
- " 'Age_of_Vehicle': 15,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 5,\n",
- " 'Engine_Capacity_(CC)': 1994,\n",
+ " 'Age_Band_of_Driver': 6,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 8,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 8,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 1,\n",
+ " 'Age_of_Vehicle': 5,\n",
+ " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 5,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 8,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1994,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 9,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': 15,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b769'),\n",
- " 'loc': {'coordinates': [-0.756562, 52.014522], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 3,\n",
- " '1st_Road_Number': 5,\n",
- " '2nd_Road_Class': -1,\n",
- " '2nd_Road_Number': 0,\n",
- " 'Accident_Index': '201243S092062',\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
+ " 'LSOA_of_Accident_Location': 'E01016757',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.014522,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S094122',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
+ " '2nd_Road_Class': 6,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 8,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.756562,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 60,\n",
+ " 'Date': '19/12/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 12, 19, 8, 0),\n",
+ " 'Number_of_Casualties': 3,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.756562, 52.014522]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b758'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 8,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '20/06/2012',\n",
- " 'Datetime': datetime.datetime(2012, 6, 20, 8, 14),\n",
- " 'Day_of_Week': 4,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': -1,\n",
- " 'Junction_Detail': 0,\n",
- " 'LSOA_of_Accident_Location': 'E01016775',\n",
- " 'Latitude': 52.013615,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 485720,\n",
- " 'Location_Northing_OSGR': 235760,\n",
- " 'Longitude': -0.75239,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 3,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 70,\n",
+ " '1st_Road_Number': 5,\n",
" 'Time': '08:14',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 3,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': 11,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 2,\n",
- " 'Engine_Capacity_(CC)': 1389,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 1,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': 0,\n",
+ " 'Location_Northing_OSGR': 235760,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 485720,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 4,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 2,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 12,\n",
+ " 'Engine_Capacity_(CC)': 1389,\n",
" 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 7,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 3,\n",
" 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 4,\n",
- " 'Age_Band_of_Driver': 8,\n",
- " 'Age_of_Vehicle': 16,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 9,\n",
- " 'Engine_Capacity_(CC)': 1870,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 6,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 1,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 11,\n",
+ " 'Vehicle_Manoeuvre': 12,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 5,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 5,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1870,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 8,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 6,\n",
+ " '1st_Point_of_Impact': 4,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 1,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': 16,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b758'),\n",
- " 'loc': {'coordinates': [-0.75239, 52.013615], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 6,\n",
- " '1st_Road_Number': 1043,\n",
+ " 'Junction_Detail': 0,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
+ " 'LSOA_of_Accident_Location': 'E01016775',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.013615,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S092062',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 3,\n",
" '2nd_Road_Class': -1,\n",
- " '2nd_Road_Number': 0,\n",
- " 'Accident_Index': '201243S087082',\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 7,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.75239,\n",
+ " 'Junction_Control': -1,\n",
+ " 'Speed_limit': 70,\n",
+ " 'Date': '20/06/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 6, 20, 8, 14),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.75239, 52.013615]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b73f'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 3,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 0,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 9,\n",
- " 'Pedestrian_Movement': 5,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 7,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 1}],\n",
- " 'Date': '28/08/2012',\n",
- " 'Datetime': datetime.datetime(2012, 8, 28, 0, 57),\n",
- " 'Day_of_Week': 3,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': -1,\n",
- " 'Junction_Detail': 0,\n",
- " 'LSOA_of_Accident_Location': 'E01016758',\n",
- " 'Latitude': 52.011663,\n",
- " 'Light_Conditions': 4,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 484970,\n",
- " 'Location_Northing_OSGR': 235530,\n",
- " 'Longitude': -0.763373,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 1,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 5,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 30,\n",
+ " '1st_Road_Number': 1043,\n",
" 'Time': '00:57',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 0,\n",
- " 'Age_Band_of_Driver': 8,\n",
- " 'Age_of_Vehicle': 6,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 4,\n",
- " 'Engine_Capacity_(CC)': 1997,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 1,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 0,\n",
+ " 'Location_Northing_OSGR': 235530,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 1,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 484970,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 3,\n",
+ " 'Light_Conditions': 4,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 4,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 5,\n",
+ " 'Engine_Capacity_(CC)': 1997,\n",
" 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 8,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 0,\n",
" 'Vehicle_Type': 8,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 1,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': 6,\n",
+ " 'Vehicle_Manoeuvre': 5,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b73f'),\n",
- " 'loc': {'coordinates': [-0.763373, 52.011663], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 6,\n",
- " '1st_Road_Number': 1043,\n",
+ " 'Junction_Detail': 0,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016758',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.011663,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S087082',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 6,\n",
" '2nd_Road_Class': -1,\n",
- " '2nd_Road_Number': 0,\n",
- " 'Accident_Index': '201243S073072',\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 5,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.763373,\n",
+ " 'Junction_Control': -1,\n",
+ " 'Speed_limit': 30,\n",
+ " 'Date': '28/08/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 8, 28, 0, 57),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.763373, 52.011663]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b6f9'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 3,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 0,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 6,\n",
- " 'Pedestrian_Movement': 9,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 5,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1}],\n",
- " 'Date': '15/07/2012',\n",
- " 'Datetime': datetime.datetime(2012, 7, 15, 0, 1),\n",
- " 'Day_of_Week': 1,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': -1,\n",
- " 'Junction_Detail': 0,\n",
- " 'LSOA_of_Accident_Location': 'E01016757',\n",
- " 'Latitude': 52.015149,\n",
- " 'Light_Conditions': 4,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 485100,\n",
- " 'Location_Northing_OSGR': 235920,\n",
- " 'Longitude': -0.761382,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 1,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 9,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 9,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 30,\n",
+ " '1st_Road_Number': 1043,\n",
" 'Time': '00:01',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': -1,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': -1,\n",
- " 'Driver_IMD_Decile': -1,\n",
- " 'Engine_Capacity_(CC)': -1,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 9,\n",
+ " '2nd_Road_Number': 0,\n",
+ " 'Location_Northing_OSGR': 235920,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 1,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 485100,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 1,\n",
+ " 'Light_Conditions': 4,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': -1,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': -1,\n",
- " 'Sex_of_Driver': 3,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 5,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': -1,\n",
" 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': -1,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 3,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': -1,\n",
+ " 'Propulsion_Code': -1,\n",
+ " 'Age_of_Vehicle': -1,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b6f9'),\n",
- " 'loc': {'coordinates': [-0.761382, 52.015149], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 9,\n",
+ " 'Junction_Detail': 0,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
+ " 'LSOA_of_Accident_Location': 'E01016757',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.015149,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S073072',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 6,\n",
" '2nd_Road_Class': -1,\n",
- " '2nd_Road_Number': 0,\n",
- " 'Accident_Index': '201243S107072',\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 6,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.761382,\n",
+ " 'Junction_Control': -1,\n",
+ " 'Speed_limit': 30,\n",
+ " 'Date': '15/07/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 7, 15, 0, 1),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.761382, 52.015149]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b7a5'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 90,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 4,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 2,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': -1,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': -1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 2,\n",
+ " 'Age_Band_of_Casualty': 4,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '23/07/2012',\n",
- " 'Datetime': datetime.datetime(2012, 7, 23, 21, 50),\n",
- " 'Day_of_Week': 2,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': -1,\n",
- " 'Junction_Detail': 0,\n",
- " 'LSOA_of_Accident_Location': 'E01016750',\n",
- " 'Latitude': 52.003416,\n",
- " 'Light_Conditions': 5,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 484820,\n",
- " 'Location_Northing_OSGR': 234610,\n",
- " 'Longitude': -0.765785,\n",
- " 'Number_of_Casualties': 2,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 60,\n",
+ " '1st_Road_Number': 9,\n",
" 'Time': '21:50',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 3,\n",
- " 'Age_Band_of_Driver': 5,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': 3,\n",
- " 'Driver_IMD_Decile': 9,\n",
- " 'Engine_Capacity_(CC)': -1,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 1,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 0,\n",
+ " 'Location_Northing_OSGR': 234610,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 484820,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 2,\n",
+ " 'Light_Conditions': 5,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': -1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 13,\n",
+ " 'Engine_Capacity_(CC)': -1,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 90,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 3,\n",
- " 'Age_Band_of_Driver': 4,\n",
- " 'Age_of_Vehicle': 11,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 8,\n",
- " 'Engine_Capacity_(CC)': 1124,\n",
+ " 'Age_Band_of_Driver': 5,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 0,\n",
- " 'Propulsion_Code': 1,\n",
+ " '1st_Point_of_Impact': 3,\n",
+ " 'Vehicle_Type': 90,\n",
" 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 1,\n",
+ " 'Driver_Home_Area_Type': 3,\n",
+ " 'Propulsion_Code': -1,\n",
+ " 'Age_of_Vehicle': -1,\n",
+ " 'Vehicle_Manoeuvre': 13,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 8,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 0,\n",
" 'Skidding_and_Overturning': 1,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1124,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 4,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 3,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 11,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b7a5'),\n",
- " 'loc': {'coordinates': [-0.765785, 52.003416], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 9,\n",
- " '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1043,\n",
- " 'Accident_Index': '201243S048102',\n",
+ " 'Junction_Detail': 0,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016750',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.003416,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S107072',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
+ " '2nd_Road_Class': -1,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 10,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.765785,\n",
+ " 'Junction_Control': -1,\n",
+ " 'Speed_limit': 60,\n",
+ " 'Date': '23/07/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 7, 23, 21, 50),\n",
+ " 'Number_of_Casualties': 2,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.765785, 52.003416]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b687'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 10,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 8,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 3,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 3,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 8,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '11/10/2012',\n",
- " 'Datetime': datetime.datetime(2012, 10, 11, 13, 15),\n",
- " 'Day_of_Week': 5,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 3,\n",
- " 'LSOA_of_Accident_Location': 'E01016754',\n",
- " 'Latitude': 52.004152,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 484710,\n",
- " 'Location_Northing_OSGR': 234690,\n",
- " 'Longitude': -0.767367,\n",
- " 'Number_of_Casualties': 2,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 60,\n",
+ " '1st_Road_Number': 9,\n",
" 'Time': '13:15',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 3,\n",
- " 'Age_Band_of_Driver': 10,\n",
- " 'Age_of_Vehicle': 17,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 9,\n",
- " 'Engine_Capacity_(CC)': 1299,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 1043,\n",
+ " 'Location_Northing_OSGR': 234690,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 484710,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 5,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 6,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Engine_Capacity_(CC)': 1299,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 8,\n",
- " 'Age_of_Vehicle': 11,\n",
- " 'Driver_Home_Area_Type': 3,\n",
- " 'Driver_IMD_Decile': 7,\n",
- " 'Engine_Capacity_(CC)': 1596,\n",
+ " 'Age_Band_of_Driver': 10,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 3,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 1,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
+ " 'Age_of_Vehicle': 17,\n",
+ " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 7,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1596,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 8,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 3,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 11,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 2,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b687'),\n",
- " 'loc': {'coordinates': [-0.767367, 52.004152], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 3,\n",
- " '1st_Road_Number': 421,\n",
- " '2nd_Road_Class': 5,\n",
- " '2nd_Road_Number': 9,\n",
- " 'Accident_Index': '201243S081012',\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016754',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.004152,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S048102',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
+ " '2nd_Road_Class': 6,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 5,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.767367,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 60,\n",
+ " 'Date': '11/10/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 10, 11, 13, 15),\n",
+ " 'Number_of_Casualties': 2,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.767367, 52.004152]},\n",
+ " 'Weather_Conditions': 2},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b71f'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 5,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 6,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '20/01/2012',\n",
- " 'Datetime': datetime.datetime(2012, 1, 20, 22, 5),\n",
- " 'Day_of_Week': 6,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 1,\n",
- " 'LSOA_of_Accident_Location': 'E01016737',\n",
- " 'Latitude': 52.002944,\n",
- " 'Light_Conditions': 4,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 484970,\n",
- " 'Location_Northing_OSGR': 234560,\n",
- " 'Longitude': -0.763613,\n",
- " 'Number_of_Casualties': 2,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 1,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 70,\n",
+ " '1st_Road_Number': 421,\n",
" 'Time': '22:05',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': 5,\n",
- " 'Age_of_Vehicle': 3,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 4,\n",
- " 'Engine_Capacity_(CC)': 1388,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 1,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 4,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
- " 'Skidding_and_Overturning': 1,\n",
- " 'Towing_and_Articulation': 0,\n",
+ " 'Road_Type': 1,\n",
+ " '2nd_Road_Number': 9,\n",
+ " 'Location_Northing_OSGR': 234560,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 484970,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 6,\n",
+ " 'Light_Conditions': 4,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 4,\n",
" 'Vehicle_Leaving_Carriageway': 1,\n",
+ " 'Junction_Location': 4,\n",
+ " 'Skidding_and_Overturning': 1,\n",
+ " 'Towing_and_Articulation': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1388,\n",
" 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 5,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 1,\n",
+ " '1st_Point_of_Impact': 2,\n",
" 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': -1,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
" 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 9,\n",
- " 'Engine_Capacity_(CC)': -1,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 2,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 3,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 8,\n",
- " 'Propulsion_Code': -1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': -1,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 6,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 2,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': -1,\n",
+ " 'Age_of_Vehicle': -1,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b71f'),\n",
- " 'loc': {'coordinates': [-0.763613, 52.002944], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 6,\n",
- " '1st_Road_Number': 1030,\n",
- " '2nd_Road_Class': -1,\n",
- " '2nd_Road_Number': 0,\n",
- " 'Accident_Index': '201243S088052',\n",
+ " 'Junction_Detail': 1,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016737',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.002944,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S081012',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 3,\n",
+ " '2nd_Road_Class': 5,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 7,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.763613,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 70,\n",
+ " 'Date': '20/01/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 1, 20, 22, 5),\n",
+ " 'Number_of_Casualties': 2,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.763613, 52.002944]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b743'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': -1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': -1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 7,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '15/05/2012',\n",
- " 'Datetime': datetime.datetime(2012, 5, 15, 21, 49),\n",
- " 'Day_of_Week': 3,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': -1,\n",
- " 'Junction_Detail': 0,\n",
- " 'LSOA_of_Accident_Location': 'E01016832',\n",
- " 'Latitude': 51.998138,\n",
- " 'Light_Conditions': 4,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 485240,\n",
- " 'Location_Northing_OSGR': 234030,\n",
- " 'Longitude': -0.759812,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 30,\n",
+ " '1st_Road_Number': 1030,\n",
" 'Time': '21:49',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 0,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 1,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 2,\n",
- " 'Engine_Capacity_(CC)': 2400,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 1,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 0,\n",
+ " 'Location_Northing_OSGR': 234030,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 485240,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 3,\n",
+ " 'Light_Conditions': 4,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 2,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 2400,\n",
" 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 6,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 0,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 1,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': 1,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': 14,\n",
- " 'Driver_Home_Area_Type': -1,\n",
- " 'Driver_IMD_Decile': -1,\n",
- " 'Engine_Capacity_(CC)': 1905,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 10,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " {'Driver_IMD_Decile': -1,\n",
+ " 'Vehicle_Leaving_Carriageway': 1,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 1,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 1,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1905,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 7,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 10,\n",
+ " '1st_Point_of_Impact': 1,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': -1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 14,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b743'),\n",
- " 'loc': {'coordinates': [-0.759812, 51.998138], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 3,\n",
- " '1st_Road_Number': 421,\n",
- " '2nd_Road_Class': 5,\n",
- " '2nd_Road_Number': 9,\n",
- " 'Accident_Index': '201243S105012',\n",
+ " 'Junction_Detail': 0,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016832',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 51.998138,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S088052',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 6,\n",
+ " '2nd_Road_Class': -1,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 6,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.759812,\n",
+ " 'Junction_Control': -1,\n",
+ " 'Speed_limit': 30,\n",
+ " 'Date': '15/05/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 5, 15, 21, 49),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.759812, 51.998138]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b799'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '27/01/2012',\n",
- " 'Datetime': datetime.datetime(2012, 1, 27, 12, 48),\n",
- " 'Day_of_Week': 6,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 1,\n",
- " 'LSOA_of_Accident_Location': 'E01016754',\n",
- " 'Latitude': 52.003131,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 484920,\n",
- " 'Location_Northing_OSGR': 234580,\n",
- " 'Longitude': -0.764336,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 1,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 70,\n",
+ " '1st_Road_Number': 421,\n",
" 'Time': '12:48',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': 3,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 8,\n",
+ " 'Road_Type': 1,\n",
+ " '2nd_Road_Number': 9,\n",
+ " 'Location_Northing_OSGR': 234580,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 484920,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 6,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 8,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 4,\n",
+ " 'Skidding_and_Overturning': 0,\n",
+ " 'Towing_and_Articulation': 0,\n",
+ " 'Vehicle_Location-Restricted_Lane': 0,\n",
" 'Engine_Capacity_(CC)': 1995,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 7,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 1,\n",
- " 'Junction_Location': 4,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 2,\n",
+ " 'Age_of_Vehicle': 3,\n",
+ " 'Vehicle_Manoeuvre': 7,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 7,\n",
- " 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 15,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 9,\n",
" 'Engine_Capacity_(CC)': 1997,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 6,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 1,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
- " 'Skidding_and_Overturning': 0,\n",
- " 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
- " 'Vehicle_Location-Restricted_Lane': 0,\n",
+ " 'Age_of_Vehicle': 15,\n",
" 'Vehicle_Manoeuvre': 8,\n",
- " 'Vehicle_Reference': 2,\n",
- " 'Vehicle_Type': 9,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b799'),\n",
- " 'loc': {'coordinates': [-0.764336, 52.003131], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 3,\n",
- " '1st_Road_Number': 421,\n",
- " '2nd_Road_Class': -1,\n",
- " '2nd_Road_Number': 0,\n",
- " 'Accident_Index': '201243S137032',\n",
+ " 'Junction_Detail': 1,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016754',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.003131,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S105012',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 3,\n",
+ " '2nd_Road_Class': 5,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 6,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.764336,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 70,\n",
+ " 'Date': '27/01/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 1, 27, 12, 48),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.764336, 52.003131]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b833'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 7,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 7,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2},\n",
- " {'Age_Band_of_Casualty': 6,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 1,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 3,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 3,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 1,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2},\n",
- " {'Age_Band_of_Casualty': 5,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 2,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': -1,\n",
- " 'Casualty_Reference': 4,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 4,\n",
+ " 'Casualty_Home_Area_Type': -1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 2,\n",
+ " 'Age_Band_of_Casualty': 5,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '29/03/2012',\n",
- " 'Datetime': datetime.datetime(2012, 3, 29, 22, 5),\n",
- " 'Day_of_Week': 5,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': -1,\n",
- " 'Junction_Detail': 0,\n",
- " 'LSOA_of_Accident_Location': 'E01016750',\n",
- " 'Latitude': 52.00206,\n",
- " 'Light_Conditions': 5,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 484870,\n",
- " 'Location_Northing_OSGR': 234460,\n",
- " 'Longitude': -0.765094,\n",
- " 'Number_of_Casualties': 4,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 3,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 70,\n",
+ " '1st_Road_Number': 421,\n",
" 'Time': '22:05',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 3,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 9,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 8,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': 0,\n",
+ " 'Location_Northing_OSGR': 234460,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 484870,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 5,\n",
+ " 'Light_Conditions': 5,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 8,\n",
+ " 'Vehicle_Leaving_Carriageway': 5,\n",
+ " 'Junction_Location': 0,\n",
+ " 'Skidding_and_Overturning': 0,\n",
+ " 'Towing_and_Articulation': 0,\n",
+ " 'Vehicle_Location-Restricted_Lane': 0,\n",
" 'Engine_Capacity_(CC)': 1388,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 6,\n",
" 'Hit_Object_in_Carriageway': 10,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 3,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 0,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
+ " 'Age_of_Vehicle': 9,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 6,\n",
+ " 'Vehicle_Leaving_Carriageway': 4,\n",
+ " 'Junction_Location': 0,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 5,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
- " 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': 13,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 6,\n",
" 'Engine_Capacity_(CC)': 973,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 7,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 0,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
- " 'Skidding_and_Overturning': 0,\n",
- " 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 4,\n",
- " 'Vehicle_Location-Restricted_Lane': 0,\n",
+ " 'Age_of_Vehicle': 13,\n",
" 'Vehicle_Manoeuvre': 18,\n",
- " 'Vehicle_Reference': 2,\n",
- " 'Vehicle_Type': 9,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b833'),\n",
- " 'loc': {'coordinates': [-0.765094, 52.00206], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 3,\n",
- " '1st_Road_Number': 421,\n",
- " '2nd_Road_Class': 5,\n",
- " '2nd_Road_Number': 9,\n",
- " 'Accident_Index': '201243S031072',\n",
+ " 'Junction_Detail': 0,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016750',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.00206,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S137032',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 3,\n",
+ " '2nd_Road_Class': -1,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 6,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 2,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.765094,\n",
+ " 'Junction_Control': -1,\n",
+ " 'Speed_limit': 70,\n",
+ " 'Date': '29/03/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 3, 29, 22, 5),\n",
+ " 'Number_of_Casualties': 4,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.765094, 52.00206]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b631'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 8,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 2,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 1}],\n",
- " 'Date': '06/07/2012',\n",
- " 'Datetime': datetime.datetime(2012, 7, 6, 14, 30),\n",
- " 'Day_of_Week': 6,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 2,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 1,\n",
- " 'LSOA_of_Accident_Location': 'E01016754',\n",
- " 'Latitude': 52.003131,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 484920,\n",
- " 'Location_Northing_OSGR': 234580,\n",
- " 'Longitude': -0.764336,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 1,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 70,\n",
+ " '1st_Road_Number': 421,\n",
" 'Time': '14:30',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': -1,\n",
- " 'Age_of_Vehicle': 1,\n",
- " 'Driver_Home_Area_Type': -1,\n",
- " 'Driver_IMD_Decile': -1,\n",
- " 'Engine_Capacity_(CC)': 2143,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 1,\n",
+ " '2nd_Road_Number': 9,\n",
+ " 'Location_Northing_OSGR': 234580,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 484920,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 6,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': -1,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 1,\n",
- " 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 5,\n",
+ " 'Engine_Capacity_(CC)': 2143,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 8,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
" 'Age_Band_of_Driver': -1,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': -1,\n",
- " 'Driver_IMD_Decile': -1,\n",
- " 'Engine_Capacity_(CC)': -1,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 8,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': -1,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': 1,\n",
+ " 'Vehicle_Manoeuvre': 5,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': -1,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 1,\n",
- " 'Propulsion_Code': -1,\n",
- " 'Sex_of_Driver': 3,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 3,\n",
+ " 'Engine_Capacity_(CC)': -1,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': -1,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 3,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': -1,\n",
+ " 'Propulsion_Code': -1,\n",
+ " 'Age_of_Vehicle': -1,\n",
+ " 'Vehicle_Manoeuvre': 3,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 2,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b631'),\n",
- " 'loc': {'coordinates': [-0.764336, 52.003131], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 6,\n",
- " '1st_Road_Number': 1034,\n",
- " '2nd_Road_Class': -1,\n",
- " '2nd_Road_Number': 0,\n",
- " 'Accident_Index': '201243S096032',\n",
- " 'Accident_Severity': 2,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 5,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Junction_Detail': 1,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016754',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.003131,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 2,\n",
+ " 'Accident_Index': '201243S031072',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 3,\n",
+ " '2nd_Road_Class': 5,\n",
+ " 'Accident_Severity': 3,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.764336,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 70,\n",
+ " 'Date': '06/07/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 7, 6, 14, 30),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.764336, 52.003131]},\n",
+ " 'Weather_Conditions': 2},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b771'),\n",
+ " 'Casualties': [{'Casualty_Severity': 2,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 2,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 2,\n",
" 'Casualty_Type': 2,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 2,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 5,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 4,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 2,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 2,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 2,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 4,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1}],\n",
- " 'Date': '18/03/2012',\n",
- " 'Datetime': datetime.datetime(2012, 3, 18, 21, 0),\n",
- " 'Day_of_Week': 1,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 2,\n",
- " 'Junction_Control': -1,\n",
- " 'Junction_Detail': 0,\n",
- " 'LSOA_of_Accident_Location': 'E01016747',\n",
- " 'Latitude': 52.006811,\n",
- " 'Light_Conditions': 7,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 482570,\n",
- " 'Location_Northing_OSGR': 234950,\n",
- " 'Longitude': -0.798473,\n",
- " 'Number_of_Casualties': 2,\n",
- " 'Number_of_Vehicles': 1,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 30,\n",
+ " '1st_Road_Number': 1034,\n",
" 'Time': '21:00',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 0,\n",
- " 'Age_Band_of_Driver': -1,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': -1,\n",
- " 'Driver_IMD_Decile': -1,\n",
- " 'Engine_Capacity_(CC)': -1,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 0,\n",
+ " 'Location_Northing_OSGR': 234950,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 1,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 482570,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 1,\n",
+ " 'Light_Conditions': 7,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': -1,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': -1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 9,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': -1,\n",
" 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': -1,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 0,\n",
" 'Vehicle_Type': 2,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': -1,\n",
+ " 'Propulsion_Code': -1,\n",
+ " 'Age_of_Vehicle': -1,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b771'),\n",
- " 'loc': {'coordinates': [-0.798473, 52.006811], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 9002,\n",
- " '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1034,\n",
- " 'Accident_Index': '201243S077082',\n",
+ " 'Junction_Detail': 0,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
+ " 'LSOA_of_Accident_Location': 'E01016747',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.006811,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 2,\n",
+ " 'Accident_Index': '201243S096032',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 6,\n",
+ " '2nd_Road_Class': -1,\n",
" 'Accident_Severity': 2,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 4,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.798473,\n",
+ " 'Junction_Control': -1,\n",
+ " 'Speed_limit': 30,\n",
+ " 'Date': '18/03/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 3, 18, 21, 0),\n",
+ " 'Number_of_Casualties': 2,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.798473, 52.006811]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b711'),\n",
+ " 'Casualties': [{'Casualty_Severity': 2,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 2,\n",
" 'Casualty_Type': 3,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 4,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1}],\n",
- " 'Date': '23/08/2012',\n",
- " 'Datetime': datetime.datetime(2012, 8, 23, 14, 0),\n",
- " 'Day_of_Week': 5,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 3,\n",
- " 'LSOA_of_Accident_Location': 'E01016747',\n",
- " 'Latitude': 52.008218,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 482780,\n",
- " 'Location_Northing_OSGR': 235110,\n",
- " 'Longitude': -0.795376,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 60,\n",
+ " '1st_Road_Number': 9002,\n",
" 'Time': '14:00',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 4,\n",
- " 'Age_of_Vehicle': 1,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 9,\n",
- " 'Engine_Capacity_(CC)': 125,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 1034,\n",
+ " 'Location_Northing_OSGR': 235110,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 482780,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 5,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 1,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 13,\n",
+ " 'Engine_Capacity_(CC)': 125,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 3,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 6,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 4,\n",
- " 'Engine_Capacity_(CC)': 1386,\n",
+ " 'Age_Band_of_Driver': 4,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 3,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 8,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
+ " 'Age_of_Vehicle': 1,\n",
+ " 'Vehicle_Manoeuvre': 13,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 4,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 8,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Engine_Capacity_(CC)': 1386,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 6,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 6,\n",
+ " 'Vehicle_Manoeuvre': 9,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b711'),\n",
- " 'loc': {'coordinates': [-0.795376, 52.008218], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 8006,\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
+ " 'LSOA_of_Accident_Location': 'E01016747',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.008218,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S077082',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
" '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1034,\n",
- " 'Accident_Index': '201243S078062',\n",
- " 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 7,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Accident_Severity': 2,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.795376,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 60,\n",
+ " 'Date': '23/08/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 8, 23, 14, 0),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.795376, 52.008218]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b715'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 7,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 2,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 2,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 2,\n",
+ " 'Age_Band_of_Casualty': 2,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 1,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 2,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 3,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 3,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 2,\n",
+ " 'Age_Band_of_Casualty': 1,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 6,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 3,\n",
- " 'Casualty_Reference': 4,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 4,\n",
+ " 'Casualty_Home_Area_Type': 3,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2},\n",
- " {'Age_Band_of_Casualty': 3,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 1,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 3,\n",
- " 'Casualty_Reference': 5,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 5,\n",
+ " 'Casualty_Home_Area_Type': 3,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 1,\n",
+ " 'Age_Band_of_Casualty': 3,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2},\n",
- " {'Age_Band_of_Casualty': 3,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 2,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 3,\n",
- " 'Casualty_Reference': 6,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 6,\n",
+ " 'Casualty_Home_Area_Type': 3,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 2,\n",
+ " 'Age_Band_of_Casualty': 3,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2},\n",
- " {'Age_Band_of_Casualty': 2,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 2,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 3,\n",
- " 'Casualty_Reference': 7,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 7,\n",
+ " 'Casualty_Home_Area_Type': 3,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 2,\n",
+ " 'Age_Band_of_Casualty': 2,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2},\n",
- " {'Age_Band_of_Casualty': 6,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 8,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 3,\n",
+ " 'Casualty_Reference': 8,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 3}],\n",
- " 'Date': '19/06/2012',\n",
- " 'Datetime': datetime.datetime(2012, 6, 19, 8, 35),\n",
- " 'Day_of_Week': 3,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 3,\n",
- " 'LSOA_of_Accident_Location': 'E01016779',\n",
- " 'Latitude': 52.006938,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 482320,\n",
- " 'Location_Northing_OSGR': 234960,\n",
- " 'Longitude': -0.802112,\n",
- " 'Number_of_Casualties': 8,\n",
- " 'Number_of_Vehicles': 3,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 60,\n",
+ " '1st_Road_Number': 8006,\n",
" 'Time': '08:35',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 4,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': 11,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 9,\n",
- " 'Engine_Capacity_(CC)': 796,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 3,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 1034,\n",
+ " 'Location_Northing_OSGR': 234960,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 3,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 482320,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 3,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 8,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Engine_Capacity_(CC)': 796,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 8,\n",
- " 'Driver_Home_Area_Type': 3,\n",
- " 'Driver_IMD_Decile': 10,\n",
- " 'Engine_Capacity_(CC)': 1668,\n",
+ " 'Age_Band_of_Driver': 7,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 4,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 3,\n",
- " 'Junction_Location': 1,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
+ " 'Age_of_Vehicle': 11,\n",
+ " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 10,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1668,\n",
" 'Vehicle_Reference': 2,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 4,\n",
" 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 11,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 8,\n",
- " 'Engine_Capacity_(CC)': 1896,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 2,\n",
- " 'Junction_Location': 1,\n",
- " 'Propulsion_Code': 2,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
" 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 3,\n",
+ " 'Driver_Home_Area_Type': 3,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 8,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 8,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 8,\n",
+ " 'Engine_Capacity_(CC)': 1896,\n",
" 'Vehicle_Reference': 3,\n",
+ " 'Age_Band_of_Driver': 6,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 4,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 2,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': 11,\n",
+ " 'Vehicle_Manoeuvre': 8,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b715'),\n",
- " 'loc': {'coordinates': [-0.802112, 52.006938], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 8006,\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
+ " 'LSOA_of_Accident_Location': 'E01016779',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.006938,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S078062',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
" '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1034,\n",
- " 'Accident_Index': '201243S068122',\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 5,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.802112,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 60,\n",
+ " 'Date': '19/06/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 6, 19, 8, 35),\n",
+ " 'Number_of_Casualties': 8,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.802112, 52.006938]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b6e4'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 2,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 2,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 5,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1}],\n",
- " 'Date': '13/12/2012',\n",
- " 'Datetime': datetime.datetime(2012, 12, 13, 22, 30),\n",
- " 'Day_of_Week': 5,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 3,\n",
- " 'LSOA_of_Accident_Location': 'E01016747',\n",
- " 'Latitude': 52.006276,\n",
- " 'Light_Conditions': 4,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 482303,\n",
- " 'Location_Northing_OSGR': 234886,\n",
- " 'Longitude': -0.802377,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 1,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 60,\n",
+ " '1st_Road_Number': 8006,\n",
" 'Time': '22:30',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 4,\n",
- " 'Age_Band_of_Driver': 5,\n",
- " 'Age_of_Vehicle': 11,\n",
- " 'Driver_Home_Area_Type': 2,\n",
- " 'Driver_IMD_Decile': 8,\n",
- " 'Engine_Capacity_(CC)': 1199,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 2,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 1034,\n",
+ " 'Location_Northing_OSGR': 234886,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 1,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 482303,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 5,\n",
+ " 'Light_Conditions': 4,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 8,\n",
+ " 'Vehicle_Leaving_Carriageway': 7,\n",
" 'Junction_Location': 1,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 1,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 7,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1199,\n",
" 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 5,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 2,\n",
+ " '1st_Point_of_Impact': 4,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 2,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 11,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b6e4'),\n",
- " 'loc': {'coordinates': [-0.802377, 52.006276], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 9002,\n",
- " '2nd_Road_Class': -1,\n",
- " '2nd_Road_Number': 0,\n",
- " 'Accident_Index': '201243S114032',\n",
- " 'Accident_Severity': 2,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 7,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
- " 'Casualty_Class': 3,\n",
- " 'Casualty_Home_Area_Type': -1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 2,\n",
- " 'Casualty_Type': 0,\n",
- " 'Pedestrian_Location': 5,\n",
- " 'Pedestrian_Movement': 3,\n",
- " 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1}],\n",
- " 'Date': '19/03/2012',\n",
- " 'Datetime': datetime.datetime(2012, 3, 19, 14, 48),\n",
- " 'Day_of_Week': 2,\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
+ " 'LSOA_of_Accident_Location': 'E01016747',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.006276,\n",
+ " 'Local_Authority_(District)': 479,\n",
" 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': -1,\n",
- " 'Junction_Detail': 0,\n",
- " 'LSOA_of_Accident_Location': 'E01016779',\n",
- " 'Latitude': 52.015618,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 481980,\n",
- " 'Location_Northing_OSGR': 235920,\n",
- " 'Longitude': -0.806835,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 1,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Accident_Index': '201243S068122',\n",
" 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
- " 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 6,\n",
+ " '1st_Road_Class': 5,\n",
+ " '2nd_Road_Class': 6,\n",
+ " 'Accident_Severity': 3,\n",
" 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.802377,\n",
+ " 'Junction_Control': 4,\n",
" 'Speed_limit': 60,\n",
+ " 'Date': '13/12/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 12, 13, 22, 30),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.802377, 52.006276]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b7c9'),\n",
+ " 'Casualties': [{'Casualty_Severity': 2,\n",
+ " 'Casualty_Class': 3,\n",
+ " 'Casualty_Type': 0,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': -1,\n",
+ " 'Pedestrian_Location': 5,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 7,\n",
+ " 'Pedestrian_Road_Maintenance_Worker': 0,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 3,\n",
+ " 'Sex_of_Casualty': 1}],\n",
+ " 'Road_Surface_Conditions': 1,\n",
+ " '1st_Road_Number': 9002,\n",
" 'Time': '14:48',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 3,\n",
- " 'Age_Band_of_Driver': -1,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': -1,\n",
- " 'Driver_IMD_Decile': -1,\n",
- " 'Engine_Capacity_(CC)': -1,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 0,\n",
+ " 'Location_Northing_OSGR': 235920,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 1,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 481980,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 2,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': -1,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': -1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': -1,\n",
" 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': -1,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 3,\n",
" 'Vehicle_Type': 5,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': -1,\n",
+ " 'Propulsion_Code': -1,\n",
+ " 'Age_of_Vehicle': -1,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b7c9'),\n",
- " 'loc': {'coordinates': [-0.806835, 52.015618], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 9002,\n",
- " '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1034,\n",
- " 'Accident_Index': '201243S061062',\n",
- " 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 7,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 1,\n",
+ " 'Junction_Detail': 0,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
+ " 'LSOA_of_Accident_Location': 'E01016779',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.015618,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S114032',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
+ " '2nd_Road_Class': -1,\n",
+ " 'Accident_Severity': 2,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.806835,\n",
+ " 'Junction_Control': -1,\n",
+ " 'Speed_limit': 60,\n",
+ " 'Date': '19/03/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 3, 19, 14, 48),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.806835, 52.015618]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b6c2'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 3,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 3,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 1,\n",
+ " 'Age_Band_of_Casualty': 7,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2},\n",
- " {'Age_Band_of_Casualty': 7,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 3,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 3,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 7,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '15/06/2012',\n",
- " 'Datetime': datetime.datetime(2012, 6, 15, 20, 20),\n",
- " 'Day_of_Week': 6,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 2,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 3,\n",
- " 'LSOA_of_Accident_Location': 'E01016779',\n",
- " 'Latitude': 52.014983,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 482020,\n",
- " 'Location_Northing_OSGR': 235850,\n",
- " 'Longitude': -0.806269,\n",
- " 'Number_of_Casualties': 2,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 60,\n",
+ " '1st_Road_Number': 9002,\n",
" 'Time': '20:20',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 4,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': -1,\n",
- " 'Driver_IMD_Decile': -1,\n",
- " 'Engine_Capacity_(CC)': -1,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 1,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 1034,\n",
+ " 'Location_Northing_OSGR': 235850,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 482020,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 6,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': -1,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 6,\n",
- " 'Propulsion_Code': -1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Engine_Capacity_(CC)': -1,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 90,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 1,\n",
" 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': 3,\n",
- " 'Driver_Home_Area_Type': 3,\n",
- " 'Driver_IMD_Decile': 10,\n",
- " 'Engine_Capacity_(CC)': 1796,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " '1st_Point_of_Impact': 4,\n",
+ " 'Vehicle_Type': 90,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 1,\n",
+ " 'Driver_Home_Area_Type': -1,\n",
+ " 'Propulsion_Code': -1,\n",
+ " 'Age_of_Vehicle': -1,\n",
+ " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 10,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 1,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1796,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 7,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 3,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 3,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b6c2'),\n",
- " 'loc': {'coordinates': [-0.806269, 52.014983], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 9002,\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
+ " 'LSOA_of_Accident_Location': 'E01016779',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.014983,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 2,\n",
+ " 'Accident_Index': '201243S061062',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
" '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1056,\n",
- " 'Accident_Index': '201243S059072',\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 6,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.806269,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 60,\n",
+ " 'Date': '15/06/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 6, 15, 20, 20),\n",
+ " 'Number_of_Casualties': 2,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.806269, 52.014983]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b6b5'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '09/07/2012',\n",
- " 'Datetime': datetime.datetime(2012, 7, 9, 18, 28),\n",
- " 'Day_of_Week': 2,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 3,\n",
- " 'LSOA_of_Accident_Location': 'E01016779',\n",
- " 'Latitude': 52.01453,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 482040,\n",
- " 'Location_Northing_OSGR': 235800,\n",
- " 'Longitude': -0.805989,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 60,\n",
+ " '1st_Road_Number': 9002,\n",
" 'Time': '18:28',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 4,\n",
- " 'Age_of_Vehicle': 10,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 9,\n",
- " 'Engine_Capacity_(CC)': 973,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 1056,\n",
+ " 'Location_Northing_OSGR': 235800,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 482040,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 2,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 1,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 973,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 2,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 8,\n",
- " 'Engine_Capacity_(CC)': 1248,\n",
+ " 'Age_Band_of_Driver': 4,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 1,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
+ " 'Age_of_Vehicle': 10,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 8,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 3,\n",
+ " 'Engine_Capacity_(CC)': 1248,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 6,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 2,\n",
+ " 'Vehicle_Manoeuvre': 3,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b6b5'),\n",
- " 'loc': {'coordinates': [-0.805989, 52.01453], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 9002,\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
+ " 'LSOA_of_Accident_Location': 'E01016779',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.01453,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S059072',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
" '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1034,\n",
- " 'Accident_Index': '201243S101032',\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 7,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.805989,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 60,\n",
+ " 'Date': '09/07/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 7, 9, 18, 28),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.805989, 52.01453]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b788'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': -1,\n",
- " 'Casualty_Reference': 3,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 3,\n",
+ " 'Casualty_Home_Area_Type': -1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 7,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 8,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': -1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': -1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 8,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2},\n",
- " {'Age_Band_of_Casualty': 8,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 11,\n",
+ " 'Vehicle_Reference': 3,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 8,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 3}],\n",
- " 'Date': '07/03/2012',\n",
- " 'Datetime': datetime.datetime(2012, 3, 7, 9, 5),\n",
- " 'Day_of_Week': 4,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 3,\n",
- " 'LSOA_of_Accident_Location': 'E01016779',\n",
- " 'Latitude': 52.01243,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 482260,\n",
- " 'Location_Northing_OSGR': 235570,\n",
- " 'Longitude': -0.802839,\n",
- " 'Number_of_Casualties': 3,\n",
- " 'Number_of_Vehicles': 3,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 60,\n",
+ " '1st_Road_Number': 9002,\n",
" 'Time': '09:05',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': 8,\n",
- " 'Driver_Home_Area_Type': -1,\n",
- " 'Driver_IMD_Decile': -1,\n",
- " 'Engine_Capacity_(CC)': 1240,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 2,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 1034,\n",
+ " 'Location_Northing_OSGR': 235570,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 3,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 482260,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 4,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': -1,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 8,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Engine_Capacity_(CC)': 1240,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 8,\n",
- " 'Age_of_Vehicle': 14,\n",
- " 'Driver_Home_Area_Type': -1,\n",
- " 'Driver_IMD_Decile': -1,\n",
- " 'Engine_Capacity_(CC)': 1400,\n",
+ " 'Age_Band_of_Driver': 7,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 2,\n",
- " 'Junction_Location': 1,\n",
+ " 'Driver_Home_Area_Type': -1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
+ " 'Age_of_Vehicle': 8,\n",
+ " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': -1,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 1,\n",
" 'Skidding_and_Overturning': 1,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1400,\n",
" 'Vehicle_Reference': 2,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 3,\n",
" 'Age_Band_of_Driver': 8,\n",
- " 'Age_of_Vehicle': 3,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 9,\n",
- " 'Engine_Capacity_(CC)': 4250,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 1,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 2,\n",
+ " 'Driver_Home_Area_Type': -1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 14,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 1,\n",
- " 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 10,\n",
+ " 'Engine_Capacity_(CC)': 4250,\n",
" 'Vehicle_Reference': 3,\n",
+ " 'Age_Band_of_Driver': 8,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 3,\n",
" 'Vehicle_Type': 11,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 1,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': 3,\n",
+ " 'Vehicle_Manoeuvre': 10,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 2,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b788'),\n",
- " 'loc': {'coordinates': [-0.802839, 52.01243], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 9002,\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
+ " 'LSOA_of_Accident_Location': 'E01016779',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.01243,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S101032',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
" '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1034,\n",
- " 'Accident_Index': '201243S124032',\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 8,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.802839,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 60,\n",
+ " 'Date': '07/03/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 3, 7, 9, 5),\n",
+ " 'Number_of_Casualties': 3,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.802839, 52.01243]},\n",
+ " 'Weather_Conditions': 2},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b801'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 8,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 7,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 2,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 2,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 7,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '19/03/2012',\n",
- " 'Datetime': datetime.datetime(2012, 3, 19, 17, 40),\n",
- " 'Day_of_Week': 2,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 3,\n",
- " 'LSOA_of_Accident_Location': 'E01016779',\n",
- " 'Latitude': 52.01234,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 482260,\n",
- " 'Location_Northing_OSGR': 235560,\n",
- " 'Longitude': -0.802842,\n",
- " 'Number_of_Casualties': 2,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 60,\n",
+ " '1st_Road_Number': 9002,\n",
" 'Time': '17:40',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 3,\n",
- " 'Age_Band_of_Driver': 8,\n",
- " 'Age_of_Vehicle': 10,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 9,\n",
- " 'Engine_Capacity_(CC)': 1149,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 6,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 1034,\n",
+ " 'Location_Northing_OSGR': 235560,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 482260,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 2,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 6,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Engine_Capacity_(CC)': 1149,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': 2,\n",
- " 'Driver_Home_Area_Type': 2,\n",
- " 'Driver_IMD_Decile': 8,\n",
- " 'Engine_Capacity_(CC)': 1968,\n",
+ " 'Age_Band_of_Driver': 8,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 3,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 10,\n",
+ " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 8,\n",
+ " 'Vehicle_Leaving_Carriageway': 7,\n",
" 'Junction_Location': 1,\n",
- " 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 7,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1968,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 7,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 2,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': 2,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b801'),\n",
- " 'loc': {'coordinates': [-0.802842, 52.01234], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 9002,\n",
- " '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1034,\n",
- " 'Accident_Index': '201243S018112',\n",
- " 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 5,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
- " 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 2,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
- " 'Casualty_Type': 5,\n",
- " 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
- " 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '07/11/2012',\n",
- " 'Datetime': datetime.datetime(2012, 11, 7, 16, 23),\n",
- " 'Day_of_Week': 4,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
" 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
" 'LSOA_of_Accident_Location': 'E01016779',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
" 'Latitude': 52.01234,\n",
- " 'Light_Conditions': 4,\n",
" 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 482260,\n",
- " 'Location_Northing_OSGR': 235560,\n",
- " 'Longitude': -0.802842,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S124032',\n",
" 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
- " 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 6,\n",
+ " '1st_Road_Class': 5,\n",
+ " '2nd_Road_Class': 6,\n",
+ " 'Accident_Severity': 3,\n",
" 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.802842,\n",
+ " 'Junction_Control': 4,\n",
" 'Speed_limit': 60,\n",
+ " 'Date': '19/03/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 3, 19, 17, 40),\n",
+ " 'Number_of_Casualties': 2,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.802842, 52.01234]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b5f8'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
+ " 'Casualty_Class': 1,\n",
+ " 'Casualty_Type': 5,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 2,\n",
+ " 'Pedestrian_Location': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 5,\n",
+ " 'Pedestrian_Road_Maintenance_Worker': 0,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
+ " 'Road_Surface_Conditions': 1,\n",
+ " '1st_Road_Number': 9002,\n",
" 'Time': '16:23',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 11,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 9,\n",
- " 'Engine_Capacity_(CC)': -1,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 1034,\n",
+ " 'Location_Northing_OSGR': 235560,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 482260,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 4,\n",
+ " 'Light_Conditions': 4,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 6,\n",
- " 'Propulsion_Code': -1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Engine_Capacity_(CC)': -1,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 3,\n",
- " 'Age_Band_of_Driver': 5,\n",
- " 'Age_of_Vehicle': 2,\n",
- " 'Driver_Home_Area_Type': 2,\n",
- " 'Driver_IMD_Decile': 8,\n",
- " 'Engine_Capacity_(CC)': 649,\n",
+ " 'Age_Band_of_Driver': 11,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': -1,\n",
+ " 'Age_of_Vehicle': -1,\n",
+ " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 8,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 5,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Engine_Capacity_(CC)': 649,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 5,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 3,\n",
" 'Vehicle_Type': 5,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 2,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 2,\n",
+ " 'Vehicle_Manoeuvre': 9,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b5f8'),\n",
- " 'loc': {'coordinates': [-0.802842, 52.01234], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 9003,\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
+ " 'LSOA_of_Accident_Location': 'E01016779',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.01234,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S018112',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
" '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1056,\n",
- " 'Accident_Index': '201243S078042',\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 9,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.802842,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 60,\n",
+ " 'Date': '07/11/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 11, 7, 16, 23),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.802842, 52.01234]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b713'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 9,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '23/04/2012',\n",
- " 'Datetime': datetime.datetime(2012, 4, 23, 16, 10),\n",
- " 'Day_of_Week': 2,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 3,\n",
- " 'LSOA_of_Accident_Location': 'E01016779',\n",
- " 'Latitude': 52.018337,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 483040,\n",
- " 'Location_Northing_OSGR': 236240,\n",
- " 'Longitude': -0.791315,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 60,\n",
+ " '1st_Road_Number': 9003,\n",
" 'Time': '16:10',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 3,\n",
- " 'Age_Band_of_Driver': 9,\n",
- " 'Age_of_Vehicle': 5,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 5,\n",
- " 'Engine_Capacity_(CC)': 4250,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 1,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 1056,\n",
+ " 'Location_Northing_OSGR': 236240,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 483040,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 2,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 5,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 6,\n",
- " 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Engine_Capacity_(CC)': 4250,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 20,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 1,\n",
" 'Age_Band_of_Driver': 9,\n",
- " 'Age_of_Vehicle': 10,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 10,\n",
- " 'Engine_Capacity_(CC)': 1299,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " '1st_Point_of_Impact': 3,\n",
+ " 'Vehicle_Type': 20,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 1,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': 5,\n",
+ " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 10,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 1,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 1,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1299,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 9,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 10,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b713'),\n",
- " 'loc': {'coordinates': [-0.791315, 52.018337], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 8006,\n",
- " '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1056,\n",
- " 'Accident_Index': '201243S012072',\n",
- " 'Accident_Severity': 2,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 5,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
- " 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 2,\n",
- " 'Casualty_Type': 9,\n",
- " 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
- " 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '03/07/2012',\n",
- " 'Datetime': datetime.datetime(2012, 7, 3, 20, 25),\n",
- " 'Day_of_Week': 3,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
" 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
" 'LSOA_of_Accident_Location': 'E01016779',\n",
- " 'Latitude': 52.01463,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 483180,\n",
- " 'Location_Northing_OSGR': 235830,\n",
- " 'Longitude': -0.789375,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
" 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.018337,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S078042',\n",
" 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
- " 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 6,\n",
+ " '1st_Road_Class': 5,\n",
+ " '2nd_Road_Class': 6,\n",
+ " 'Accident_Severity': 3,\n",
" 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.791315,\n",
+ " 'Junction_Control': 4,\n",
" 'Speed_limit': 60,\n",
+ " 'Date': '23/04/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 4, 23, 16, 10),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.791315, 52.018337]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b5e2'),\n",
+ " 'Casualties': [{'Casualty_Severity': 2,\n",
+ " 'Casualty_Class': 1,\n",
+ " 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
+ " 'Pedestrian_Location': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 5,\n",
+ " 'Pedestrian_Road_Maintenance_Worker': 0,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
+ " 'Road_Surface_Conditions': 2,\n",
+ " '1st_Road_Number': 8006,\n",
" 'Time': '20:25',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': 2,\n",
- " 'Driver_IMD_Decile': 8,\n",
- " 'Engine_Capacity_(CC)': 1968,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 2,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 1056,\n",
+ " 'Location_Northing_OSGR': 235830,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 483180,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 3,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 8,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 8,\n",
- " 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Engine_Capacity_(CC)': 1968,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 5,\n",
- " 'Age_of_Vehicle': 4,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 8,\n",
- " 'Engine_Capacity_(CC)': 1229,\n",
+ " 'Age_Band_of_Driver': 6,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 2,\n",
+ " 'Driver_Home_Area_Type': 2,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': -1,\n",
+ " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 8,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 1,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1229,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 5,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 2,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 4,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 2,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b5e2'),\n",
- " 'loc': {'coordinates': [-0.789375, 52.01463], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 8006,\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
+ " 'LSOA_of_Accident_Location': 'E01016779',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.01463,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S012072',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
" '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1056,\n",
- " 'Accident_Index': '201243S075032',\n",
- " 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 5,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Accident_Severity': 2,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.789375,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 60,\n",
+ " 'Date': '03/07/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 7, 3, 20, 25),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.789375, 52.01463]},\n",
+ " 'Weather_Conditions': 2},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b702'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 2,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 5,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 2,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 5,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1}],\n",
- " 'Date': '16/03/2012',\n",
- " 'Datetime': datetime.datetime(2012, 3, 16, 17, 20),\n",
- " 'Day_of_Week': 6,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 3,\n",
- " 'LSOA_of_Accident_Location': 'E01016752',\n",
- " 'Latitude': 52.015156,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 483270,\n",
- " 'Location_Northing_OSGR': 235890,\n",
- " 'Longitude': -0.788049,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 60,\n",
+ " '1st_Road_Number': 8006,\n",
" 'Time': '17:20',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 5,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': 2,\n",
- " 'Driver_IMD_Decile': 8,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 1056,\n",
+ " 'Location_Northing_OSGR': 235890,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 483270,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 6,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 8,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 1,\n",
+ " 'Skidding_and_Overturning': 0,\n",
+ " 'Towing_and_Articulation': 0,\n",
+ " 'Vehicle_Location-Restricted_Lane': 0,\n",
" 'Engine_Capacity_(CC)': 883,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 5,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 5,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 1,\n",
+ " 'Driver_Home_Area_Type': 2,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
+ " 'Age_of_Vehicle': -1,\n",
+ " 'Vehicle_Manoeuvre': 13,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 8,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 8,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 13,\n",
- " 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 5,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 7,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 8,\n",
" 'Engine_Capacity_(CC)': 1598,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 6,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 2,\n",
- " 'Junction_Location': 8,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
- " 'Skidding_and_Overturning': 0,\n",
- " 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
- " 'Vehicle_Location-Restricted_Lane': 0,\n",
+ " 'Age_of_Vehicle': 7,\n",
" 'Vehicle_Manoeuvre': 10,\n",
- " 'Vehicle_Reference': 2,\n",
- " 'Vehicle_Type': 9,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b702'),\n",
- " 'loc': {'coordinates': [-0.788049, 52.015156], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 9003,\n",
- " '2nd_Road_Class': 5,\n",
- " '2nd_Road_Number': 8006,\n",
- " 'Accident_Index': '201243S131092',\n",
- " 'Accident_Severity': 2,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 4,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
+ " 'LSOA_of_Accident_Location': 'E01016752',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.015156,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S075032',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
+ " '2nd_Road_Class': 6,\n",
+ " 'Accident_Severity': 3,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.788049,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 60,\n",
+ " 'Date': '16/03/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 3, 16, 17, 20),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.788049, 52.015156]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b81d'),\n",
+ " 'Casualties': [{'Casualty_Severity': 2,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 3,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 2,\n",
" 'Casualty_Type': 3,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 3,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 4,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1}],\n",
- " 'Date': '24/09/2012',\n",
- " 'Datetime': datetime.datetime(2012, 9, 24, 15, 28),\n",
- " 'Day_of_Week': 2,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 1,\n",
- " 'LSOA_of_Accident_Location': 'E01016755',\n",
- " 'Latitude': 52.017279,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 483500,\n",
- " 'Location_Northing_OSGR': 236130,\n",
- " 'Longitude': -0.78464,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 1,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 3,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 70,\n",
+ " '1st_Road_Number': 9003,\n",
" 'Time': '15:28',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 0,\n",
- " 'Age_Band_of_Driver': 4,\n",
- " 'Age_of_Vehicle': 4,\n",
- " 'Driver_Home_Area_Type': 3,\n",
- " 'Driver_IMD_Decile': 9,\n",
- " 'Engine_Capacity_(CC)': 124,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': 8006,\n",
+ " 'Location_Northing_OSGR': 236130,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 1,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 483500,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 2,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 1,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 1,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 7,\n",
+ " 'Engine_Capacity_(CC)': 124,\n",
" 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 4,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 0,\n",
" 'Vehicle_Type': 3,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 3,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 4,\n",
+ " 'Vehicle_Manoeuvre': 7,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b81d'),\n",
- " 'loc': {'coordinates': [-0.78464, 52.017279], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 9002,\n",
- " '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1034,\n",
- " 'Accident_Index': '201243S076032',\n",
- " 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 6,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Junction_Detail': 1,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
+ " 'LSOA_of_Accident_Location': 'E01016755',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.017279,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S131092',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
+ " '2nd_Road_Class': 5,\n",
+ " 'Accident_Severity': 2,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.78464,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 70,\n",
+ " 'Date': '24/09/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 9, 24, 15, 28),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.78464, 52.017279]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b708'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 3,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 3,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '15/03/2012',\n",
- " 'Datetime': datetime.datetime(2012, 3, 15, 13, 51),\n",
- " 'Day_of_Week': 5,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 3,\n",
- " 'LSOA_of_Accident_Location': 'E01016753',\n",
- " 'Latitude': 52.006392,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 482970,\n",
- " 'Location_Northing_OSGR': 234910,\n",
- " 'Longitude': -0.792656,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 60,\n",
+ " '1st_Road_Number': 9002,\n",
" 'Time': '13:51',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 4,\n",
- " 'Age_Band_of_Driver': 5,\n",
- " 'Age_of_Vehicle': 5,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 3,\n",
- " 'Engine_Capacity_(CC)': 1799,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 1034,\n",
+ " 'Location_Northing_OSGR': 234910,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 482970,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 5,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 3,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 6,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Engine_Capacity_(CC)': 1799,\n",
" 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 5,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 4,\n",
" 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 3,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 3,\n",
- " 'Driver_Home_Area_Type': 3,\n",
- " 'Driver_IMD_Decile': 8,\n",
- " 'Engine_Capacity_(CC)': 1896,\n",
- " 'Hit_Object_in_Carriageway': 10,\n",
- " 'Hit_Object_off_Carriageway': 2,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 5,\n",
+ " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 8,\n",
+ " 'Vehicle_Leaving_Carriageway': 1,\n",
" 'Junction_Location': 8,\n",
- " 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 5,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 1,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1896,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 6,\n",
+ " 'Hit_Object_in_Carriageway': 10,\n",
+ " 'Hit_Object_off_Carriageway': 2,\n",
+ " '1st_Point_of_Impact': 3,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 3,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': 3,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b708'),\n",
- " 'loc': {'coordinates': [-0.792656, 52.006392], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 9002,\n",
- " '2nd_Road_Class': 5,\n",
- " '2nd_Road_Number': 8007,\n",
- " 'Accident_Index': '201243S041042',\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
+ " 'LSOA_of_Accident_Location': 'E01016753',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.006392,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S076032',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
+ " '2nd_Road_Class': 6,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 6,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.792656,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 60,\n",
+ " 'Date': '15/03/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 3, 15, 13, 51),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.792656, 52.006392]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b666'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 3,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '16/04/2012',\n",
- " 'Datetime': datetime.datetime(2012, 4, 16, 6, 20),\n",
- " 'Day_of_Week': 2,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 2,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 1,\n",
- " 'LSOA_of_Accident_Location': 'E01016753',\n",
- " 'Latitude': 52.004383,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 483180,\n",
- " 'Location_Northing_OSGR': 234690,\n",
- " 'Longitude': -0.789651,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 1,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 60,\n",
+ " '1st_Road_Number': 9002,\n",
" 'Time': '06:20',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 3,\n",
- " 'Age_Band_of_Driver': -1,\n",
- " 'Age_of_Vehicle': 11,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 9,\n",
+ " 'Road_Type': 1,\n",
+ " '2nd_Road_Number': 8007,\n",
+ " 'Location_Northing_OSGR': 234690,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 483180,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 2,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 4,\n",
+ " 'Skidding_and_Overturning': 0,\n",
+ " 'Towing_and_Articulation': 0,\n",
+ " 'Vehicle_Location-Restricted_Lane': 0,\n",
" 'Engine_Capacity_(CC)': 1587,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': -1,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 3,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 4,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
+ " 'Age_of_Vehicle': 11,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 4,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 8,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
- " 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 7,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 4,\n",
" 'Engine_Capacity_(CC)': 50,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 6,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 3,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 1,\n",
- " 'Junction_Location': 8,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
- " 'Skidding_and_Overturning': 0,\n",
- " 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
- " 'Vehicle_Location-Restricted_Lane': 0,\n",
+ " 'Age_of_Vehicle': 7,\n",
" 'Vehicle_Manoeuvre': 18,\n",
- " 'Vehicle_Reference': 2,\n",
- " 'Vehicle_Type': 3,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b666'),\n",
- " 'loc': {'coordinates': [-0.789651, 52.004383], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 6,\n",
- " '1st_Road_Number': 1034,\n",
- " '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1034,\n",
- " 'Accident_Index': '201243S061052',\n",
+ " 'Junction_Detail': 1,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
+ " 'LSOA_of_Accident_Location': 'E01016753',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.004383,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 2,\n",
+ " 'Accident_Index': '201243S041042',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
+ " '2nd_Road_Class': 5,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 6,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.789651,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 60,\n",
+ " 'Date': '16/04/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 4, 16, 6, 20),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.789651, 52.004383]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b6c1'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 2,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 2,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '10/05/2012',\n",
- " 'Datetime': datetime.datetime(2012, 5, 10, 14, 30),\n",
- " 'Day_of_Week': 5,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 3,\n",
- " 'LSOA_of_Accident_Location': 'E01016753',\n",
- " 'Latitude': 52.005224,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 482970,\n",
- " 'Location_Northing_OSGR': 234780,\n",
- " 'Longitude': -0.792688,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 3,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 30,\n",
+ " '1st_Road_Number': 1034,\n",
" 'Time': '14:30',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 0,\n",
- " 'Age_Band_of_Driver': 9,\n",
- " 'Age_of_Vehicle': 9,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 8,\n",
- " 'Engine_Capacity_(CC)': 1398,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 1034,\n",
+ " 'Location_Northing_OSGR': 234780,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 3,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 482970,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 5,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 8,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 6,\n",
- " 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Engine_Capacity_(CC)': 1398,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 12,\n",
- " 'Driver_Home_Area_Type': 2,\n",
- " 'Driver_IMD_Decile': 8,\n",
- " 'Engine_Capacity_(CC)': 1589,\n",
+ " 'Age_Band_of_Driver': 9,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 0,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': 9,\n",
+ " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 8,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 1,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1589,\n",
" 'Vehicle_Reference': 2,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 8,\n",
- " 'Age_of_Vehicle': 6,\n",
- " 'Driver_Home_Area_Type': 3,\n",
- " 'Driver_IMD_Decile': 10,\n",
- " 'Engine_Capacity_(CC)': 1360,\n",
+ " 'Age_Band_of_Driver': 6,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 8,\n",
+ " 'Driver_Home_Area_Type': 2,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
+ " 'Age_of_Vehicle': 12,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 10,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 8,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 10,\n",
+ " 'Engine_Capacity_(CC)': 1360,\n",
" 'Vehicle_Reference': 3,\n",
+ " 'Age_Band_of_Driver': 8,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 3,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 6,\n",
+ " 'Vehicle_Manoeuvre': 10,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 2,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b6c1'),\n",
- " 'loc': {'coordinates': [-0.792688, 52.005224], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 8007,\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
+ " 'LSOA_of_Accident_Location': 'E01016753',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.005224,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S061052',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 6,\n",
" '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1034,\n",
- " 'Accident_Index': '201243S096052',\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 6,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.792688,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 30,\n",
+ " 'Date': '10/05/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 5, 10, 14, 30),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.792688, 52.005224]},\n",
+ " 'Weather_Conditions': 2},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b772'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '17/05/2012',\n",
- " 'Datetime': datetime.datetime(2012, 5, 17, 18, 40),\n",
- " 'Day_of_Week': 5,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 2,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 3,\n",
- " 'LSOA_of_Accident_Location': 'E01016749',\n",
- " 'Latitude': 52.003155,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 482980,\n",
- " 'Location_Northing_OSGR': 234550,\n",
- " 'Longitude': -0.792598,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 30,\n",
+ " '1st_Road_Number': 8007,\n",
" 'Time': '18:40',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': -1,\n",
- " 'Age_of_Vehicle': 4,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 3,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 1034,\n",
+ " 'Location_Northing_OSGR': 234550,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 482980,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 5,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 3,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 1,\n",
+ " 'Skidding_and_Overturning': 0,\n",
+ " 'Towing_and_Articulation': 0,\n",
+ " 'Vehicle_Location-Restricted_Lane': 0,\n",
" 'Engine_Capacity_(CC)': 4250,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': -1,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 11,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 1,\n",
- " 'Junction_Location': 1,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 1,\n",
+ " 'Age_of_Vehicle': 4,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 8,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
- " 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 11,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 10,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 8,\n",
" 'Engine_Capacity_(CC)': 1298,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 6,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 2,\n",
- " 'Junction_Location': 1,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
- " 'Skidding_and_Overturning': 0,\n",
- " 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
- " 'Vehicle_Location-Restricted_Lane': 0,\n",
+ " 'Age_of_Vehicle': 10,\n",
" 'Vehicle_Manoeuvre': 8,\n",
- " 'Vehicle_Reference': 2,\n",
- " 'Vehicle_Type': 9,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b772'),\n",
- " 'loc': {'coordinates': [-0.792598, 52.003155], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 6,\n",
- " '1st_Road_Number': 1034,\n",
- " '2nd_Road_Class': -1,\n",
- " '2nd_Road_Number': 0,\n",
- " 'Accident_Index': '201243S129072',\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
+ " 'LSOA_of_Accident_Location': 'E01016749',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.003155,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 2,\n",
+ " 'Accident_Index': '201243S096052',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
+ " '2nd_Road_Class': 6,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 6,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.792598,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 30,\n",
+ " 'Date': '17/05/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 5, 17, 18, 40),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.792598, 52.003155]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b815'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 2,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 2,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '28/07/2012',\n",
- " 'Datetime': datetime.datetime(2012, 7, 28, 18, 50),\n",
- " 'Day_of_Week': 7,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 2,\n",
- " 'Junction_Control': -1,\n",
- " 'Junction_Detail': 0,\n",
- " 'LSOA_of_Accident_Location': 'E01016753',\n",
- " 'Latitude': 52.006037,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 482940,\n",
- " 'Location_Northing_OSGR': 234870,\n",
- " 'Longitude': -0.793103,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 3,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 30,\n",
+ " '1st_Road_Number': 1034,\n",
" 'Time': '18:50',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 0,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 2,\n",
- " 'Driver_Home_Area_Type': -1,\n",
- " 'Driver_IMD_Decile': -1,\n",
- " 'Engine_Capacity_(CC)': 1995,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 1,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 0,\n",
+ " 'Location_Northing_OSGR': 234870,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 3,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 482940,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 7,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': -1,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1995,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
" 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 1,\n",
- " 'Driver_Home_Area_Type': 2,\n",
- " 'Driver_IMD_Decile': 8,\n",
- " 'Engine_Capacity_(CC)': 2000,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 0,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 1,\n",
+ " 'Driver_Home_Area_Type': -1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 2,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 8,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 17,\n",
+ " 'Engine_Capacity_(CC)': 2000,\n",
" 'Vehicle_Reference': 2,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 1,\n",
" 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 9,\n",
- " 'Driver_Home_Area_Type': -1,\n",
- " 'Driver_IMD_Decile': -1,\n",
- " 'Engine_Capacity_(CC)': 1596,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 1,\n",
+ " 'Driver_Home_Area_Type': 2,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': 1,\n",
+ " 'Vehicle_Manoeuvre': 17,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': -1,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 17,\n",
+ " 'Engine_Capacity_(CC)': 1596,\n",
" 'Vehicle_Reference': 3,\n",
+ " 'Age_Band_of_Driver': 6,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 1,\n",
+ " 'Driver_Home_Area_Type': -1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 9,\n",
+ " 'Vehicle_Manoeuvre': 17,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b815'),\n",
- " 'loc': {'coordinates': [-0.793103, 52.006037], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 8007,\n",
- " '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1034,\n",
- " 'Accident_Index': '201243S082112',\n",
+ " 'Junction_Detail': 0,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
+ " 'LSOA_of_Accident_Location': 'E01016753',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.006037,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 2,\n",
+ " 'Accident_Index': '201243S129072',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 6,\n",
+ " '2nd_Road_Class': -1,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 8,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.793103,\n",
+ " 'Junction_Control': -1,\n",
+ " 'Speed_limit': 30,\n",
+ " 'Date': '28/07/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 7, 28, 18, 50),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.793103, 52.006037]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b729'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 3,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 3,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 8,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 1}],\n",
- " 'Date': '20/11/2012',\n",
- " 'Datetime': datetime.datetime(2012, 11, 20, 18, 0),\n",
- " 'Day_of_Week': 3,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 2,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 3,\n",
- " 'LSOA_of_Accident_Location': 'E01016749',\n",
- " 'Latitude': 52.003156,\n",
- " 'Light_Conditions': 4,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 482970,\n",
- " 'Location_Northing_OSGR': 234550,\n",
- " 'Longitude': -0.792744,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 3,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 60,\n",
+ " '1st_Road_Number': 8007,\n",
" 'Time': '18:00',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 8,\n",
- " 'Age_of_Vehicle': 11,\n",
- " 'Driver_Home_Area_Type': 3,\n",
- " 'Driver_IMD_Decile': 9,\n",
- " 'Engine_Capacity_(CC)': 1796,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 1034,\n",
+ " 'Location_Northing_OSGR': 234550,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 3,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 482970,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 3,\n",
+ " 'Light_Conditions': 4,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 1,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1796,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': -1,\n",
- " 'Age_of_Vehicle': 5,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 9,\n",
- " 'Engine_Capacity_(CC)': 1799,\n",
+ " 'Age_Band_of_Driver': 8,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 1,\n",
+ " 'Driver_Home_Area_Type': 3,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
+ " 'Age_of_Vehicle': 11,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1799,\n",
" 'Vehicle_Reference': 2,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 0,\n",
" 'Age_Band_of_Driver': -1,\n",
- " 'Age_of_Vehicle': 14,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 2,\n",
- " 'Engine_Capacity_(CC)': 1895,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 5,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
+ " 'Age_of_Vehicle': 5,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 2,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 5,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Engine_Capacity_(CC)': 1895,\n",
" 'Vehicle_Reference': 3,\n",
+ " 'Age_Band_of_Driver': -1,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 0,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 14,\n",
+ " 'Vehicle_Manoeuvre': 9,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 2,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b729'),\n",
- " 'loc': {'coordinates': [-0.792744, 52.003156], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 8007,\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
+ " 'LSOA_of_Accident_Location': 'E01016749',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.003156,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 2,\n",
+ " 'Accident_Index': '201243S082112',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
" '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1034,\n",
- " 'Accident_Index': '201243S016082',\n",
- " 'Accident_Severity': 2,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 8,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Accident_Severity': 3,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.792744,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 60,\n",
+ " 'Date': '20/11/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 11, 20, 18, 0),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.792744, 52.003156]},\n",
+ " 'Weather_Conditions': 2},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b5f2'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': -1,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': -1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 8,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 8,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 1,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': -1,\n",
- " 'Casualty_Reference': 3,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 3,\n",
+ " 'Casualty_Home_Area_Type': -1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 1,\n",
+ " 'Age_Band_of_Casualty': 8,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 5,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2},\n",
+ " {'Casualty_Severity': 2,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 2,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 5,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '04/08/2012',\n",
- " 'Datetime': datetime.datetime(2012, 8, 4, 11, 42),\n",
- " 'Day_of_Week': 7,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 3,\n",
- " 'LSOA_of_Accident_Location': 'E01016749',\n",
- " 'Latitude': 52.002975,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 482980,\n",
- " 'Location_Northing_OSGR': 234530,\n",
- " 'Longitude': -0.792603,\n",
- " 'Number_of_Casualties': 3,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 60,\n",
+ " '1st_Road_Number': 8007,\n",
" 'Time': '11:42',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 3,\n",
- " 'Age_Band_of_Driver': 8,\n",
- " 'Age_of_Vehicle': 8,\n",
- " 'Driver_Home_Area_Type': -1,\n",
- " 'Driver_IMD_Decile': -1,\n",
- " 'Engine_Capacity_(CC)': 1598,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 1034,\n",
+ " 'Location_Northing_OSGR': 234530,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 482980,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 7,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': -1,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 8,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Engine_Capacity_(CC)': 1598,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 5,\n",
- " 'Age_of_Vehicle': 9,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 2,\n",
- " 'Engine_Capacity_(CC)': 1388,\n",
+ " 'Age_Band_of_Driver': 8,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 3,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 1,\n",
+ " 'Driver_Home_Area_Type': -1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
+ " 'Age_of_Vehicle': 8,\n",
+ " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 2,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 1,\n",
" 'Skidding_and_Overturning': 1,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1388,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 5,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 9,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b5f2'),\n",
- " 'loc': {'coordinates': [-0.792603, 52.002975], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 6,\n",
- " '1st_Road_Number': 1056,\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
+ " 'LSOA_of_Accident_Location': 'E01016749',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.002975,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S016082',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
" '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1056,\n",
- " 'Accident_Index': '201243S022032',\n",
- " 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 3,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Accident_Severity': 2,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.792603,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 60,\n",
+ " 'Date': '04/08/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 8, 4, 11, 42),\n",
+ " 'Number_of_Casualties': 3,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.792603, 52.002975]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b608'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 3,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 0,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 5,\n",
- " 'Pedestrian_Movement': 1,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 3,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1}],\n",
- " 'Date': '06/03/2012',\n",
- " 'Datetime': datetime.datetime(2012, 3, 6, 15, 50),\n",
- " 'Day_of_Week': 3,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 2,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 3,\n",
- " 'LSOA_of_Accident_Location': 'E01016753',\n",
- " 'Latitude': 52.008133,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 483350,\n",
- " 'Location_Northing_OSGR': 235110,\n",
- " 'Longitude': -0.787073,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 1,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 1,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 30,\n",
+ " '1st_Road_Number': 1056,\n",
" 'Time': '15:50',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': 8,\n",
- " 'Age_of_Vehicle': 5,\n",
- " 'Driver_Home_Area_Type': -1,\n",
- " 'Driver_IMD_Decile': -1,\n",
- " 'Engine_Capacity_(CC)': 2204,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 3,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 1056,\n",
+ " 'Location_Northing_OSGR': 235110,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 1,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 483350,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 3,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': -1,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 1,\n",
- " 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 1,\n",
+ " 'Engine_Capacity_(CC)': 2204,\n",
" 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 8,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
" 'Vehicle_Type': 8,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 3,\n",
+ " 'Driver_Home_Area_Type': -1,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': 5,\n",
+ " 'Vehicle_Manoeuvre': 1,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b608'),\n",
- " 'loc': {'coordinates': [-0.787073, 52.008133], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 3,\n",
- " '1st_Road_Number': 421,\n",
- " '2nd_Road_Class': 5,\n",
- " '2nd_Road_Number': 9002,\n",
- " 'Accident_Index': '201243S028092',\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
+ " 'LSOA_of_Accident_Location': 'E01016753',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.008133,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 2,\n",
+ " 'Accident_Index': '201243S022032',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 6,\n",
+ " '2nd_Road_Class': 6,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 10,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.787073,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 30,\n",
+ " 'Date': '06/03/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 3, 6, 15, 50),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.787073, 52.008133]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b624'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 10,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '07/09/2012',\n",
- " 'Datetime': datetime.datetime(2012, 9, 7, 10, 10),\n",
- " 'Day_of_Week': 6,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 1,\n",
- " 'LSOA_of_Accident_Location': 'E01016751',\n",
- " 'Latitude': 51.998006,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 484340,\n",
- " 'Location_Northing_OSGR': 234000,\n",
- " 'Longitude': -0.772926,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 3,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 70,\n",
+ " '1st_Road_Number': 421,\n",
" 'Time': '10:10',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 3,\n",
- " 'Age_Band_of_Driver': 11,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': -1,\n",
- " 'Driver_IMD_Decile': -1,\n",
- " 'Engine_Capacity_(CC)': 1197,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': 9002,\n",
+ " 'Location_Northing_OSGR': 234000,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 484340,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 6,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': -1,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 4,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1197,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 10,\n",
- " 'Age_of_Vehicle': 3,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 8,\n",
- " 'Engine_Capacity_(CC)': 1596,\n",
+ " 'Age_Band_of_Driver': 11,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 3,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 8,\n",
+ " 'Driver_Home_Area_Type': -1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
+ " 'Age_of_Vehicle': -1,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 8,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 8,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1596,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 10,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 3,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b624'),\n",
- " 'loc': {'coordinates': [-0.772926, 51.998006], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 9002,\n",
- " '2nd_Road_Class': -1,\n",
- " '2nd_Road_Number': 0,\n",
- " 'Accident_Index': '201243S118122',\n",
+ " 'Junction_Detail': 1,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016751',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 51.998006,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S028092',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 3,\n",
+ " '2nd_Road_Class': 5,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 5,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.772926,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 70,\n",
+ " 'Date': '07/09/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 9, 7, 10, 10),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.772926, 51.998006]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b7e5'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 5,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1}],\n",
- " 'Date': '22/12/2012',\n",
- " 'Datetime': datetime.datetime(2012, 12, 22, 14, 45),\n",
- " 'Day_of_Week': 7,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': -1,\n",
- " 'Junction_Detail': 0,\n",
- " 'LSOA_of_Accident_Location': 'E01016751',\n",
- " 'Latitude': 51.998359,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 484326,\n",
- " 'Location_Northing_OSGR': 234039,\n",
- " 'Longitude': -0.77312,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 1,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 60,\n",
+ " '1st_Road_Number': 9002,\n",
" 'Time': '14:45',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 5,\n",
- " 'Age_of_Vehicle': 7,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 4,\n",
- " 'Engine_Capacity_(CC)': 1299,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 1,\n",
- " 'Journey_Purpose_of_Driver': 5,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 0,\n",
+ " 'Location_Northing_OSGR': 234039,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 1,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 484326,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 7,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 4,\n",
+ " 'Vehicle_Leaving_Carriageway': 1,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 1,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1299,\n",
" 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 5,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 1,\n",
+ " '1st_Point_of_Impact': 1,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 5,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 7,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 2,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b7e5'),\n",
- " 'loc': {'coordinates': [-0.77312, 51.998359], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 9,\n",
- " '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1043,\n",
- " 'Accident_Index': '201243S050012',\n",
+ " 'Junction_Detail': 0,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016751',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 51.998359,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S118122',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
+ " '2nd_Road_Class': -1,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 5,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.77312,\n",
+ " 'Junction_Control': -1,\n",
+ " 'Speed_limit': 60,\n",
+ " 'Date': '22/12/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 12, 22, 14, 45),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.77312, 51.998359]},\n",
+ " 'Weather_Conditions': 2},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b68c'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 5,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 7,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 7,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '13/01/2012',\n",
- " 'Datetime': datetime.datetime(2012, 1, 13, 18, 18),\n",
- " 'Day_of_Week': 6,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 3,\n",
- " 'LSOA_of_Accident_Location': 'E01016748',\n",
- " 'Latitude': 52.008898,\n",
- " 'Light_Conditions': 4,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 484240,\n",
- " 'Location_Northing_OSGR': 235210,\n",
- " 'Longitude': -0.774085,\n",
- " 'Number_of_Casualties': 2,\n",
- " 'Number_of_Vehicles': 3,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 60,\n",
+ " '1st_Road_Number': 9,\n",
" 'Time': '18:18',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 5,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 9,\n",
- " 'Engine_Capacity_(CC)': -1,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 1043,\n",
+ " 'Location_Northing_OSGR': 235210,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 3,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 484240,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 6,\n",
+ " 'Light_Conditions': 4,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 8,\n",
- " 'Propulsion_Code': -1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 1,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 9,\n",
- " 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 4,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 9,\n",
" 'Engine_Capacity_(CC)': -1,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 5,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 8,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': -1,\n",
- " 'Sex_of_Driver': 1,\n",
+ " 'Age_of_Vehicle': -1,\n",
+ " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 8,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': -1,\n",
" 'Vehicle_Reference': 2,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 8,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 9,\n",
- " 'Engine_Capacity_(CC)': 1997,\n",
+ " 'Age_Band_of_Driver': 7,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 4,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': -1,\n",
+ " 'Age_of_Vehicle': -1,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 8,\n",
- " 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Engine_Capacity_(CC)': 1997,\n",
" 'Vehicle_Reference': 3,\n",
+ " 'Age_Band_of_Driver': 6,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': 8,\n",
+ " 'Vehicle_Manoeuvre': 9,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b68c'),\n",
- " 'loc': {'coordinates': [-0.774085, 52.008898], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 9,\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
+ " 'LSOA_of_Accident_Location': 'E01016748',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.008898,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S050012',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
" '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1043,\n",
- " 'Accident_Index': '201243S120012',\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 8,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.774085,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 60,\n",
+ " 'Date': '13/01/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 1, 13, 18, 18),\n",
+ " 'Number_of_Casualties': 2,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.774085, 52.008898]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b7eb'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 8,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 9,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 9,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '24/01/2012',\n",
- " 'Datetime': datetime.datetime(2012, 1, 24, 18, 28),\n",
- " 'Day_of_Week': 3,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 3,\n",
- " 'LSOA_of_Accident_Location': 'E01016748',\n",
- " 'Latitude': 52.008898,\n",
- " 'Light_Conditions': 4,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 484240,\n",
- " 'Location_Northing_OSGR': 235210,\n",
- " 'Longitude': -0.774085,\n",
- " 'Number_of_Casualties': 2,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 60,\n",
+ " '1st_Road_Number': 9,\n",
" 'Time': '18:28',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 3,\n",
- " 'Age_Band_of_Driver': 8,\n",
- " 'Age_of_Vehicle': 7,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 10,\n",
- " 'Engine_Capacity_(CC)': 1599,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 1043,\n",
+ " 'Location_Northing_OSGR': 235210,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 484240,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 3,\n",
+ " 'Light_Conditions': 4,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 10,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 6,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Engine_Capacity_(CC)': 1599,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 9,\n",
- " 'Age_of_Vehicle': 5,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 6,\n",
- " 'Engine_Capacity_(CC)': 1398,\n",
+ " 'Age_Band_of_Driver': 8,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 3,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 1,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
+ " 'Age_of_Vehicle': 7,\n",
+ " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 6,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1398,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 9,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 5,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b7eb'),\n",
- " 'loc': {'coordinates': [-0.774085, 52.008898], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 9,\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
+ " 'LSOA_of_Accident_Location': 'E01016748',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.008898,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S120012',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
" '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1043,\n",
- " 'Accident_Index': '201243S132032',\n",
- " 'Accident_Severity': 1,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 6,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Accident_Severity': 3,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.774085,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 60,\n",
+ " 'Date': '24/01/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 1, 24, 18, 28),\n",
+ " 'Number_of_Casualties': 2,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.774085, 52.008898]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b81f'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 9,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1},\n",
+ " {'Casualty_Severity': 1,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 1,\n",
" 'Casualty_Type': 5,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 9,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '30/03/2012',\n",
- " 'Datetime': datetime.datetime(2012, 3, 30, 20, 2),\n",
- " 'Day_of_Week': 6,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 3,\n",
- " 'LSOA_of_Accident_Location': 'E01016748',\n",
- " 'Latitude': 52.009262,\n",
- " 'Light_Conditions': 4,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 484210,\n",
- " 'Location_Northing_OSGR': 235250,\n",
- " 'Longitude': -0.774512,\n",
- " 'Number_of_Casualties': 2,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 60,\n",
+ " '1st_Road_Number': 9,\n",
" 'Time': '20:02',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 9,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 9,\n",
- " 'Engine_Capacity_(CC)': 3246,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 1043,\n",
+ " 'Location_Northing_OSGR': 235250,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 484210,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 6,\n",
+ " 'Light_Conditions': 4,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 6,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Engine_Capacity_(CC)': 3246,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 9,\n",
- " 'Age_of_Vehicle': 8,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 2,\n",
- " 'Engine_Capacity_(CC)': 1450,\n",
+ " 'Age_Band_of_Driver': 6,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 8,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
- " 'Skidding_and_Overturning': 0,\n",
- " 'Towing_and_Articulation': 0,\n",
+ " 'Age_of_Vehicle': 9,\n",
+ " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 2,\n",
" 'Vehicle_Leaving_Carriageway': 7,\n",
+ " 'Junction_Location': 8,\n",
+ " 'Skidding_and_Overturning': 0,\n",
+ " 'Towing_and_Articulation': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1450,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 9,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
" 'Vehicle_Type': 5,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 8,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b81f'),\n",
- " 'loc': {'coordinates': [-0.774512, 52.009262], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 6,\n",
- " '1st_Road_Number': 1043,\n",
- " '2nd_Road_Class': -1,\n",
- " '2nd_Road_Number': 0,\n",
- " 'Accident_Index': '201243S094102',\n",
- " 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 3,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
+ " 'LSOA_of_Accident_Location': 'E01016748',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.009262,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S132032',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
+ " '2nd_Road_Class': 6,\n",
+ " 'Accident_Severity': 1,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.774512,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 60,\n",
+ " 'Date': '30/03/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 3, 30, 20, 2),\n",
+ " 'Number_of_Casualties': 2,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.774512, 52.009262]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b767'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 3,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 0,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 5,\n",
- " 'Pedestrian_Movement': 4,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 3,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 1}],\n",
- " 'Date': '22/10/2012',\n",
- " 'Datetime': datetime.datetime(2012, 10, 22, 16, 35),\n",
- " 'Day_of_Week': 2,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': -1,\n",
- " 'Junction_Detail': 0,\n",
- " 'LSOA_of_Accident_Location': 'E01016756',\n",
- " 'Latitude': 52.008861,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 484480,\n",
- " 'Location_Northing_OSGR': 235210,\n",
- " 'Longitude': -0.770589,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 1,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 4,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 30,\n",
+ " '1st_Road_Number': 1043,\n",
" 'Time': '16:35',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': 9,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 9,\n",
- " 'Engine_Capacity_(CC)': 1587,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 0,\n",
+ " 'Location_Northing_OSGR': 235210,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 1,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 484480,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 2,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1587,\n",
" 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 7,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 9,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b767'),\n",
- " 'loc': {'coordinates': [-0.770589, 52.008861], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 9,\n",
- " '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1043,\n",
- " 'Accident_Index': '201243S069122',\n",
+ " 'Junction_Detail': 0,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016756',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.008861,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S094102',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 6,\n",
+ " '2nd_Road_Class': -1,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 6,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.770589,\n",
+ " 'Junction_Control': -1,\n",
+ " 'Speed_limit': 30,\n",
+ " 'Date': '22/10/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 10, 22, 16, 35),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.770589, 52.008861]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b6e8'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2},\n",
- " {'Age_Band_of_Casualty': 6,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 2,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 2,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '14/12/2012',\n",
- " 'Datetime': datetime.datetime(2012, 12, 14, 17, 20),\n",
- " 'Day_of_Week': 6,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 3,\n",
- " 'LSOA_of_Accident_Location': 'E01016748',\n",
- " 'Latitude': 52.009279,\n",
- " 'Light_Conditions': 4,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 484214,\n",
- " 'Location_Northing_OSGR': 235252,\n",
- " 'Longitude': -0.774453,\n",
- " 'Number_of_Casualties': 2,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 60,\n",
+ " '1st_Road_Number': 9,\n",
" 'Time': '17:20',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 3,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 8,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 9,\n",
- " 'Engine_Capacity_(CC)': 1598,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 1043,\n",
+ " 'Location_Northing_OSGR': 235252,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 484214,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 6,\n",
+ " 'Light_Conditions': 4,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 6,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Engine_Capacity_(CC)': 1598,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 1,\n",
" 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 6,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 7,\n",
- " 'Engine_Capacity_(CC)': 1596,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 3,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 8,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
+ " 'Age_of_Vehicle': 8,\n",
+ " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 7,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 8,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1596,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 6,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 6,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 2,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b6e8'),\n",
- " 'loc': {'coordinates': [-0.774453, 52.009279], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 8007,\n",
- " '2nd_Road_Class': -1,\n",
- " '2nd_Road_Number': 0,\n",
- " 'Accident_Index': '201243S034012',\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
+ " 'LSOA_of_Accident_Location': 'E01016748',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.009279,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S069122',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
+ " '2nd_Road_Class': 6,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 4,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.774453,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 60,\n",
+ " 'Date': '14/12/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 12, 14, 17, 20),\n",
+ " 'Number_of_Casualties': 2,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.774453, 52.009279]},\n",
+ " 'Weather_Conditions': 2},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b63f'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 4,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 7,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 2,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 3,\n",
- " 'Casualty_Reference': 4,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 8,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 4,\n",
+ " 'Casualty_Home_Area_Type': 3,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 2,\n",
+ " 'Age_Band_of_Casualty': 7,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2},\n",
- " {'Age_Band_of_Casualty': 7,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 3,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 7,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 3},\n",
- " {'Age_Band_of_Casualty': 5,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 3,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 4,\n",
+ " 'Casualty_Reference': 3,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 5,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 4}],\n",
- " 'Date': '13/01/2012',\n",
- " 'Datetime': datetime.datetime(2012, 1, 13, 8, 50),\n",
- " 'Day_of_Week': 6,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': -1,\n",
- " 'Junction_Detail': 0,\n",
- " 'LSOA_of_Accident_Location': 'E01016752',\n",
- " 'Latitude': 52.010665,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 483850,\n",
- " 'Location_Northing_OSGR': 235400,\n",
- " 'Longitude': -0.779719,\n",
- " 'Number_of_Casualties': 4,\n",
- " 'Number_of_Vehicles': 4,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 60,\n",
+ " '1st_Road_Number': 8007,\n",
" 'Time': '08:50',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 4,\n",
- " 'Age_of_Vehicle': 7,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 9,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 0,\n",
+ " 'Location_Northing_OSGR': 235400,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 4,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 483850,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 6,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 0,\n",
+ " 'Skidding_and_Overturning': 0,\n",
+ " 'Towing_and_Articulation': 0,\n",
+ " 'Vehicle_Location-Restricted_Lane': 0,\n",
" 'Engine_Capacity_(CC)': 1599,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 4,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 2,\n",
- " 'Junction_Location': 0,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
+ " 'Age_of_Vehicle': 7,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 8,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 0,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
- " 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': 8,\n",
- " 'Driver_Home_Area_Type': 2,\n",
- " 'Driver_IMD_Decile': 8,\n",
" 'Engine_Capacity_(CC)': 1598,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 7,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
+ " 'Vehicle_Type': 8,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 1,\n",
- " 'Junction_Location': 0,\n",
+ " 'Driver_Home_Area_Type': 2,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
+ " 'Age_of_Vehicle': 8,\n",
+ " 'Vehicle_Manoeuvre': 3,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 8,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 0,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 3,\n",
- " 'Vehicle_Reference': 2,\n",
- " 'Vehicle_Type': 8,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 8,\n",
" 'Engine_Capacity_(CC)': -1,\n",
+ " 'Vehicle_Reference': 3,\n",
+ " 'Age_Band_of_Driver': 7,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 0,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': -1,\n",
- " 'Sex_of_Driver': 1,\n",
+ " 'Age_of_Vehicle': -1,\n",
+ " 'Vehicle_Manoeuvre': 3,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 2,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 0,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 3,\n",
- " 'Vehicle_Reference': 3,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': 5,\n",
- " 'Age_of_Vehicle': 7,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 2,\n",
" 'Engine_Capacity_(CC)': 1598,\n",
+ " 'Vehicle_Reference': 4,\n",
+ " 'Age_Band_of_Driver': 5,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 2,\n",
- " 'Junction_Location': 0,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
- " 'Skidding_and_Overturning': 0,\n",
- " 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
- " 'Vehicle_Location-Restricted_Lane': 0,\n",
+ " 'Age_of_Vehicle': 7,\n",
" 'Vehicle_Manoeuvre': 3,\n",
- " 'Vehicle_Reference': 4,\n",
- " 'Vehicle_Type': 9,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b63f'),\n",
- " 'loc': {'coordinates': [-0.779719, 52.010665], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 9,\n",
- " '2nd_Road_Class': 5,\n",
- " '2nd_Road_Number': 8007,\n",
- " 'Accident_Index': '201243S003092',\n",
+ " 'Junction_Detail': 0,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
+ " 'LSOA_of_Accident_Location': 'E01016752',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.010665,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S034012',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
+ " '2nd_Road_Class': -1,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 9,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.779719,\n",
+ " 'Junction_Control': -1,\n",
+ " 'Speed_limit': 60,\n",
+ " 'Date': '13/01/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 1, 13, 8, 50),\n",
+ " 'Number_of_Casualties': 4,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.779719, 52.010665]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b5c2'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 9,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2},\n",
- " {'Age_Band_of_Casualty': 10,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 1,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 1,\n",
+ " 'Age_Band_of_Casualty': 10,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '01/09/2012',\n",
- " 'Datetime': datetime.datetime(2012, 9, 1, 18, 40),\n",
- " 'Day_of_Week': 7,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 1,\n",
- " 'LSOA_of_Accident_Location': 'E01016756',\n",
- " 'Latitude': 52.012165,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 484030,\n",
- " 'Location_Northing_OSGR': 235570,\n",
- " 'Longitude': -0.777056,\n",
- " 'Number_of_Casualties': 2,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 60,\n",
+ " '1st_Road_Number': 9,\n",
" 'Time': '18:40',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 8,\n",
- " 'Age_of_Vehicle': 7,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 8,\n",
- " 'Engine_Capacity_(CC)': 2204,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 8007,\n",
+ " 'Location_Northing_OSGR': 235570,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 484030,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 7,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 8,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 1,\n",
- " 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 2204,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': 9,\n",
- " 'Age_of_Vehicle': 5,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 9,\n",
- " 'Engine_Capacity_(CC)': 1582,\n",
+ " 'Age_Band_of_Driver': 8,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 1,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 2,\n",
+ " 'Age_of_Vehicle': 7,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 7,\n",
+ " 'Engine_Capacity_(CC)': 1582,\n",
" 'Vehicle_Reference': 2,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b5c2'),\n",
- " 'loc': {'coordinates': [-0.777056, 52.012165], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 6,\n",
- " '1st_Road_Number': 1056,\n",
- " '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1056,\n",
- " 'Accident_Index': '201243S030102',\n",
- " 'Accident_Severity': 2,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 4,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Driver': 9,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': 5,\n",
+ " 'Vehicle_Manoeuvre': 7,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
+ " 'Junction_Detail': 1,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
+ " 'LSOA_of_Accident_Location': 'E01016756',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.012165,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S003092',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
+ " '2nd_Road_Class': 5,\n",
+ " 'Accident_Severity': 3,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.777056,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 60,\n",
+ " 'Date': '01/09/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 9, 1, 18, 40),\n",
+ " 'Number_of_Casualties': 2,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.777056, 52.012165]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b62b'),\n",
+ " 'Casualties': [{'Casualty_Severity': 2,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 2,\n",
" 'Casualty_Type': 1,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 4,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1}],\n",
- " 'Date': '06/10/2012',\n",
- " 'Datetime': datetime.datetime(2012, 10, 6, 8, 35),\n",
- " 'Day_of_Week': 7,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 3,\n",
- " 'LSOA_of_Accident_Location': 'E01016755',\n",
- " 'Latitude': 52.016774,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 483870,\n",
- " 'Location_Northing_OSGR': 236080,\n",
- " 'Longitude': -0.779262,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 30,\n",
+ " '1st_Road_Number': 1056,\n",
" 'Time': '08:35',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 4,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 9,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 1056,\n",
+ " 'Location_Northing_OSGR': 236080,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 483870,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 7,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 6,\n",
+ " 'Skidding_and_Overturning': 0,\n",
+ " 'Towing_and_Articulation': 0,\n",
+ " 'Vehicle_Location-Restricted_Lane': 0,\n",
" 'Engine_Capacity_(CC)': -1,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 4,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 1,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 4,\n",
- " 'Junction_Location': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': -1,\n",
- " 'Sex_of_Driver': 1,\n",
+ " 'Age_of_Vehicle': -1,\n",
+ " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 8,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 8,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 9,\n",
- " 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 1,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 4,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 8,\n",
- " 'Driver_Home_Area_Type': 2,\n",
- " 'Driver_IMD_Decile': 8,\n",
" 'Engine_Capacity_(CC)': 1598,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 6,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 4,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 2,\n",
- " 'Junction_Location': 8,\n",
+ " 'Driver_Home_Area_Type': 2,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
- " 'Skidding_and_Overturning': 0,\n",
- " 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
- " 'Vehicle_Location-Restricted_Lane': 0,\n",
+ " 'Age_of_Vehicle': 8,\n",
" 'Vehicle_Manoeuvre': 18,\n",
- " 'Vehicle_Reference': 2,\n",
- " 'Vehicle_Type': 9,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b62b'),\n",
- " 'loc': {'coordinates': [-0.779262, 52.016774], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 129,\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016755',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.016774,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S030102',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 6,\n",
" '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1056,\n",
- " 'Accident_Index': '201243S081032',\n",
- " 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 10,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Accident_Severity': 2,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.779262,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 30,\n",
+ " 'Date': '06/10/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 10, 6, 8, 35),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.779262, 52.016774]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b721'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': -1,\n",
- " 'Casualty_Reference': 3,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 3,\n",
+ " 'Casualty_Home_Area_Type': -1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 10,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 7,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 7,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2},\n",
- " {'Age_Band_of_Casualty': 3,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 1,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 1,\n",
+ " 'Age_Band_of_Casualty': 3,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '12/03/2012',\n",
- " 'Datetime': datetime.datetime(2012, 3, 12, 19, 45),\n",
- " 'Day_of_Week': 2,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 3,\n",
- " 'LSOA_of_Accident_Location': 'E01016755',\n",
- " 'Latitude': 52.02047,\n",
- " 'Light_Conditions': 4,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 484390,\n",
- " 'Location_Northing_OSGR': 236500,\n",
- " 'Longitude': -0.771583,\n",
- " 'Number_of_Casualties': 3,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 60,\n",
+ " '1st_Road_Number': 129,\n",
" 'Time': '19:45',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 10,\n",
- " 'Age_of_Vehicle': 9,\n",
- " 'Driver_Home_Area_Type': -1,\n",
- " 'Driver_IMD_Decile': -1,\n",
- " 'Engine_Capacity_(CC)': 1896,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 1056,\n",
+ " 'Location_Northing_OSGR': 236500,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 484390,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 2,\n",
+ " 'Light_Conditions': 4,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': -1,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 8,\n",
- " 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 9,\n",
- " 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': 7,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 1,\n",
" 'Engine_Capacity_(CC)': 1896,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 10,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 1,\n",
+ " 'Driver_Home_Area_Type': -1,\n",
" 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 1,\n",
+ " 'Age_of_Vehicle': 9,\n",
+ " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 1,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 1,\n",
" 'Skidding_and_Overturning': 1,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1896,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 7,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': 7,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b721'),\n",
- " 'loc': {'coordinates': [-0.771583, 52.02047], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 129,\n",
- " '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1056,\n",
- " 'Accident_Index': '201243S125042',\n",
- " 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 7,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 1,\n",
- " 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
- " 'Casualty_Type': 9,\n",
- " 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
- " 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 1}],\n",
- " 'Date': '26/04/2012',\n",
- " 'Datetime': datetime.datetime(2012, 4, 26, 15, 17),\n",
- " 'Day_of_Week': 5,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
" 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
" 'LSOA_of_Accident_Location': 'E01016755',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
" 'Latitude': 52.02047,\n",
- " 'Light_Conditions': 1,\n",
" 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 484390,\n",
- " 'Location_Northing_OSGR': 236500,\n",
- " 'Longitude': -0.771583,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 3,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S081032',\n",
" 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
- " 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 6,\n",
+ " '1st_Road_Class': 5,\n",
+ " '2nd_Road_Class': 6,\n",
+ " 'Accident_Severity': 3,\n",
" 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.771583,\n",
+ " 'Junction_Control': 4,\n",
" 'Speed_limit': 60,\n",
+ " 'Date': '12/03/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 3, 12, 19, 45),\n",
+ " 'Number_of_Casualties': 3,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.771583, 52.02047]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b805'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
+ " 'Casualty_Class': 2,\n",
+ " 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
+ " 'Pedestrian_Location': 0,\n",
+ " 'Car_Passenger': 1,\n",
+ " 'Age_Band_of_Casualty': 7,\n",
+ " 'Pedestrian_Road_Maintenance_Worker': 0,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
+ " 'Road_Surface_Conditions': 1,\n",
+ " '1st_Road_Number': 129,\n",
" 'Time': '15:17',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 3,\n",
- " 'Age_Band_of_Driver': 8,\n",
- " 'Age_of_Vehicle': 1,\n",
- " 'Driver_Home_Area_Type': -1,\n",
- " 'Driver_IMD_Decile': -1,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 1056,\n",
+ " 'Location_Northing_OSGR': 236500,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 3,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 484390,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 5,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': -1,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 1,\n",
+ " 'Skidding_and_Overturning': 0,\n",
+ " 'Towing_and_Articulation': 0,\n",
+ " 'Vehicle_Location-Restricted_Lane': 0,\n",
" 'Engine_Capacity_(CC)': -1,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 8,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 3,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 1,\n",
- " 'Junction_Location': 1,\n",
+ " 'Driver_Home_Area_Type': -1,\n",
" 'Propulsion_Code': 3,\n",
- " 'Sex_of_Driver': 1,\n",
+ " 'Age_of_Vehicle': 1,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 6,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
- " 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 0,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 11,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 9,\n",
" 'Engine_Capacity_(CC)': 1396,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 6,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 0,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 3,\n",
- " 'Junction_Location': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
+ " 'Age_of_Vehicle': 11,\n",
+ " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 6,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 8,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 9,\n",
- " 'Vehicle_Reference': 2,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 3,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': 2,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 6,\n",
" 'Engine_Capacity_(CC)': 1753,\n",
+ " 'Vehicle_Reference': 3,\n",
+ " 'Age_Band_of_Driver': 7,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 3,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 8,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 2,\n",
- " 'Skidding_and_Overturning': 0,\n",
- " 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
- " 'Vehicle_Location-Restricted_Lane': 0,\n",
+ " 'Age_of_Vehicle': 2,\n",
" 'Vehicle_Manoeuvre': 10,\n",
- " 'Vehicle_Reference': 3,\n",
- " 'Vehicle_Type': 9,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b805'),\n",
- " 'loc': {'coordinates': [-0.771583, 52.02047], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 129,\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
+ " 'LSOA_of_Accident_Location': 'E01016755',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.02047,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S125042',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
" '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1056,\n",
- " 'Accident_Index': '201243S038122',\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 6,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.771583,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 60,\n",
+ " 'Date': '26/04/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 4, 26, 15, 17),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.771583, 52.02047]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b659'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '11/12/2012',\n",
- " 'Datetime': datetime.datetime(2012, 12, 11, 8, 50),\n",
- " 'Day_of_Week': 3,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 2,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 3,\n",
- " 'LSOA_of_Accident_Location': 'E01016755',\n",
- " 'Latitude': 52.020399,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 484387,\n",
- " 'Location_Northing_OSGR': 236492,\n",
- " 'Longitude': -0.771628,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 30,\n",
+ " '1st_Road_Number': 129,\n",
" 'Time': '08:50',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 10,\n",
- " 'Driver_Home_Area_Type': -1,\n",
- " 'Driver_IMD_Decile': -1,\n",
- " 'Engine_Capacity_(CC)': 1870,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 3,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 1056,\n",
+ " 'Location_Northing_OSGR': 236492,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 484387,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 3,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': -1,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 1,\n",
- " 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1870,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
" 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 8,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 8,\n",
- " 'Engine_Capacity_(CC)': 1796,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 1,\n",
- " 'Junction_Location': 1,\n",
- " 'Propulsion_Code': 1,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
" 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 3,\n",
+ " 'Driver_Home_Area_Type': -1,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': 10,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 8,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 3,\n",
+ " 'Engine_Capacity_(CC)': 1796,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 6,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 1,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 8,\n",
+ " 'Vehicle_Manoeuvre': 3,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b659'),\n",
- " 'loc': {'coordinates': [-0.771628, 52.020399], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 8006,\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
+ " 'LSOA_of_Accident_Location': 'E01016755',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.020399,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 2,\n",
+ " 'Accident_Index': '201243S038122',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
" '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1056,\n",
- " 'Accident_Index': '201243S121012',\n",
- " 'Accident_Severity': 2,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 7,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Accident_Severity': 3,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.771628,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 30,\n",
+ " 'Date': '11/12/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 12, 11, 8, 50),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.771628, 52.020399]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b7f0'),\n",
+ " 'Casualties': [{'Casualty_Severity': 2,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 3,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 2,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 3,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 7,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 7,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 7,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '31/01/2012',\n",
- " 'Datetime': datetime.datetime(2012, 1, 31, 20, 43),\n",
- " 'Day_of_Week': 3,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 3,\n",
- " 'LSOA_of_Accident_Location': 'E01016781',\n",
- " 'Latitude': 52.020376,\n",
- " 'Light_Conditions': 4,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 483830,\n",
- " 'Location_Northing_OSGR': 236480,\n",
- " 'Longitude': -0.779747,\n",
- " 'Number_of_Casualties': 2,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 3,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 70,\n",
+ " '1st_Road_Number': 8006,\n",
" 'Time': '20:43',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 4,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': 4,\n",
- " 'Driver_Home_Area_Type': 3,\n",
- " 'Driver_IMD_Decile': 9,\n",
- " 'Engine_Capacity_(CC)': 1339,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': 1056,\n",
+ " 'Location_Northing_OSGR': 236480,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 483830,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 3,\n",
+ " 'Light_Conditions': 4,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 1,\n",
" 'Junction_Location': 8,\n",
- " 'Propulsion_Code': 8,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 1,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Engine_Capacity_(CC)': 1339,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 1,\n",
" 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': 7,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 6,\n",
- " 'Engine_Capacity_(CC)': 1995,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 7,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 4,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 3,\n",
+ " 'Propulsion_Code': 8,\n",
+ " 'Age_of_Vehicle': 4,\n",
+ " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 6,\n",
+ " 'Vehicle_Leaving_Carriageway': 1,\n",
" 'Junction_Location': 1,\n",
- " 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 1,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1995,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 7,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 7,\n",
+ " '1st_Point_of_Impact': 1,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': 7,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b7f0'),\n",
- " 'loc': {'coordinates': [-0.779747, 52.020376], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 8006,\n",
- " '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1056,\n",
- " 'Accident_Index': '201243S060022',\n",
- " 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 6,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
- " 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
- " 'Casualty_Type': 3,\n",
- " 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
- " 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '20/02/2012',\n",
- " 'Datetime': datetime.datetime(2012, 2, 20, 18, 15),\n",
- " 'Day_of_Week': 2,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
" 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
" 'LSOA_of_Accident_Location': 'E01016781',\n",
- " 'Latitude': 52.020822,\n",
- " 'Light_Conditions': 7,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 483850,\n",
- " 'Location_Northing_OSGR': 236530,\n",
- " 'Longitude': -0.779443,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
" 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.020376,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S121012',\n",
" 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
- " 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 3,\n",
+ " '1st_Road_Class': 5,\n",
+ " '2nd_Road_Class': 6,\n",
+ " 'Accident_Severity': 2,\n",
" 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.779747,\n",
+ " 'Junction_Control': 4,\n",
" 'Speed_limit': 70,\n",
+ " 'Date': '31/01/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 1, 31, 20, 43),\n",
+ " 'Number_of_Casualties': 2,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.779747, 52.020376]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b6b9'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
+ " 'Casualty_Class': 1,\n",
+ " 'Casualty_Type': 3,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
+ " 'Pedestrian_Location': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
+ " 'Pedestrian_Road_Maintenance_Worker': 0,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
+ " 'Road_Surface_Conditions': 1,\n",
+ " '1st_Road_Number': 8006,\n",
" 'Time': '18:15',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 4,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': 3,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 9,\n",
- " 'Engine_Capacity_(CC)': 1995,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': 1056,\n",
+ " 'Location_Northing_OSGR': 236530,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 483850,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 2,\n",
+ " 'Light_Conditions': 7,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 8,\n",
- " 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Engine_Capacity_(CC)': 1995,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 6,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 4,\n",
- " 'Engine_Capacity_(CC)': 124,\n",
+ " 'Age_Band_of_Driver': 7,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 4,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': 3,\n",
+ " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 4,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 1,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 124,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 6,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
" 'Vehicle_Type': 3,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 6,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b6b9'),\n",
- " 'loc': {'coordinates': [-0.779443, 52.020822], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 8006,\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016781',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.020822,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S060022',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
" '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1056,\n",
- " 'Accident_Index': '201243S008042',\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 4,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.779443,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 70,\n",
+ " 'Date': '20/02/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 2, 20, 18, 15),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.779443, 52.020822]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b5d2'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 4,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '07/04/2012',\n",
- " 'Datetime': datetime.datetime(2012, 4, 7, 23, 20),\n",
- " 'Day_of_Week': 7,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 2,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 3,\n",
- " 'LSOA_of_Accident_Location': 'E01016781',\n",
- " 'Latitude': 52.020467,\n",
- " 'Light_Conditions': 4,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 483820,\n",
- " 'Location_Northing_OSGR': 236490,\n",
- " 'Longitude': -0.77989,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 3,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 70,\n",
+ " '1st_Road_Number': 8006,\n",
" 'Time': '23:20',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': -1,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': -1,\n",
- " 'Driver_IMD_Decile': -1,\n",
- " 'Engine_Capacity_(CC)': -1,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': 1056,\n",
+ " 'Location_Northing_OSGR': 236490,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 483820,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 7,\n",
+ " 'Light_Conditions': 4,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': -1,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 1,\n",
- " 'Propulsion_Code': -1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': -1,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 8,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 4,\n",
- " 'Age_Band_of_Driver': 4,\n",
- " 'Age_of_Vehicle': 12,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 9,\n",
- " 'Engine_Capacity_(CC)': 1598,\n",
+ " 'Age_Band_of_Driver': -1,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 8,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': -1,\n",
+ " 'Propulsion_Code': -1,\n",
+ " 'Age_of_Vehicle': -1,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 8,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Engine_Capacity_(CC)': 1598,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 4,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 4,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 12,\n",
+ " 'Vehicle_Manoeuvre': 9,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 2,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b5d2'),\n",
- " 'loc': {'coordinates': [-0.77989, 52.020467], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 6,\n",
- " '1st_Road_Number': 1056,\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016781',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.020467,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 2,\n",
+ " 'Accident_Index': '201243S008042',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
" '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1056,\n",
- " 'Accident_Index': '201243S096062',\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 5,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.77989,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 70,\n",
+ " 'Date': '07/04/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 4, 7, 23, 20),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.77989, 52.020467]},\n",
+ " 'Weather_Conditions': 2},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b773'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 1,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 5,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 1}],\n",
- " 'Date': '24/06/2012',\n",
- " 'Datetime': datetime.datetime(2012, 6, 24, 14, 36),\n",
- " 'Day_of_Week': 1,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 3,\n",
- " 'LSOA_of_Accident_Location': 'E01016755',\n",
- " 'Latitude': 52.019376,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 483900,\n",
- " 'Location_Northing_OSGR': 236370,\n",
- " 'Longitude': -0.778754,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 30,\n",
+ " '1st_Road_Number': 1056,\n",
" 'Time': '14:36',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 3,\n",
- " 'Age_Band_of_Driver': 5,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 8,\n",
- " 'Engine_Capacity_(CC)': -1,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 1056,\n",
+ " 'Location_Northing_OSGR': 236370,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 483900,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 1,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 8,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 1,\n",
- " 'Propulsion_Code': -1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': -1,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 1,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 8,\n",
- " 'Age_of_Vehicle': 6,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 9,\n",
- " 'Engine_Capacity_(CC)': 1796,\n",
+ " 'Age_Band_of_Driver': 5,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 3,\n",
+ " 'Vehicle_Type': 1,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': -1,\n",
+ " 'Age_of_Vehicle': -1,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 1,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1796,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 8,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 6,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b773'),\n",
- " 'loc': {'coordinates': [-0.778754, 52.019376], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 8006,\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016755',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.019376,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S096062',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 6,\n",
" '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1056,\n",
- " 'Accident_Index': '201243S001112',\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 7,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.778754,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 30,\n",
+ " 'Date': '24/06/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 6, 24, 14, 36),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.778754, 52.019376]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b5ba'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 7,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 2,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 1,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 1,\n",
+ " 'Age_Band_of_Casualty': 2,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 1}],\n",
- " 'Date': '01/11/2012',\n",
- " 'Datetime': datetime.datetime(2012, 11, 1, 15, 43),\n",
- " 'Day_of_Week': 5,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 3,\n",
- " 'LSOA_of_Accident_Location': 'E01016781',\n",
- " 'Latitude': 52.020467,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 483820,\n",
- " 'Location_Northing_OSGR': 236490,\n",
- " 'Longitude': -0.77989,\n",
- " 'Number_of_Casualties': 2,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 3,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 70,\n",
+ " '1st_Road_Number': 8006,\n",
" 'Time': '15:43',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 4,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': 5,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 9,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': 1056,\n",
+ " 'Location_Northing_OSGR': 236490,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 483820,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 5,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 1,\n",
+ " 'Junction_Location': 8,\n",
+ " 'Skidding_and_Overturning': 0,\n",
+ " 'Towing_and_Articulation': 0,\n",
+ " 'Vehicle_Location-Restricted_Lane': 0,\n",
" 'Engine_Capacity_(CC)': 1686,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 7,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 1,\n",
+ " '1st_Point_of_Impact': 4,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 8,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 2,\n",
+ " 'Age_of_Vehicle': 5,\n",
+ " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 7,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 1,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 9,\n",
- " 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': 2,\n",
- " 'Driver_IMD_Decile': 7,\n",
" 'Engine_Capacity_(CC)': 12913,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 6,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 21,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 1,\n",
- " 'Junction_Location': 1,\n",
+ " 'Driver_Home_Area_Type': 2,\n",
" 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 1,\n",
- " 'Skidding_and_Overturning': 0,\n",
- " 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
- " 'Vehicle_Location-Restricted_Lane': 0,\n",
+ " 'Age_of_Vehicle': -1,\n",
" 'Vehicle_Manoeuvre': 18,\n",
- " 'Vehicle_Reference': 2,\n",
- " 'Vehicle_Type': 21,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b5ba'),\n",
- " 'loc': {'coordinates': [-0.77989, 52.020467], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 8006,\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016781',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.020467,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S001112',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
" '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1056,\n",
- " 'Accident_Index': '201243S085112',\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 11,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.77989,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 70,\n",
+ " 'Date': '01/11/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 11, 1, 15, 43),\n",
+ " 'Number_of_Casualties': 2,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.77989, 52.020467]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b735'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 11,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 6,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '21/11/2012',\n",
- " 'Datetime': datetime.datetime(2012, 11, 21, 12, 9),\n",
- " 'Day_of_Week': 4,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 3,\n",
- " 'LSOA_of_Accident_Location': 'E01016781',\n",
- " 'Latitude': 52.020376,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 483830,\n",
- " 'Location_Northing_OSGR': 236480,\n",
- " 'Longitude': -0.779747,\n",
- " 'Number_of_Casualties': 2,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 3,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 70,\n",
+ " '1st_Road_Number': 8006,\n",
" 'Time': '12:09',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 11,\n",
- " 'Age_of_Vehicle': 13,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 10,\n",
- " 'Engine_Capacity_(CC)': 1587,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': 1056,\n",
+ " 'Location_Northing_OSGR': 236480,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 483830,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 4,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 10,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 6,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 5,\n",
+ " 'Engine_Capacity_(CC)': 1587,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 11,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 5,\n",
- " 'Engine_Capacity_(CC)': 1896,\n",
+ " 'Age_Band_of_Driver': 11,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 13,\n",
+ " 'Vehicle_Manoeuvre': 5,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 5,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 1,\n",
- " 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1896,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 6,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': 11,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 2,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b735'),\n",
- " 'loc': {'coordinates': [-0.779747, 52.020376], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 8006,\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016781',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.020376,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S085112',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
" '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1056,\n",
- " 'Accident_Index': '201243S093122',\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 11,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.779747,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 70,\n",
+ " 'Date': '21/11/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 11, 21, 12, 9),\n",
+ " 'Number_of_Casualties': 2,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.779747, 52.020376]},\n",
+ " 'Weather_Conditions': 2},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b75f'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 11,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 8,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 8,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2},\n",
- " {'Age_Band_of_Casualty': 10,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 1,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 3,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 3,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 1,\n",
+ " 'Age_Band_of_Casualty': 10,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '19/12/2012',\n",
- " 'Datetime': datetime.datetime(2012, 12, 19, 12, 35),\n",
- " 'Day_of_Week': 4,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 3,\n",
- " 'LSOA_of_Accident_Location': 'E01016781',\n",
- " 'Latitude': 52.020366,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 483831,\n",
- " 'Location_Northing_OSGR': 236479,\n",
- " 'Longitude': -0.779732,\n",
- " 'Number_of_Casualties': 3,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 3,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 70,\n",
+ " '1st_Road_Number': 8006,\n",
" 'Time': '12:35',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 3,\n",
- " 'Age_Band_of_Driver': 11,\n",
- " 'Age_of_Vehicle': 5,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 9,\n",
- " 'Engine_Capacity_(CC)': 1400,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': 1056,\n",
+ " 'Location_Northing_OSGR': 236479,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 483831,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 4,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 4,\n",
" 'Junction_Location': 6,\n",
- " 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 4,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Engine_Capacity_(CC)': 1400,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 8,\n",
- " 'Age_of_Vehicle': 9,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 2,\n",
- " 'Engine_Capacity_(CC)': 1994,\n",
+ " 'Age_Band_of_Driver': 11,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 3,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 1,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 2,\n",
+ " 'Age_of_Vehicle': 5,\n",
+ " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 2,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 1,\n",
" 'Skidding_and_Overturning': 1,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1994,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 8,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': 9,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b75f'),\n",
- " 'loc': {'coordinates': [-0.779732, 52.020366], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 129,\n",
- " '2nd_Road_Class': 5,\n",
- " '2nd_Road_Number': 129,\n",
- " 'Accident_Index': '201243S088012',\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016781',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.020366,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S093122',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
+ " '2nd_Road_Class': 6,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 5,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.779732,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 70,\n",
+ " 'Date': '19/12/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 12, 19, 12, 35),\n",
+ " 'Number_of_Casualties': 3,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.779732, 52.020366]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b741'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 5,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '24/01/2012',\n",
- " 'Datetime': datetime.datetime(2012, 1, 24, 18, 40),\n",
- " 'Day_of_Week': 3,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 2,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 3,\n",
- " 'LSOA_of_Accident_Location': 'E01016775',\n",
- " 'Latitude': 52.024537,\n",
- " 'Light_Conditions': 5,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 483650,\n",
- " 'Location_Northing_OSGR': 236940,\n",
- " 'Longitude': -0.782257,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 60,\n",
+ " '1st_Road_Number': 129,\n",
" 'Time': '18:40',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 0,\n",
- " 'Age_Band_of_Driver': -1,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': -1,\n",
- " 'Driver_IMD_Decile': -1,\n",
- " 'Engine_Capacity_(CC)': -1,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 129,\n",
+ " 'Location_Northing_OSGR': 236940,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 483650,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 3,\n",
+ " 'Light_Conditions': 5,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': -1,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 6,\n",
- " 'Propulsion_Code': -1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Engine_Capacity_(CC)': -1,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 19,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 0,\n",
- " 'Age_Band_of_Driver': 5,\n",
- " 'Age_of_Vehicle': 7,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 9,\n",
- " 'Engine_Capacity_(CC)': 998,\n",
- " 'Hit_Object_in_Carriageway': 10,\n",
+ " 'Age_Band_of_Driver': -1,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 0,\n",
+ " 'Vehicle_Type': 19,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': -1,\n",
+ " 'Propulsion_Code': -1,\n",
+ " 'Age_of_Vehicle': -1,\n",
+ " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 1,\n",
" 'Junction_Location': 1,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 1,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 1,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 998,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 5,\n",
+ " 'Hit_Object_in_Carriageway': 10,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 0,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 7,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b741'),\n",
- " 'loc': {'coordinates': [-0.782257, 52.024537], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 8006,\n",
- " '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1085,\n",
- " 'Accident_Index': '201243S002022',\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016775',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.024537,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 2,\n",
+ " 'Accident_Index': '201243S088012',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
+ " '2nd_Road_Class': 5,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 9,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.782257,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 60,\n",
+ " 'Date': '24/01/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 1, 24, 18, 40),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.782257, 52.024537]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b5bb'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 9,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 7,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 7,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2},\n",
- " {'Age_Band_of_Casualty': 2,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 2,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 4,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 4,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 2,\n",
+ " 'Age_Band_of_Casualty': 2,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2},\n",
- " {'Age_Band_of_Casualty': 7,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 3,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 3,\n",
+ " 'Casualty_Reference': 3,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 7,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 3}],\n",
- " 'Date': '02/02/2012',\n",
- " 'Datetime': datetime.datetime(2012, 2, 2, 8, 25),\n",
- " 'Day_of_Week': 5,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 3,\n",
- " 'LSOA_of_Accident_Location': 'E01016775',\n",
- " 'Latitude': 52.025996,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 484110,\n",
- " 'Location_Northing_OSGR': 237110,\n",
- " 'Longitude': -0.775512,\n",
- " 'Number_of_Casualties': 4,\n",
- " 'Number_of_Vehicles': 3,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 3,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 70,\n",
+ " '1st_Road_Number': 8006,\n",
" 'Time': '08:25',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 4,\n",
- " 'Age_Band_of_Driver': 9,\n",
- " 'Age_of_Vehicle': 1,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 8,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': 1085,\n",
+ " 'Location_Northing_OSGR': 237110,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 3,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 484110,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 5,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 8,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 8,\n",
+ " 'Skidding_and_Overturning': 0,\n",
+ " 'Towing_and_Articulation': 0,\n",
+ " 'Vehicle_Location-Restricted_Lane': 0,\n",
" 'Engine_Capacity_(CC)': 1995,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 9,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 4,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 8,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
+ " 'Age_of_Vehicle': 1,\n",
+ " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 9,\n",
- " 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 3,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': 4,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 9,\n",
" 'Engine_Capacity_(CC)': 1497,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 7,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 3,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 3,\n",
- " 'Junction_Location': 1,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 8,\n",
- " 'Sex_of_Driver': 2,\n",
+ " 'Age_of_Vehicle': 4,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 8,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
- " 'Vehicle_Reference': 2,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': 7,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 8,\n",
" 'Engine_Capacity_(CC)': 2148,\n",
+ " 'Vehicle_Reference': 3,\n",
+ " 'Age_Band_of_Driver': 7,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 2,\n",
- " 'Junction_Location': 1,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 2,\n",
- " 'Skidding_and_Overturning': 0,\n",
- " 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
- " 'Vehicle_Location-Restricted_Lane': 0,\n",
+ " 'Age_of_Vehicle': 7,\n",
" 'Vehicle_Manoeuvre': 8,\n",
- " 'Vehicle_Reference': 3,\n",
- " 'Vehicle_Type': 9,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b5bb'),\n",
- " 'loc': {'coordinates': [-0.775512, 52.025996], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 8006,\n",
- " '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1085,\n",
- " 'Accident_Index': '201243S036022',\n",
- " 'Accident_Severity': 2,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 5,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
- " 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': -1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 2,\n",
- " 'Casualty_Type': 5,\n",
- " 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
- " 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1}],\n",
- " 'Date': '08/02/2012',\n",
- " 'Datetime': datetime.datetime(2012, 2, 8, 13, 30),\n",
- " 'Day_of_Week': 4,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
" 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
" 'LSOA_of_Accident_Location': 'E01016775',\n",
- " 'Latitude': 52.02805,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 484200,\n",
- " 'Location_Northing_OSGR': 237340,\n",
- " 'Longitude': -0.774144,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
" 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.025996,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S002022',\n",
" 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
- " 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 3,\n",
+ " '1st_Road_Class': 5,\n",
+ " '2nd_Road_Class': 6,\n",
+ " 'Accident_Severity': 3,\n",
" 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.775512,\n",
+ " 'Junction_Control': 4,\n",
" 'Speed_limit': 70,\n",
+ " 'Date': '02/02/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 2, 2, 8, 25),\n",
+ " 'Number_of_Casualties': 4,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.775512, 52.025996]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b64a'),\n",
+ " 'Casualties': [{'Casualty_Severity': 2,\n",
+ " 'Casualty_Class': 1,\n",
+ " 'Casualty_Type': 5,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': -1,\n",
+ " 'Pedestrian_Location': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 5,\n",
+ " 'Pedestrian_Road_Maintenance_Worker': 0,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
+ " 'Road_Surface_Conditions': 1,\n",
+ " '1st_Road_Number': 8006,\n",
" 'Time': '13:30',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 3,\n",
- " 'Age_Band_of_Driver': 5,\n",
- " 'Age_of_Vehicle': 10,\n",
- " 'Driver_Home_Area_Type': -1,\n",
- " 'Driver_IMD_Decile': -1,\n",
- " 'Engine_Capacity_(CC)': 600,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': 1085,\n",
+ " 'Location_Northing_OSGR': 237340,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 484200,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 4,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': -1,\n",
+ " 'Vehicle_Leaving_Carriageway': 4,\n",
" 'Junction_Location': 6,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 4,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Engine_Capacity_(CC)': 600,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 5,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 8,\n",
- " 'Age_of_Vehicle': 4,\n",
- " 'Driver_Home_Area_Type': 3,\n",
- " 'Driver_IMD_Decile': 8,\n",
- " 'Engine_Capacity_(CC)': 3200,\n",
+ " 'Age_Band_of_Driver': 5,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 3,\n",
+ " 'Vehicle_Type': 5,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 1,\n",
+ " 'Driver_Home_Area_Type': -1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 3,\n",
+ " 'Age_of_Vehicle': 10,\n",
+ " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 8,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 3200,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 8,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 3,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 3,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 4,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b64a'),\n",
- " 'loc': {'coordinates': [-0.774144, 52.02805], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 8006,\n",
- " '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1085,\n",
- " 'Accident_Index': '201243S093022',\n",
- " 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 6,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
- " 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
- " 'Casualty_Type': 9,\n",
- " 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
- " 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '20/02/2012',\n",
- " 'Datetime': datetime.datetime(2012, 2, 20, 8, 28),\n",
- " 'Day_of_Week': 2,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
" 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
" 'LSOA_of_Accident_Location': 'E01016775',\n",
- " 'Latitude': 52.025454,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 484130,\n",
- " 'Location_Northing_OSGR': 237050,\n",
- " 'Longitude': -0.775236,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
" 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.02805,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S036022',\n",
" 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
- " 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 3,\n",
+ " '1st_Road_Class': 5,\n",
+ " '2nd_Road_Class': 6,\n",
+ " 'Accident_Severity': 2,\n",
" 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.774144,\n",
+ " 'Junction_Control': 4,\n",
" 'Speed_limit': 70,\n",
+ " 'Date': '08/02/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 2, 8, 13, 30),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.774144, 52.02805]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b75b'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
+ " 'Casualty_Class': 1,\n",
+ " 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
+ " 'Pedestrian_Location': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
+ " 'Pedestrian_Road_Maintenance_Worker': 0,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
+ " 'Road_Surface_Conditions': 1,\n",
+ " '1st_Road_Number': 8006,\n",
" 'Time': '08:28',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 9,\n",
- " 'Age_of_Vehicle': 2,\n",
- " 'Driver_Home_Area_Type': 2,\n",
- " 'Driver_IMD_Decile': 10,\n",
- " 'Engine_Capacity_(CC)': 1560,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 1,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': 1085,\n",
+ " 'Location_Northing_OSGR': 237050,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 484130,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 2,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 10,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 8,\n",
- " 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Engine_Capacity_(CC)': 1560,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 3,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 12,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 4,\n",
- " 'Engine_Capacity_(CC)': 1341,\n",
+ " 'Age_Band_of_Driver': 9,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 1,\n",
+ " 'Driver_Home_Area_Type': 2,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': 2,\n",
+ " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 4,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 1,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1341,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 6,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 3,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 1,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 12,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b75b'),\n",
- " 'loc': {'coordinates': [-0.775236, 52.025454], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 8006,\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
+ " 'LSOA_of_Accident_Location': 'E01016775',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.025454,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S093022',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
" '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1085,\n",
- " 'Accident_Index': '201243S061032',\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 7,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.775236,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 70,\n",
+ " 'Date': '20/02/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 2, 20, 8, 28),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.775236, 52.025454]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b6c0'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': -1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': -1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 7,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 7,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 1,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': -1,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': -1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 1,\n",
+ " 'Age_Band_of_Casualty': 7,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 7,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 2,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': -1,\n",
- " 'Casualty_Reference': 3,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 3,\n",
+ " 'Casualty_Home_Area_Type': -1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 2,\n",
+ " 'Age_Band_of_Casualty': 7,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 7,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 2,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': -1,\n",
- " 'Casualty_Reference': 4,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 4,\n",
+ " 'Casualty_Home_Area_Type': -1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 2,\n",
+ " 'Age_Band_of_Casualty': 7,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 7,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 5,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 5,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 7,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '13/03/2012',\n",
- " 'Datetime': datetime.datetime(2012, 3, 13, 9, 21),\n",
- " 'Day_of_Week': 3,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 3,\n",
- " 'LSOA_of_Accident_Location': 'E01016775',\n",
- " 'Latitude': 52.025548,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 484100,\n",
- " 'Location_Northing_OSGR': 237060,\n",
- " 'Longitude': -0.77567,\n",
- " 'Number_of_Casualties': 5,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 3,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 70,\n",
+ " '1st_Road_Number': 8006,\n",
" 'Time': '09:21',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 3,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': 1,\n",
- " 'Driver_Home_Area_Type': -1,\n",
- " 'Driver_IMD_Decile': -1,\n",
- " 'Engine_Capacity_(CC)': 1248,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 1,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': 1085,\n",
+ " 'Location_Northing_OSGR': 237060,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 484100,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 3,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': -1,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 8,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Engine_Capacity_(CC)': 1248,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 1,\n",
" 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': 7,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 2,\n",
- " 'Engine_Capacity_(CC)': 2494,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 3,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 1,\n",
- " 'Junction_Location': 1,\n",
+ " 'Driver_Home_Area_Type': -1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
+ " 'Age_of_Vehicle': 1,\n",
+ " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 2,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 2494,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 7,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 1,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 7,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b6c0'),\n",
- " 'loc': {'coordinates': [-0.77567, 52.025548], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 6,\n",
- " '1st_Road_Number': 1098,\n",
- " '2nd_Road_Class': -1,\n",
- " '2nd_Road_Number': 0,\n",
- " 'Accident_Index': '201243S018012',\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
+ " 'LSOA_of_Accident_Location': 'E01016775',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.025548,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S061032',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
+ " '2nd_Road_Class': 6,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 4,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 2,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.77567,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 70,\n",
+ " 'Date': '13/03/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 3, 13, 9, 21),\n",
+ " 'Number_of_Casualties': 5,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.77567, 52.025548]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b5f6'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 3,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 8,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 3,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 2,\n",
+ " 'Age_Band_of_Casualty': 4,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 1}],\n",
- " 'Date': '01/01/2012',\n",
- " 'Datetime': datetime.datetime(2012, 1, 1, 2, 25),\n",
- " 'Day_of_Week': 1,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': -1,\n",
- " 'Junction_Detail': 0,\n",
- " 'LSOA_of_Accident_Location': 'E01016730',\n",
- " 'Latitude': 52.034519,\n",
- " 'Light_Conditions': 4,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 484220,\n",
- " 'Location_Northing_OSGR': 238060,\n",
- " 'Longitude': -0.773676,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 1,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 30,\n",
+ " '1st_Road_Number': 1098,\n",
" 'Time': '02:25',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 0,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 7,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 4,\n",
- " 'Engine_Capacity_(CC)': 2204,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 1,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 0,\n",
+ " 'Location_Northing_OSGR': 238060,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 1,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 484220,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 1,\n",
+ " 'Light_Conditions': 4,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 4,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 5,\n",
+ " 'Engine_Capacity_(CC)': 2204,\n",
" 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 6,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 0,\n",
" 'Vehicle_Type': 8,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 1,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': 7,\n",
+ " 'Vehicle_Manoeuvre': 5,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b5f6'),\n",
- " 'loc': {'coordinates': [-0.773676, 52.034519], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 6,\n",
- " '1st_Road_Number': 1098,\n",
+ " 'Junction_Detail': 0,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016730',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.034519,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S018012',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 6,\n",
" '2nd_Road_Class': -1,\n",
- " '2nd_Road_Number': 0,\n",
- " 'Accident_Index': '201243S115042',\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 8,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 2,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.773676,\n",
+ " 'Junction_Control': -1,\n",
+ " 'Speed_limit': 30,\n",
+ " 'Date': '01/01/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 1, 1, 2, 25),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.773676, 52.034519]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b7d0'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 8,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 2,\n",
+ " 'Age_Band_of_Casualty': 8,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 1}],\n",
- " 'Date': '27/04/2012',\n",
- " 'Datetime': datetime.datetime(2012, 4, 27, 17, 5),\n",
- " 'Day_of_Week': 6,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 2,\n",
- " 'Junction_Control': -1,\n",
- " 'Junction_Detail': 0,\n",
- " 'LSOA_of_Accident_Location': 'E01016730',\n",
- " 'Latitude': 52.03413,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 484410,\n",
- " 'Location_Northing_OSGR': 238020,\n",
- " 'Longitude': -0.770917,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 1,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 2,\n",
+ " '1st_Road_Number': 1098,\n",
+ " 'Time': '17:05',\n",
" 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 30,\n",
- " 'Time': '17:05',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 0,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': 4,\n",
- " 'Driver_Home_Area_Type': -1,\n",
- " 'Driver_IMD_Decile': -1,\n",
- " 'Engine_Capacity_(CC)': 1997,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " '2nd_Road_Number': 0,\n",
+ " 'Location_Northing_OSGR': 238020,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 1,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 484410,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 6,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': -1,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 4,\n",
+ " 'Engine_Capacity_(CC)': 1997,\n",
" 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 7,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 0,\n",
" 'Vehicle_Type': 8,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': -1,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': 4,\n",
+ " 'Vehicle_Manoeuvre': 4,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 2,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b7d0'),\n",
- " 'loc': {'coordinates': [-0.770917, 52.03413], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 6,\n",
- " '1st_Road_Number': 8106,\n",
- " '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1098,\n",
- " 'Accident_Index': '201243S060012',\n",
+ " 'Junction_Detail': 0,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016730',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.03413,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 2,\n",
+ " 'Accident_Index': '201243S115042',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 6,\n",
+ " '2nd_Road_Class': -1,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 8,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 2,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.770917,\n",
+ " 'Junction_Control': -1,\n",
+ " 'Speed_limit': 30,\n",
+ " 'Date': '27/04/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 4, 27, 17, 5),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.770917, 52.03413]},\n",
+ " 'Weather_Conditions': 2},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b6b8'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 8,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 2,\n",
+ " 'Age_Band_of_Casualty': 8,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '19/01/2012',\n",
- " 'Datetime': datetime.datetime(2012, 1, 19, 6, 55),\n",
- " 'Day_of_Week': 5,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 3,\n",
- " 'LSOA_of_Accident_Location': 'E01016730',\n",
- " 'Latitude': 52.036769,\n",
- " 'Light_Conditions': 4,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 484200,\n",
- " 'Location_Northing_OSGR': 238310,\n",
- " 'Longitude': -0.773906,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 3,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 30,\n",
+ " '1st_Road_Number': 8106,\n",
" 'Time': '06:55',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 3,\n",
- " 'Age_Band_of_Driver': 9,\n",
- " 'Age_of_Vehicle': 13,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 9,\n",
- " 'Engine_Capacity_(CC)': 2435,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': 1098,\n",
+ " 'Location_Northing_OSGR': 238310,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 484200,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 5,\n",
+ " 'Light_Conditions': 4,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 8,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Engine_Capacity_(CC)': 2435,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 1,\n",
" 'Age_Band_of_Driver': 9,\n",
- " 'Age_of_Vehicle': 7,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 3,\n",
- " 'Engine_Capacity_(CC)': 2204,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 1,\n",
- " 'Junction_Location': 8,\n",
- " 'Propulsion_Code': 2,\n",
+ " '1st_Point_of_Impact': 3,\n",
+ " 'Vehicle_Type': 9,\n",
" 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 13,\n",
+ " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 3,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 8,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 2204,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 9,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
" 'Vehicle_Type': 8,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 1,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': 7,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b6b8'),\n",
- " 'loc': {'coordinates': [-0.773906, 52.036769], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 6,\n",
- " '1st_Road_Number': 1098,\n",
- " '2nd_Road_Class': -1,\n",
- " '2nd_Road_Number': 0,\n",
- " 'Accident_Index': '201243S032032',\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016730',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.036769,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S060012',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 6,\n",
+ " '2nd_Road_Class': 6,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 6,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.773906,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 30,\n",
+ " 'Date': '19/01/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 1, 19, 6, 55),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.773906, 52.036769]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b635'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 3,\n",
- " 'Casualty_Home_Area_Type': -1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 0,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': -1,\n",
" 'Pedestrian_Location': 10,\n",
- " 'Pedestrian_Movement': 9,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1}],\n",
- " 'Date': '08/03/2012',\n",
- " 'Datetime': datetime.datetime(2012, 3, 8, 17, 52),\n",
- " 'Day_of_Week': 5,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': -1,\n",
- " 'Junction_Detail': 0,\n",
- " 'LSOA_of_Accident_Location': 'E01016730',\n",
- " 'Latitude': 52.035406,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 484300,\n",
- " 'Location_Northing_OSGR': 238160,\n",
- " 'Longitude': -0.772485,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 1,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 9,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 30,\n",
+ " '1st_Road_Number': 1098,\n",
" 'Time': '17:52',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 2,\n",
- " 'Engine_Capacity_(CC)': -1,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 1,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 0,\n",
+ " 'Location_Northing_OSGR': 238160,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 1,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 484300,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 5,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 2,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': -1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': -1,\n",
" 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 6,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
" 'Vehicle_Type': 11,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 1,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': -1,\n",
+ " 'Age_of_Vehicle': -1,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b635'),\n",
- " 'loc': {'coordinates': [-0.772485, 52.035406], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 3,\n",
- " '1st_Road_Number': 509,\n",
- " '2nd_Road_Class': 5,\n",
- " '2nd_Road_Number': 156,\n",
- " 'Accident_Index': '201243S037042',\n",
+ " 'Junction_Detail': 0,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016730',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.035406,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S032032',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 6,\n",
+ " '2nd_Road_Class': -1,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 5,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.772485,\n",
+ " 'Junction_Control': -1,\n",
+ " 'Speed_limit': 30,\n",
+ " 'Date': '08/03/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 3, 8, 17, 52),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.772485, 52.035406]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b651'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 5,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 5,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1}],\n",
- " 'Date': '13/04/2012',\n",
- " 'Datetime': datetime.datetime(2012, 4, 13, 21, 15),\n",
- " 'Day_of_Week': 6,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 2,\n",
- " 'Junction_Detail': 1,\n",
- " 'LSOA_of_Accident_Location': 'E01016730',\n",
- " 'Latitude': 52.039648,\n",
- " 'Light_Conditions': 4,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 484180,\n",
- " 'Location_Northing_OSGR': 238630,\n",
- " 'Longitude': -0.774119,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 1,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 40,\n",
+ " '1st_Road_Number': 509,\n",
" 'Time': '21:15',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 3,\n",
- " 'Age_Band_of_Driver': 5,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 5,\n",
+ " 'Road_Type': 1,\n",
+ " '2nd_Road_Number': 156,\n",
+ " 'Location_Northing_OSGR': 238630,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 484180,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 6,\n",
+ " 'Light_Conditions': 4,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 5,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 8,\n",
+ " 'Skidding_and_Overturning': 0,\n",
+ " 'Towing_and_Articulation': 0,\n",
+ " 'Vehicle_Location-Restricted_Lane': 0,\n",
" 'Engine_Capacity_(CC)': -1,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 5,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 3,\n",
+ " 'Vehicle_Type': 5,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 8,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': -1,\n",
- " 'Sex_of_Driver': 1,\n",
+ " 'Age_of_Vehicle': -1,\n",
+ " 'Vehicle_Manoeuvre': 15,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 2,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 8,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 15,\n",
- " 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 5,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 4,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 2,\n",
" 'Engine_Capacity_(CC)': -1,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 6,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 4,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 1,\n",
- " 'Junction_Location': 8,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': -1,\n",
- " 'Sex_of_Driver': 1,\n",
- " 'Skidding_and_Overturning': 0,\n",
- " 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
- " 'Vehicle_Location-Restricted_Lane': 0,\n",
+ " 'Age_of_Vehicle': -1,\n",
" 'Vehicle_Manoeuvre': 18,\n",
- " 'Vehicle_Reference': 2,\n",
- " 'Vehicle_Type': 9,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b651'),\n",
- " 'loc': {'coordinates': [-0.774119, 52.039648], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 156,\n",
- " '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 8106,\n",
- " 'Accident_Index': '201243S040082',\n",
+ " 'Junction_Detail': 1,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016730',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.039648,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S037042',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 3,\n",
+ " '2nd_Road_Class': 5,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 9,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.774119,\n",
+ " 'Junction_Control': 2,\n",
+ " 'Speed_limit': 40,\n",
+ " 'Date': '13/04/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 4, 13, 21, 15),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.774119, 52.039648]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b663'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 9,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 1}],\n",
- " 'Date': '13/08/2012',\n",
- " 'Datetime': datetime.datetime(2012, 8, 13, 10, 24),\n",
- " 'Day_of_Week': 2,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 2,\n",
- " 'Junction_Detail': 6,\n",
- " 'LSOA_of_Accident_Location': 'E01016730',\n",
- " 'Latitude': 52.03756,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 484320,\n",
- " 'Location_Northing_OSGR': 238400,\n",
- " 'Longitude': -0.772135,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 3,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 30,\n",
+ " '1st_Road_Number': 156,\n",
" 'Time': '10:24',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 9,\n",
- " 'Age_of_Vehicle': 15,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 9,\n",
- " 'Engine_Capacity_(CC)': 1596,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': 8106,\n",
+ " 'Location_Northing_OSGR': 238400,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 484320,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 2,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 8,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 9,\n",
- " 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 5,\n",
" 'Engine_Capacity_(CC)': 1596,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 9,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 8,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
+ " 'Age_of_Vehicle': 15,\n",
+ " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 5,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 8,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 10,\n",
+ " 'Engine_Capacity_(CC)': 1596,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 6,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': -1,\n",
+ " 'Vehicle_Manoeuvre': 10,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b663'),\n",
- " 'loc': {'coordinates': [-0.772135, 52.03756], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 6,\n",
- " '1st_Road_Number': 1098,\n",
- " '2nd_Road_Class': -1,\n",
- " '2nd_Road_Number': 0,\n",
- " 'Accident_Index': '201243S116102',\n",
+ " 'Junction_Detail': 6,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016730',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.03756,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S040082',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
+ " '2nd_Road_Class': 6,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 5,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.772135,\n",
+ " 'Junction_Control': 2,\n",
+ " 'Speed_limit': 30,\n",
+ " 'Date': '13/08/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 8, 13, 10, 24),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.772135, 52.03756]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b7d8'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 1,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 5,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1}],\n",
- " 'Date': '25/10/2012',\n",
- " 'Datetime': datetime.datetime(2012, 10, 25, 6, 27),\n",
- " 'Day_of_Week': 5,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': -1,\n",
- " 'Junction_Detail': 0,\n",
- " 'LSOA_of_Accident_Location': 'E01016730',\n",
- " 'Latitude': 52.036156,\n",
- " 'Light_Conditions': 4,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 484090,\n",
- " 'Location_Northing_OSGR': 238240,\n",
- " 'Longitude': -0.775526,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 30,\n",
+ " '1st_Road_Number': 1098,\n",
" 'Time': '06:27',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 3,\n",
- " 'Age_Band_of_Driver': 5,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 2,\n",
- " 'Engine_Capacity_(CC)': -1,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 0,\n",
+ " 'Location_Northing_OSGR': 238240,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 484090,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 5,\n",
+ " 'Light_Conditions': 4,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 2,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': -1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': -1,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 1,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 9,\n",
- " 'Age_of_Vehicle': 2,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 4,\n",
- " 'Engine_Capacity_(CC)': 1798,\n",
+ " 'Age_Band_of_Driver': 5,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 3,\n",
+ " 'Vehicle_Type': 1,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': -1,\n",
+ " 'Age_of_Vehicle': -1,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 4,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1798,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 9,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 2,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b7d8'),\n",
- " 'loc': {'coordinates': [-0.775526, 52.036156], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 6,\n",
- " '1st_Road_Number': 1098,\n",
- " '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1098,\n",
- " 'Accident_Index': '201243S153122',\n",
+ " 'Junction_Detail': 0,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016730',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.036156,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S116102',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 6,\n",
+ " '2nd_Road_Class': -1,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 6,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.775526,\n",
+ " 'Junction_Control': -1,\n",
+ " 'Speed_limit': 30,\n",
+ " 'Date': '25/10/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 10, 25, 6, 27),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.775526, 52.036156]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b84f'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': -1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': -1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '27/12/2012',\n",
- " 'Datetime': datetime.datetime(2012, 12, 27, 18, 41),\n",
- " 'Day_of_Week': 5,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 3,\n",
- " 'LSOA_of_Accident_Location': 'E01016730',\n",
- " 'Latitude': 52.035831,\n",
- " 'Light_Conditions': 4,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 484280,\n",
- " 'Location_Northing_OSGR': 238207,\n",
- " 'Longitude': -0.772765,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 30,\n",
+ " '1st_Road_Number': 1098,\n",
" 'Time': '18:41',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 4,\n",
- " 'Age_Band_of_Driver': 9,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 10,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 1098,\n",
+ " 'Location_Northing_OSGR': 238207,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 484280,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 5,\n",
+ " 'Light_Conditions': 4,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 10,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 8,\n",
+ " 'Skidding_and_Overturning': 0,\n",
+ " 'Towing_and_Articulation': 0,\n",
+ " 'Vehicle_Location-Restricted_Lane': 0,\n",
" 'Engine_Capacity_(CC)': -1,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 9,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 4,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 1,\n",
- " 'Junction_Location': 8,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': -1,\n",
- " 'Sex_of_Driver': 1,\n",
+ " 'Age_of_Vehicle': -1,\n",
+ " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': -1,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 8,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 9,\n",
- " 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': -1,\n",
- " 'Driver_IMD_Decile': -1,\n",
" 'Engine_Capacity_(CC)': -1,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 6,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 2,\n",
- " 'Junction_Location': 8,\n",
+ " 'Driver_Home_Area_Type': -1,\n",
" 'Propulsion_Code': -1,\n",
- " 'Sex_of_Driver': 2,\n",
- " 'Skidding_and_Overturning': 0,\n",
- " 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
- " 'Vehicle_Location-Restricted_Lane': 0,\n",
+ " 'Age_of_Vehicle': -1,\n",
" 'Vehicle_Manoeuvre': 18,\n",
- " 'Vehicle_Reference': 2,\n",
- " 'Vehicle_Type': 9,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b84f'),\n",
- " 'loc': {'coordinates': [-0.772765, 52.035831], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 3,\n",
- " '1st_Road_Number': 509,\n",
- " '2nd_Road_Class': -1,\n",
- " '2nd_Road_Number': 0,\n",
- " 'Accident_Index': '201243S086042',\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016730',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.035831,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S153122',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 6,\n",
+ " '2nd_Road_Class': 6,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 4,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.772765,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 30,\n",
+ " 'Date': '27/12/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 12, 27, 18, 41),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.772765, 52.035831]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b737'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 4,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '24/04/2012',\n",
- " 'Datetime': datetime.datetime(2012, 4, 24, 17, 50),\n",
- " 'Day_of_Week': 3,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 2,\n",
- " 'Junction_Control': 2,\n",
- " 'Junction_Detail': 0,\n",
- " 'LSOA_of_Accident_Location': 'E01016774',\n",
- " 'Latitude': 52.036589,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 483610,\n",
- " 'Location_Northing_OSGR': 238280,\n",
- " 'Longitude': -0.782512,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 1,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 40,\n",
+ " '1st_Road_Number': 509,\n",
" 'Time': '17:50',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 0,\n",
- " 'Age_Band_of_Driver': -1,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': -1,\n",
- " 'Driver_IMD_Decile': -1,\n",
- " 'Engine_Capacity_(CC)': -1,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 1,\n",
+ " '2nd_Road_Number': 0,\n",
+ " 'Location_Northing_OSGR': 238280,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 483610,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 3,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': -1,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': -1,\n",
- " 'Sex_of_Driver': 3,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': -1,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': -1,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 98,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 0,\n",
- " 'Age_Band_of_Driver': 4,\n",
- " 'Age_of_Vehicle': 14,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 8,\n",
- " 'Engine_Capacity_(CC)': 1299,\n",
+ " 'Age_Band_of_Driver': -1,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 0,\n",
+ " 'Vehicle_Type': 98,\n",
+ " 'Sex_of_Driver': 3,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': -1,\n",
+ " 'Propulsion_Code': -1,\n",
+ " 'Age_of_Vehicle': -1,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 8,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1299,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 4,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 0,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 14,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b737'),\n",
- " 'loc': {'coordinates': [-0.782512, 52.036589], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 6,\n",
- " '1st_Road_Number': 1085,\n",
+ " 'Junction_Detail': 0,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
+ " 'LSOA_of_Accident_Location': 'E01016774',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.036589,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 2,\n",
+ " 'Accident_Index': '201243S086042',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 3,\n",
" '2nd_Road_Class': -1,\n",
- " '2nd_Road_Number': 0,\n",
- " 'Accident_Index': '201243S027052',\n",
- " 'Accident_Severity': 2,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 7,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Accident_Severity': 3,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.782512,\n",
+ " 'Junction_Control': 2,\n",
+ " 'Speed_limit': 40,\n",
+ " 'Date': '24/04/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 4, 24, 17, 50),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.782512, 52.036589]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b61d'),\n",
+ " 'Casualties': [{'Casualty_Severity': 2,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 2,\n",
" 'Casualty_Type': 1,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 7,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1}],\n",
- " 'Date': '03/05/2012',\n",
- " 'Datetime': datetime.datetime(2012, 5, 3, 21, 35),\n",
- " 'Day_of_Week': 5,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': -1,\n",
- " 'Junction_Detail': 0,\n",
- " 'LSOA_of_Accident_Location': 'E01016774',\n",
- " 'Latitude': 52.033907,\n",
- " 'Light_Conditions': 4,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 483510,\n",
- " 'Location_Northing_OSGR': 237980,\n",
- " 'Longitude': -0.784043,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 1,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 30,\n",
+ " '1st_Road_Number': 1085,\n",
" 'Time': '21:35',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 3,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 8,\n",
- " 'Engine_Capacity_(CC)': -1,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 2,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 0,\n",
+ " 'Location_Northing_OSGR': 237980,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 1,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 483510,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 5,\n",
+ " 'Light_Conditions': 4,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 8,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': -1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 5,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': -1,\n",
" 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 7,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 3,\n",
" 'Vehicle_Type': 1,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 2,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': -1,\n",
+ " 'Age_of_Vehicle': -1,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 2,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b61d'),\n",
- " 'loc': {'coordinates': [-0.784043, 52.033907], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 145,\n",
- " '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1085,\n",
- " 'Accident_Index': '201243S043092',\n",
- " 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 10,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Junction_Detail': 0,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
+ " 'LSOA_of_Accident_Location': 'E01016774',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.033907,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S027052',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 6,\n",
+ " '2nd_Road_Class': -1,\n",
+ " 'Accident_Severity': 2,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.784043,\n",
+ " 'Junction_Control': -1,\n",
+ " 'Speed_limit': 30,\n",
+ " 'Date': '03/05/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 5, 3, 21, 35),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.784043, 52.033907]},\n",
+ " 'Weather_Conditions': 2},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b66f'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 2,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 2,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 10,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 8,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 8,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '13/09/2012',\n",
- " 'Datetime': datetime.datetime(2012, 9, 13, 15, 35),\n",
- " 'Day_of_Week': 5,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 3,\n",
- " 'LSOA_of_Accident_Location': 'E01016774',\n",
- " 'Latitude': 52.033947,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 483240,\n",
- " 'Location_Northing_OSGR': 237980,\n",
- " 'Longitude': -0.787978,\n",
- " 'Number_of_Casualties': 2,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 60,\n",
+ " '1st_Road_Number': 145,\n",
" 'Time': '15:35',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 10,\n",
- " 'Age_of_Vehicle': 5,\n",
- " 'Driver_Home_Area_Type': 2,\n",
- " 'Driver_IMD_Decile': 6,\n",
- " 'Engine_Capacity_(CC)': 1497,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 1085,\n",
+ " 'Location_Northing_OSGR': 237980,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 483240,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 5,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 6,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 6,\n",
- " 'Propulsion_Code': 8,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Engine_Capacity_(CC)': 1497,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 8,\n",
- " 'Age_of_Vehicle': 8,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 8,\n",
- " 'Engine_Capacity_(CC)': 1598,\n",
+ " 'Age_Band_of_Driver': 10,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 2,\n",
+ " 'Propulsion_Code': 8,\n",
+ " 'Age_of_Vehicle': 5,\n",
+ " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 8,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 1,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1598,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 8,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 8,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b66f'),\n",
- " 'loc': {'coordinates': [-0.787978, 52.033947], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 144,\n",
- " '2nd_Road_Class': 5,\n",
- " '2nd_Road_Number': 155,\n",
- " 'Accident_Index': '201243S008022',\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016774',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.033947,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S043092',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
+ " '2nd_Road_Class': 6,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 6,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.787978,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 60,\n",
+ " 'Date': '13/09/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 9, 13, 15, 35),\n",
+ " 'Number_of_Casualties': 2,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.787978, 52.033947]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b5d0'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 3,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 3,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1}],\n",
- " 'Date': '02/02/2012',\n",
- " 'Datetime': datetime.datetime(2012, 2, 2, 6, 10),\n",
- " 'Day_of_Week': 5,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 1,\n",
- " 'LSOA_of_Accident_Location': 'E01016815',\n",
- " 'Latitude': 52.038505,\n",
- " 'Light_Conditions': 4,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 482820,\n",
- " 'Location_Northing_OSGR': 238480,\n",
- " 'Longitude': -0.793978,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 1,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 4,\n",
- " 'Road_Type': 1,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 60,\n",
+ " '1st_Road_Number': 144,\n",
" 'Time': '06:10',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 12,\n",
- " 'Driver_Home_Area_Type': 3,\n",
- " 'Driver_IMD_Decile': 10,\n",
- " 'Engine_Capacity_(CC)': 1991,\n",
- " 'Hit_Object_in_Carriageway': 7,\n",
- " 'Hit_Object_off_Carriageway': 1,\n",
- " 'Journey_Purpose_of_Driver': 2,\n",
+ " 'Road_Type': 1,\n",
+ " '2nd_Road_Number': 155,\n",
+ " 'Location_Northing_OSGR': 238480,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 1,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 482820,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 5,\n",
+ " 'Light_Conditions': 4,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 10,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 4,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 7,\n",
+ " 'Engine_Capacity_(CC)': 1991,\n",
" 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 6,\n",
+ " 'Hit_Object_in_Carriageway': 7,\n",
+ " 'Hit_Object_off_Carriageway': 1,\n",
+ " '1st_Point_of_Impact': 1,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 2,\n",
+ " 'Driver_Home_Area_Type': 3,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 12,\n",
+ " 'Vehicle_Manoeuvre': 7,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b5d0'),\n",
- " 'loc': {'coordinates': [-0.793978, 52.038505], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 144,\n",
- " '2nd_Road_Class': -1,\n",
- " '2nd_Road_Number': 0,\n",
- " 'Accident_Index': '201243S036042',\n",
- " 'Accident_Severity': 2,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 5,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Junction_Detail': 1,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
+ " 'LSOA_of_Accident_Location': 'E01016815',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.038505,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S008022',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
+ " '2nd_Road_Class': 5,\n",
+ " 'Accident_Severity': 3,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.793978,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 60,\n",
+ " 'Date': '02/02/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 2, 2, 6, 10),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.793978, 52.038505]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b64c'),\n",
+ " 'Casualties': [{'Casualty_Severity': 2,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 2,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 2,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 2,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 5,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1}],\n",
- " 'Date': '14/04/2012',\n",
- " 'Datetime': datetime.datetime(2012, 4, 14, 2, 20),\n",
- " 'Day_of_Week': 7,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': -1,\n",
- " 'Junction_Detail': 0,\n",
- " 'LSOA_of_Accident_Location': 'E01016776',\n",
- " 'Latitude': 52.039106,\n",
- " 'Light_Conditions': 5,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 483010,\n",
- " 'Location_Northing_OSGR': 238550,\n",
- " 'Longitude': -0.791192,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 1,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 60,\n",
+ " '1st_Road_Number': 144,\n",
" 'Time': '02:20',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 4,\n",
- " 'Age_Band_of_Driver': 5,\n",
- " 'Age_of_Vehicle': 13,\n",
- " 'Driver_Home_Area_Type': 2,\n",
- " 'Driver_IMD_Decile': 8,\n",
- " 'Engine_Capacity_(CC)': 1596,\n",
- " 'Hit_Object_in_Carriageway': 10,\n",
- " 'Hit_Object_off_Carriageway': 7,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 0,\n",
+ " 'Location_Northing_OSGR': 238550,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 1,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 483010,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 7,\n",
+ " 'Light_Conditions': 5,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 8,\n",
+ " 'Vehicle_Leaving_Carriageway': 2,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 2,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 2,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1596,\n",
" 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 5,\n",
+ " 'Hit_Object_in_Carriageway': 10,\n",
+ " 'Hit_Object_off_Carriageway': 7,\n",
+ " '1st_Point_of_Impact': 4,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 2,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 13,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b64c'),\n",
- " 'loc': {'coordinates': [-0.791192, 52.039106], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 144,\n",
+ " 'Junction_Detail': 0,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
+ " 'LSOA_of_Accident_Location': 'E01016776',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.039106,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S036042',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
" '2nd_Road_Class': -1,\n",
- " '2nd_Road_Number': 0,\n",
- " 'Accident_Index': '201243S111052',\n",
- " 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 8,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Accident_Severity': 2,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.791192,\n",
+ " 'Junction_Control': -1,\n",
+ " 'Speed_limit': 60,\n",
+ " 'Date': '14/04/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 4, 14, 2, 20),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.791192, 52.039106]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b7ba'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 8,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2},\n",
- " {'Age_Band_of_Casualty': 8,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 1,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 1,\n",
+ " 'Age_Band_of_Casualty': 8,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '26/05/2012',\n",
- " 'Datetime': datetime.datetime(2012, 5, 26, 15, 0),\n",
- " 'Day_of_Week': 7,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 2,\n",
- " 'Junction_Control': -1,\n",
- " 'Junction_Detail': 0,\n",
- " 'LSOA_of_Accident_Location': 'E01016776',\n",
- " 'Latitude': 52.037974,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 482760,\n",
- " 'Location_Northing_OSGR': 238420,\n",
- " 'Longitude': -0.794867,\n",
- " 'Number_of_Casualties': 2,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 60,\n",
+ " '1st_Road_Number': 144,\n",
" 'Time': '15:00',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': -1,\n",
- " 'Age_of_Vehicle': 14,\n",
- " 'Driver_Home_Area_Type': -1,\n",
- " 'Driver_IMD_Decile': -1,\n",
- " 'Engine_Capacity_(CC)': 1390,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 0,\n",
+ " 'Location_Northing_OSGR': 238420,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 482760,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 7,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': -1,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 4,\n",
+ " 'Engine_Capacity_(CC)': 1390,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': 8,\n",
- " 'Age_of_Vehicle': 11,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 9,\n",
- " 'Engine_Capacity_(CC)': 1391,\n",
+ " 'Age_Band_of_Driver': -1,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 0,\n",
+ " 'Driver_Home_Area_Type': -1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
+ " 'Age_of_Vehicle': 14,\n",
+ " 'Vehicle_Manoeuvre': 4,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 0,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 4,\n",
+ " 'Engine_Capacity_(CC)': 1391,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 8,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 11,\n",
+ " 'Vehicle_Manoeuvre': 4,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b7ba'),\n",
- " 'loc': {'coordinates': [-0.794867, 52.037974], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 129,\n",
- " '2nd_Road_Class': 5,\n",
- " '2nd_Road_Number': 8005,\n",
- " 'Accident_Index': '201243S041062',\n",
+ " 'Junction_Detail': 0,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
+ " 'LSOA_of_Accident_Location': 'E01016776',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.037974,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 2,\n",
+ " 'Accident_Index': '201243S111052',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
+ " '2nd_Road_Class': -1,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 5,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.794867,\n",
+ " 'Junction_Control': -1,\n",
+ " 'Speed_limit': 60,\n",
+ " 'Date': '26/05/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 5, 26, 15, 0),\n",
+ " 'Number_of_Casualties': 2,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.794867, 52.037974]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b667'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 3,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 3,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 5,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '09/06/2012',\n",
- " 'Datetime': datetime.datetime(2012, 6, 9, 12, 30),\n",
- " 'Day_of_Week': 7,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 2,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 1,\n",
- " 'LSOA_of_Accident_Location': 'E01016778',\n",
- " 'Latitude': 52.0297,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 482790,\n",
- " 'Location_Northing_OSGR': 237500,\n",
- " 'Longitude': -0.794653,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 3,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 60,\n",
+ " '1st_Road_Number': 129,\n",
" 'Time': '12:30',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': -1,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': -1,\n",
- " 'Driver_IMD_Decile': -1,\n",
- " 'Engine_Capacity_(CC)': -1,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 8005,\n",
+ " 'Location_Northing_OSGR': 237500,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 3,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 482790,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 7,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': -1,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 1,\n",
- " 'Propulsion_Code': -1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
- " 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': 5,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': 3,\n",
- " 'Driver_IMD_Decile': 9,\n",
" 'Engine_Capacity_(CC)': -1,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': -1,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 1,\n",
+ " 'Driver_Home_Area_Type': -1,\n",
" 'Propulsion_Code': -1,\n",
- " 'Sex_of_Driver': 1,\n",
+ " 'Age_of_Vehicle': -1,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 3,\n",
+ " 'Engine_Capacity_(CC)': -1,\n",
" 'Vehicle_Reference': 2,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': -1,\n",
- " 'Age_of_Vehicle': 3,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 9,\n",
- " 'Engine_Capacity_(CC)': 998,\n",
+ " 'Age_Band_of_Driver': 5,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 3,\n",
+ " 'Propulsion_Code': -1,\n",
+ " 'Age_of_Vehicle': -1,\n",
+ " 'Vehicle_Manoeuvre': 3,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 1,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 3,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 3,\n",
+ " 'Engine_Capacity_(CC)': 998,\n",
" 'Vehicle_Reference': 3,\n",
+ " 'Age_Band_of_Driver': -1,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 3,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 3,\n",
+ " 'Vehicle_Manoeuvre': 3,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 2,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b667'),\n",
- " 'loc': {'coordinates': [-0.794653, 52.0297], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 145,\n",
- " '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1085,\n",
- " 'Accident_Index': '201243S107062',\n",
+ " 'Junction_Detail': 1,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016778',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.0297,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 2,\n",
+ " 'Accident_Index': '201243S041062',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
+ " '2nd_Road_Class': 5,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 11,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.794653,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 60,\n",
+ " 'Date': '09/06/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 6, 9, 12, 30),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.794653, 52.0297]},\n",
+ " 'Weather_Conditions': 2},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b7a4'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 11,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 6,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '27/06/2012',\n",
- " 'Datetime': datetime.datetime(2012, 6, 27, 9, 25),\n",
- " 'Day_of_Week': 4,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 3,\n",
- " 'LSOA_of_Accident_Location': 'E01016778',\n",
- " 'Latitude': 52.031468,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 482990,\n",
- " 'Location_Northing_OSGR': 237700,\n",
- " 'Longitude': -0.79169,\n",
- " 'Number_of_Casualties': 2,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 60,\n",
+ " '1st_Road_Number': 145,\n",
" 'Time': '09:25',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 11,\n",
- " 'Age_of_Vehicle': 7,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 10,\n",
- " 'Engine_Capacity_(CC)': 1991,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 1085,\n",
+ " 'Location_Northing_OSGR': 237700,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 482990,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 4,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 10,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 6,\n",
- " 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Engine_Capacity_(CC)': 1991,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 4,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 5,\n",
- " 'Engine_Capacity_(CC)': 1397,\n",
+ " 'Age_Band_of_Driver': 11,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': 7,\n",
+ " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 5,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 1,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 1,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1397,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 6,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 4,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b7a4'),\n",
- " 'loc': {'coordinates': [-0.79169, 52.031468], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 145,\n",
- " '2nd_Road_Class': -1,\n",
- " '2nd_Road_Number': 0,\n",
- " 'Accident_Index': '201243S070072',\n",
- " 'Accident_Severity': 2,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 7,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016778',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.031468,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S107062',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
+ " '2nd_Road_Class': 6,\n",
+ " 'Accident_Severity': 3,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.79169,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 60,\n",
+ " 'Date': '27/06/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 6, 27, 9, 25),\n",
+ " 'Number_of_Casualties': 2,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.79169, 52.031468]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b6ee'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 7,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 4,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2},\n",
+ " {'Casualty_Severity': 2,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 2,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 4,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '08/07/2012',\n",
- " 'Datetime': datetime.datetime(2012, 7, 8, 22, 15),\n",
- " 'Day_of_Week': 1,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': -1,\n",
- " 'Junction_Detail': 0,\n",
- " 'LSOA_of_Accident_Location': 'E01016774',\n",
- " 'Latitude': 52.032701,\n",
- " 'Light_Conditions': 5,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 483160,\n",
- " 'Location_Northing_OSGR': 237840,\n",
- " 'Longitude': -0.789178,\n",
- " 'Number_of_Casualties': 2,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 60,\n",
+ " '1st_Road_Number': 145,\n",
" 'Time': '22:15',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': 9,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 9,\n",
- " 'Engine_Capacity_(CC)': 1781,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 0,\n",
+ " 'Location_Northing_OSGR': 237840,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 483160,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 1,\n",
+ " 'Light_Conditions': 5,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1781,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 4,\n",
- " 'Age_of_Vehicle': 13,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 8,\n",
- " 'Engine_Capacity_(CC)': 1242,\n",
+ " 'Age_Band_of_Driver': 7,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 0,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
+ " 'Age_of_Vehicle': 9,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 8,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 0,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1242,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 4,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 13,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b6ee'),\n",
- " 'loc': {'coordinates': [-0.789178, 52.032701], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 129,\n",
- " '2nd_Road_Class': 5,\n",
- " '2nd_Road_Number': 145,\n",
- " 'Accident_Index': '201243S040072',\n",
- " 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 7,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Junction_Detail': 0,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016774',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.032701,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S070072',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
+ " '2nd_Road_Class': -1,\n",
+ " 'Accident_Severity': 2,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.789178,\n",
+ " 'Junction_Control': -1,\n",
+ " 'Speed_limit': 60,\n",
+ " 'Date': '08/07/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 7, 8, 22, 15),\n",
+ " 'Number_of_Casualties': 2,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.789178, 52.032701]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b662'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 7,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 5,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 5,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '10/07/2012',\n",
- " 'Datetime': datetime.datetime(2012, 7, 10, 7, 10),\n",
- " 'Day_of_Week': 3,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 1,\n",
- " 'LSOA_of_Accident_Location': 'E01016778',\n",
- " 'Latitude': 52.030142,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 482840,\n",
- " 'Location_Northing_OSGR': 237550,\n",
- " 'Longitude': -0.793912,\n",
- " 'Number_of_Casualties': 2,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 60,\n",
+ " '1st_Road_Number': 129,\n",
" 'Time': '07:10',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': 7,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 4,\n",
- " 'Engine_Capacity_(CC)': 1995,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 1,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 145,\n",
+ " 'Location_Northing_OSGR': 237550,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 482840,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 3,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 4,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 1,\n",
- " 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1995,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': 5,\n",
- " 'Age_of_Vehicle': 6,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 5,\n",
- " 'Engine_Capacity_(CC)': 1339,\n",
+ " 'Age_Band_of_Driver': 7,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 1,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': 7,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 5,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 1,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1339,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 5,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 1,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 6,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 2,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b662'),\n",
- " 'loc': {'coordinates': [-0.793912, 52.030142], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 129,\n",
+ " 'Junction_Detail': 1,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016778',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.030142,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S040072',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
" '2nd_Road_Class': 5,\n",
- " '2nd_Road_Number': 145,\n",
- " 'Accident_Index': '201243S084102',\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 6,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 2,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.793912,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 60,\n",
+ " 'Date': '10/07/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 7, 10, 7, 10),\n",
+ " 'Number_of_Casualties': 2,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.793912, 52.030142]},\n",
+ " 'Weather_Conditions': 2},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b72f'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 2,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '20/10/2012',\n",
- " 'Datetime': datetime.datetime(2012, 10, 20, 13, 0),\n",
- " 'Day_of_Week': 7,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 2,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 1,\n",
- " 'LSOA_of_Accident_Location': 'E01016778',\n",
- " 'Latitude': 52.029872,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 482840,\n",
- " 'Location_Northing_OSGR': 237520,\n",
- " 'Longitude': -0.793919,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 60,\n",
+ " '1st_Road_Number': 129,\n",
" 'Time': '13:00',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 4,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 13,\n",
- " 'Driver_Home_Area_Type': -1,\n",
- " 'Driver_IMD_Decile': -1,\n",
- " 'Engine_Capacity_(CC)': 1988,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 145,\n",
+ " 'Location_Northing_OSGR': 237520,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 482840,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 7,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': -1,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 3,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1988,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 3,\n",
- " 'Age_Band_of_Driver': 8,\n",
- " 'Age_of_Vehicle': 6,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 7,\n",
- " 'Engine_Capacity_(CC)': 1598,\n",
+ " 'Age_Band_of_Driver': 6,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 4,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 3,\n",
+ " 'Driver_Home_Area_Type': -1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
+ " 'Age_of_Vehicle': 13,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 7,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 3,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1598,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 8,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 3,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 6,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b72f'),\n",
- " 'loc': {'coordinates': [-0.793919, 52.029872], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 129,\n",
+ " 'Junction_Detail': 1,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016778',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.029872,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 2,\n",
+ " 'Accident_Index': '201243S084102',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
" '2nd_Road_Class': 5,\n",
- " '2nd_Road_Number': 8005,\n",
- " 'Accident_Index': '201243S092122',\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 7,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.793919,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 60,\n",
+ " 'Date': '20/10/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 10, 20, 13, 0),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.793919, 52.029872]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b75a'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 1,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 7,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '19/12/2012',\n",
- " 'Datetime': datetime.datetime(2012, 12, 19, 7, 40),\n",
- " 'Day_of_Week': 4,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 1,\n",
- " 'LSOA_of_Accident_Location': 'E01016778',\n",
- " 'Latitude': 52.029879,\n",
- " 'Light_Conditions': 4,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 482793,\n",
- " 'Location_Northing_OSGR': 237520,\n",
- " 'Longitude': -0.794604,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 1,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 60,\n",
+ " '1st_Road_Number': 129,\n",
" 'Time': '07:40',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 9,\n",
- " 'Age_of_Vehicle': 5,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 10,\n",
- " 'Engine_Capacity_(CC)': 1587,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 2,\n",
+ " 'Road_Type': 1,\n",
+ " '2nd_Road_Number': 8005,\n",
+ " 'Location_Northing_OSGR': 237520,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 482793,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 4,\n",
+ " 'Light_Conditions': 4,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 10,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 4,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 5,\n",
+ " 'Engine_Capacity_(CC)': 1587,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 4,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 5,\n",
- " 'Engine_Capacity_(CC)': -1,\n",
+ " 'Age_Band_of_Driver': 9,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 2,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 5,\n",
+ " 'Vehicle_Manoeuvre': 5,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 5,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 8,\n",
- " 'Propulsion_Code': -1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': -1,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 7,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 4,\n",
" 'Vehicle_Type': 1,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 2,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': -1,\n",
+ " 'Age_of_Vehicle': -1,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 7,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b75a'),\n",
- " 'loc': {'coordinates': [-0.794604, 52.029879], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 6,\n",
- " '1st_Road_Number': 1056,\n",
- " '2nd_Road_Class': -1,\n",
- " '2nd_Road_Number': 0,\n",
- " 'Accident_Index': '201243S003102',\n",
+ " 'Junction_Detail': 1,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016778',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.029879,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S092122',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
+ " '2nd_Road_Class': 5,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 3,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.794604,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 60,\n",
+ " 'Date': '19/12/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 12, 19, 7, 40),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.794604, 52.029879]},\n",
+ " 'Weather_Conditions': 7},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b5c3'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 1,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 3,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '02/10/2012',\n",
- " 'Datetime': datetime.datetime(2012, 10, 2, 8, 10),\n",
- " 'Day_of_Week': 3,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': -1,\n",
- " 'Junction_Detail': 0,\n",
- " 'LSOA_of_Accident_Location': 'E01016778',\n",
- " 'Latitude': 52.025598,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 483170,\n",
- " 'Location_Northing_OSGR': 237050,\n",
- " 'Longitude': -0.789224,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 30,\n",
+ " '1st_Road_Number': 1056,\n",
" 'Time': '08:10',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': 5,\n",
- " 'Age_of_Vehicle': 8,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 9,\n",
- " 'Engine_Capacity_(CC)': 1398,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 2,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 0,\n",
+ " 'Location_Northing_OSGR': 237050,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 483170,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 3,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 1,\n",
+ " 'Engine_Capacity_(CC)': 1398,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 3,\n",
- " 'Age_Band_of_Driver': 3,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 9,\n",
- " 'Engine_Capacity_(CC)': -1,\n",
+ " 'Age_Band_of_Driver': 5,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 4,\n",
- " 'Junction_Location': 0,\n",
- " 'Propulsion_Code': -1,\n",
+ " '1st_Point_of_Impact': 2,\n",
+ " 'Vehicle_Type': 9,\n",
" 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 2,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': 8,\n",
+ " 'Vehicle_Manoeuvre': 1,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 0,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 5,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': -1,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 3,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 3,\n",
" 'Vehicle_Type': 1,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 4,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': -1,\n",
+ " 'Age_of_Vehicle': -1,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b5c3'),\n",
- " 'loc': {'coordinates': [-0.789224, 52.025598], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 129,\n",
- " '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1056,\n",
- " 'Accident_Index': '201243S054032',\n",
+ " 'Junction_Detail': 0,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016778',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.025598,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S003102',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 6,\n",
+ " '2nd_Road_Class': -1,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 7,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.789224,\n",
+ " 'Junction_Control': -1,\n",
+ " 'Speed_limit': 30,\n",
+ " 'Date': '02/10/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 10, 2, 8, 10),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.789224, 52.025598]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b699'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 7,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '07/03/2012',\n",
- " 'Datetime': datetime.datetime(2012, 3, 7, 12, 3),\n",
- " 'Day_of_Week': 4,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 2,\n",
- " 'Junction_Detail': 3,\n",
- " 'LSOA_of_Accident_Location': 'E01016778',\n",
- " 'Latitude': 52.027031,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 483210,\n",
- " 'Location_Northing_OSGR': 237210,\n",
- " 'Longitude': -0.788602,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 60,\n",
+ " '1st_Road_Number': 129,\n",
" 'Time': '12:03',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': 2,\n",
- " 'Driver_IMD_Decile': 10,\n",
- " 'Engine_Capacity_(CC)': -1,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 1056,\n",
+ " 'Location_Northing_OSGR': 237210,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 483210,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 4,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 10,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 1,\n",
- " 'Propulsion_Code': -1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 4,\n",
+ " 'Engine_Capacity_(CC)': -1,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 1,\n",
" 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': 7,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 7,\n",
- " 'Engine_Capacity_(CC)': 2204,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 2,\n",
+ " 'Propulsion_Code': -1,\n",
+ " 'Age_of_Vehicle': -1,\n",
+ " 'Vehicle_Manoeuvre': 4,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 7,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 1,\n",
- " 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 2204,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 7,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': 7,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b699'),\n",
- " 'loc': {'coordinates': [-0.788602, 52.027031], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 8005,\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016778',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.027031,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S054032',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
" '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1056,\n",
- " 'Accident_Index': '201243S064062',\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 4,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.788602,\n",
+ " 'Junction_Control': 2,\n",
+ " 'Speed_limit': 60,\n",
+ " 'Date': '07/03/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 3, 7, 12, 3),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.788602, 52.027031]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b6d0'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 2,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 2,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 4,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 1}],\n",
- " 'Date': '14/06/2012',\n",
- " 'Datetime': datetime.datetime(2012, 6, 14, 9, 0),\n",
- " 'Day_of_Week': 5,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 3,\n",
- " 'LSOA_of_Accident_Location': 'E01016780',\n",
- " 'Latitude': 52.024792,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 482550,\n",
- " 'Location_Northing_OSGR': 236950,\n",
- " 'Longitude': -0.798283,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 60,\n",
+ " '1st_Road_Number': 8005,\n",
" 'Time': '09:00',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 4,\n",
- " 'Age_of_Vehicle': 10,\n",
- " 'Driver_Home_Area_Type': 2,\n",
- " 'Driver_IMD_Decile': 10,\n",
- " 'Engine_Capacity_(CC)': 1299,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 1,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 1056,\n",
+ " 'Location_Northing_OSGR': 236950,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 482550,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 5,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 10,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 1,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1299,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 3,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 9,\n",
- " 'Engine_Capacity_(CC)': 1984,\n",
+ " 'Age_Band_of_Driver': 4,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 1,\n",
- " 'Junction_Location': 8,\n",
+ " 'Driver_Home_Area_Type': 2,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
+ " 'Age_of_Vehicle': 10,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 8,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 10,\n",
+ " 'Engine_Capacity_(CC)': 1984,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 6,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 1,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 3,\n",
+ " 'Vehicle_Manoeuvre': 10,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b6d0'),\n",
- " 'loc': {'coordinates': [-0.798283, 52.024792], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 8005,\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016780',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.024792,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S064062',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
" '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1056,\n",
- " 'Accident_Index': '201243S110122',\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 6,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.798283,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 60,\n",
+ " 'Date': '14/06/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 6, 14, 9, 0),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.798283, 52.024792]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b7b8'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 2,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 2,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '15/12/2012',\n",
- " 'Datetime': datetime.datetime(2012, 12, 15, 15, 43),\n",
- " 'Day_of_Week': 7,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 3,\n",
- " 'LSOA_of_Accident_Location': 'E01016780',\n",
- " 'Latitude': 52.024837,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 482547,\n",
- " 'Location_Northing_OSGR': 236955,\n",
- " 'Longitude': -0.798325,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 30,\n",
+ " '1st_Road_Number': 8005,\n",
" 'Time': '15:43',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 8,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 9,\n",
- " 'Engine_Capacity_(CC)': 1796,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 1056,\n",
+ " 'Location_Northing_OSGR': 236955,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 482547,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 7,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 1,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 7,\n",
+ " 'Engine_Capacity_(CC)': 1796,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
" 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 1,\n",
- " 'Driver_Home_Area_Type': 2,\n",
- " 'Driver_IMD_Decile': 8,\n",
- " 'Engine_Capacity_(CC)': 998,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 1,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
+ " 'Age_of_Vehicle': 8,\n",
+ " 'Vehicle_Manoeuvre': 7,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 8,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 8,\n",
+ " 'Engine_Capacity_(CC)': 998,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 6,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 2,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 1,\n",
+ " 'Vehicle_Manoeuvre': 8,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b7b8'),\n",
- " 'loc': {'coordinates': [-0.798325, 52.024837], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 8005,\n",
- " '2nd_Road_Class': 5,\n",
- " '2nd_Road_Number': 9002,\n",
- " 'Accident_Index': '201243S087112',\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016780',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.024837,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S110122',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
+ " '2nd_Road_Class': 6,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 3,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 1,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.798325,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 30,\n",
+ " 'Date': '15/12/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 12, 15, 15, 43),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.798325, 52.024837]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b740'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 1,\n",
+ " 'Age_Band_of_Casualty': 3,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2},\n",
- " {'Age_Band_of_Casualty': 3,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 2,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 2,\n",
+ " 'Age_Band_of_Casualty': 3,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '21/11/2012',\n",
- " 'Datetime': datetime.datetime(2012, 11, 21, 8, 32),\n",
- " 'Day_of_Week': 4,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 2,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 1,\n",
- " 'LSOA_of_Accident_Location': 'E01016779',\n",
- " 'Latitude': 52.019146,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 481830,\n",
- " 'Location_Northing_OSGR': 236310,\n",
- " 'Longitude': -0.808927,\n",
- " 'Number_of_Casualties': 2,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 60,\n",
+ " '1st_Road_Number': 8005,\n",
" 'Time': '08:32',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': -1,\n",
- " 'Age_of_Vehicle': 10,\n",
- " 'Driver_Home_Area_Type': 2,\n",
- " 'Driver_IMD_Decile': 8,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 9002,\n",
+ " 'Location_Northing_OSGR': 236310,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 481830,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 4,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 8,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 1,\n",
+ " 'Skidding_and_Overturning': 0,\n",
+ " 'Towing_and_Articulation': 0,\n",
+ " 'Vehicle_Location-Restricted_Lane': 0,\n",
" 'Engine_Capacity_(CC)': 2461,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': -1,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 19,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 1,\n",
+ " 'Driver_Home_Area_Type': 2,\n",
" 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 1,\n",
+ " 'Age_of_Vehicle': 10,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 2,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
- " 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 19,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 8,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 2,\n",
" 'Engine_Capacity_(CC)': 1086,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 6,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 3,\n",
- " 'Junction_Location': 1,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
- " 'Skidding_and_Overturning': 0,\n",
- " 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
- " 'Vehicle_Location-Restricted_Lane': 0,\n",
+ " 'Age_of_Vehicle': 8,\n",
" 'Vehicle_Manoeuvre': 3,\n",
- " 'Vehicle_Reference': 2,\n",
- " 'Vehicle_Type': 9,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 2,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b740'),\n",
- " 'loc': {'coordinates': [-0.808927, 52.019146], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 8004,\n",
- " '2nd_Road_Class': -1,\n",
- " '2nd_Road_Number': 0,\n",
- " 'Accident_Index': '201243S132012',\n",
- " 'Accident_Severity': 2,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 4,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
- " 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 2,\n",
- " 'Casualty_Type': 3,\n",
- " 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
- " 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1}],\n",
- " 'Date': '23/01/2012',\n",
- " 'Datetime': datetime.datetime(2012, 1, 23, 8, 55),\n",
- " 'Day_of_Week': 2,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': -1,\n",
- " 'Junction_Detail': 0,\n",
+ " 'Junction_Detail': 1,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
" 'LSOA_of_Accident_Location': 'E01016779',\n",
- " 'Latitude': 52.028235,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 481760,\n",
- " 'Location_Northing_OSGR': 237320,\n",
- " 'Longitude': -0.809706,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
" 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.019146,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 2,\n",
+ " 'Accident_Index': '201243S087112',\n",
" 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
- " 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 6,\n",
+ " '1st_Road_Class': 5,\n",
+ " '2nd_Road_Class': 5,\n",
+ " 'Accident_Severity': 3,\n",
" 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.808927,\n",
+ " 'Junction_Control': 4,\n",
" 'Speed_limit': 60,\n",
+ " 'Date': '21/11/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 11, 21, 8, 32),\n",
+ " 'Number_of_Casualties': 2,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.808927, 52.019146]},\n",
+ " 'Weather_Conditions': 2},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b81e'),\n",
+ " 'Casualties': [{'Casualty_Severity': 2,\n",
+ " 'Casualty_Class': 1,\n",
+ " 'Casualty_Type': 3,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
+ " 'Pedestrian_Location': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 4,\n",
+ " 'Pedestrian_Road_Maintenance_Worker': 0,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
+ " 'Road_Surface_Conditions': 1,\n",
+ " '1st_Road_Number': 8004,\n",
" 'Time': '08:55',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 4,\n",
- " 'Age_of_Vehicle': 11,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 8,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 0,\n",
+ " 'Location_Northing_OSGR': 237320,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 481760,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 2,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 8,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 0,\n",
+ " 'Skidding_and_Overturning': 0,\n",
+ " 'Towing_and_Articulation': 0,\n",
+ " 'Vehicle_Location-Restricted_Lane': 0,\n",
" 'Engine_Capacity_(CC)': 124,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 4,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 3,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 2,\n",
- " 'Junction_Location': 0,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
+ " 'Age_of_Vehicle': 11,\n",
+ " 'Vehicle_Manoeuvre': 13,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 8,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 0,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 13,\n",
- " 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 3,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': 6,\n",
- " 'Driver_Home_Area_Type': 2,\n",
- " 'Driver_IMD_Decile': 8,\n",
" 'Engine_Capacity_(CC)': 1388,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 7,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 3,\n",
- " 'Junction_Location': 0,\n",
+ " 'Driver_Home_Area_Type': 2,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
- " 'Skidding_and_Overturning': 0,\n",
- " 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
- " 'Vehicle_Location-Restricted_Lane': 0,\n",
+ " 'Age_of_Vehicle': 6,\n",
" 'Vehicle_Manoeuvre': 18,\n",
- " 'Vehicle_Reference': 2,\n",
- " 'Vehicle_Type': 9,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b81e'),\n",
- " 'loc': {'coordinates': [-0.809706, 52.028235], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 8004,\n",
- " '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1056,\n",
- " 'Accident_Index': '201243S109052',\n",
- " 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 6,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
- " 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 2,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
- " 'Casualty_Type': 9,\n",
- " 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
- " 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1}],\n",
- " 'Date': '24/05/2012',\n",
- " 'Datetime': datetime.datetime(2012, 5, 24, 15, 56),\n",
- " 'Day_of_Week': 5,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 3,\n",
+ " 'Junction_Detail': 0,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
" 'LSOA_of_Accident_Location': 'E01016779',\n",
- " 'Latitude': 52.029394,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 481820,\n",
- " 'Location_Northing_OSGR': 237450,\n",
- " 'Longitude': -0.8088,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
" 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.028235,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S132012',\n",
" 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
- " 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 6,\n",
+ " '1st_Road_Class': 5,\n",
+ " '2nd_Road_Class': -1,\n",
+ " 'Accident_Severity': 2,\n",
" 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.809706,\n",
+ " 'Junction_Control': -1,\n",
" 'Speed_limit': 60,\n",
+ " 'Date': '23/01/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 1, 23, 8, 55),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.809706, 52.028235]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b7ad'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
+ " 'Casualty_Class': 1,\n",
+ " 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 2,\n",
+ " 'Pedestrian_Location': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
+ " 'Pedestrian_Road_Maintenance_Worker': 0,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
+ " 'Road_Surface_Conditions': 1,\n",
+ " '1st_Road_Number': 8004,\n",
" 'Time': '15:56',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 6,\n",
- " 'Driver_Home_Area_Type': 2,\n",
- " 'Driver_IMD_Decile': 8,\n",
- " 'Engine_Capacity_(CC)': 1229,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 1056,\n",
+ " 'Location_Northing_OSGR': 237450,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 481820,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 5,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 8,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 1,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1229,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': 8,\n",
- " 'Age_of_Vehicle': 13,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 8,\n",
- " 'Engine_Capacity_(CC)': 2397,\n",
+ " 'Age_Band_of_Driver': 6,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 1,\n",
+ " 'Driver_Home_Area_Type': 2,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
+ " 'Age_of_Vehicle': 6,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 8,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 10,\n",
+ " 'Engine_Capacity_(CC)': 2397,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 8,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 13,\n",
+ " 'Vehicle_Manoeuvre': 10,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b7ad'),\n",
- " 'loc': {'coordinates': [-0.8088, 52.029394], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 8004,\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
+ " 'LSOA_of_Accident_Location': 'E01016779',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.029394,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S109052',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
" '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1056,\n",
- " 'Accident_Index': '201243S070122',\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 4,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.8088,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 60,\n",
+ " 'Date': '24/05/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 5, 24, 15, 56),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.8088, 52.029394]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b6f0'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 3,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 3,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 4,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 1}],\n",
- " 'Date': '14/12/2012',\n",
- " 'Datetime': datetime.datetime(2012, 12, 14, 22, 5),\n",
- " 'Day_of_Week': 6,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 3,\n",
- " 'LSOA_of_Accident_Location': 'E01016779',\n",
- " 'Latitude': 52.029438,\n",
- " 'Light_Conditions': 4,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 481829,\n",
- " 'Location_Northing_OSGR': 237455,\n",
- " 'Longitude': -0.808668,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 3,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 60,\n",
+ " '1st_Road_Number': 8004,\n",
" 'Time': '22:05',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 4,\n",
- " 'Age_of_Vehicle': 3,\n",
- " 'Driver_Home_Area_Type': 3,\n",
- " 'Driver_IMD_Decile': 10,\n",
- " 'Engine_Capacity_(CC)': 1242,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 1056,\n",
+ " 'Location_Northing_OSGR': 237455,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 3,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 481829,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 6,\n",
+ " 'Light_Conditions': 4,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 10,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 8,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1242,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': 2,\n",
- " 'Driver_Home_Area_Type': 2,\n",
- " 'Driver_IMD_Decile': 8,\n",
- " 'Engine_Capacity_(CC)': 1998,\n",
+ " 'Age_Band_of_Driver': 4,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 8,\n",
+ " 'Driver_Home_Area_Type': 3,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
+ " 'Age_of_Vehicle': 3,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 8,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 8,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 10,\n",
+ " 'Engine_Capacity_(CC)': 1998,\n",
" 'Vehicle_Reference': 2,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 8,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 9,\n",
- " 'Engine_Capacity_(CC)': 1360,\n",
+ " 'Age_Band_of_Driver': 7,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 8,\n",
+ " 'Driver_Home_Area_Type': 2,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
+ " 'Age_of_Vehicle': 2,\n",
+ " 'Vehicle_Manoeuvre': 10,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 8,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1360,\n",
" 'Vehicle_Reference': 3,\n",
+ " 'Age_Band_of_Driver': 8,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': -1,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 2,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b6f0'),\n",
- " 'loc': {'coordinates': [-0.808668, 52.029438], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 129,\n",
- " '2nd_Road_Class': 5,\n",
- " '2nd_Road_Number': 8004,\n",
- " 'Accident_Index': '201243S096092',\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016779',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.029438,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S070122',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
+ " '2nd_Road_Class': 6,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 4,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.808668,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 60,\n",
+ " 'Date': '14/12/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 12, 14, 22, 5),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.808668, 52.029438]},\n",
+ " 'Weather_Conditions': 2},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b774'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 3,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 4,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1}],\n",
- " 'Date': '23/09/2012',\n",
- " 'Datetime': datetime.datetime(2012, 9, 23, 12, 34),\n",
- " 'Day_of_Week': 1,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 1,\n",
- " 'LSOA_of_Accident_Location': 'E01016779',\n",
- " 'Latitude': 52.034026,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 482110,\n",
- " 'Location_Northing_OSGR': 237970,\n",
- " 'Longitude': -0.804449,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 1,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 60,\n",
+ " '1st_Road_Number': 129,\n",
" 'Time': '12:34',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 0,\n",
- " 'Age_Band_of_Driver': 4,\n",
- " 'Age_of_Vehicle': 8,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 10,\n",
- " 'Engine_Capacity_(CC)': 125,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 8004,\n",
+ " 'Location_Northing_OSGR': 237970,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 1,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 482110,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 1,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 10,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 3,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 1,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 125,\n",
" 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 4,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 0,\n",
" 'Vehicle_Type': 3,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 8,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 2,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b774'),\n",
- " 'loc': {'coordinates': [-0.804449, 52.034026], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 129,\n",
+ " 'Junction_Detail': 1,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
+ " 'LSOA_of_Accident_Location': 'E01016779',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.034026,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S096092',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
" '2nd_Road_Class': 5,\n",
- " '2nd_Road_Number': 144,\n",
- " 'Accident_Index': '201243S112102',\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 4,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.804449,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 60,\n",
+ " 'Date': '23/09/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 9, 23, 12, 34),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.804449, 52.034026]},\n",
+ " 'Weather_Conditions': 2},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b7c3'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 2,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 4,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 1}],\n",
- " 'Date': '24/10/2012',\n",
- " 'Datetime': datetime.datetime(2012, 10, 24, 11, 23),\n",
- " 'Day_of_Week': 4,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 1,\n",
- " 'LSOA_of_Accident_Location': 'E01016779',\n",
- " 'Latitude': 52.034114,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 482120,\n",
- " 'Location_Northing_OSGR': 237980,\n",
- " 'Longitude': -0.804301,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 1,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 60,\n",
+ " '1st_Road_Number': 129,\n",
" 'Time': '11:23',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 0,\n",
- " 'Age_Band_of_Driver': 4,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 5,\n",
- " 'Engine_Capacity_(CC)': 49,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 144,\n",
+ " 'Location_Northing_OSGR': 237980,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 1,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 482120,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 4,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 5,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 8,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 1,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Engine_Capacity_(CC)': 49,\n",
" 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 4,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 0,\n",
" 'Vehicle_Type': 2,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': -1,\n",
+ " 'Vehicle_Manoeuvre': 9,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b7c3'),\n",
- " 'loc': {'coordinates': [-0.804301, 52.034114], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 129,\n",
- " '2nd_Road_Class': -1,\n",
- " '2nd_Road_Number': 0,\n",
- " 'Accident_Index': '201243S062012',\n",
- " 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 6,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
- " 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
- " 'Casualty_Type': 9,\n",
- " 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
- " 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '20/01/2012',\n",
- " 'Datetime': datetime.datetime(2012, 1, 20, 8, 30),\n",
- " 'Day_of_Week': 6,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': -1,\n",
- " 'Junction_Detail': 0,\n",
- " 'LSOA_of_Accident_Location': 'E01016778',\n",
- " 'Latitude': 52.031535,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 482540,\n",
- " 'Location_Northing_OSGR': 237700,\n",
- " 'Longitude': -0.798248,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 3,\n",
+ " 'Junction_Detail': 1,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
+ " 'LSOA_of_Accident_Location': 'E01016779',\n",
" 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.034114,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S112102',\n",
" 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
- " 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 6,\n",
+ " '1st_Road_Class': 5,\n",
+ " '2nd_Road_Class': 5,\n",
+ " 'Accident_Severity': 3,\n",
" 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.804301,\n",
+ " 'Junction_Control': 4,\n",
" 'Speed_limit': 60,\n",
+ " 'Date': '24/10/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 10, 24, 11, 23),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.804301, 52.034114]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b6c5'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
+ " 'Casualty_Class': 1,\n",
+ " 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
+ " 'Pedestrian_Location': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
+ " 'Pedestrian_Road_Maintenance_Worker': 0,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
+ " 'Road_Surface_Conditions': 2,\n",
+ " '1st_Road_Number': 129,\n",
" 'Time': '08:30',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 4,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': 8,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 2,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 0,\n",
+ " 'Location_Northing_OSGR': 237700,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 3,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 482540,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 6,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 2,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 0,\n",
+ " 'Skidding_and_Overturning': 0,\n",
+ " 'Towing_and_Articulation': 0,\n",
+ " 'Vehicle_Location-Restricted_Lane': 0,\n",
" 'Engine_Capacity_(CC)': 1998,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 7,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 4,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 3,\n",
- " 'Junction_Location': 0,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 1,\n",
+ " 'Age_of_Vehicle': 8,\n",
+ " 'Vehicle_Manoeuvre': 14,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 6,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 0,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 14,\n",
- " 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 3,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 6,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 6,\n",
" 'Engine_Capacity_(CC)': 1999,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 6,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 3,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 2,\n",
- " 'Junction_Location': 0,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
+ " 'Age_of_Vehicle': 6,\n",
+ " 'Vehicle_Manoeuvre': 10,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 0,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 10,\n",
- " 'Vehicle_Reference': 2,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': 9,\n",
- " 'Age_of_Vehicle': 8,\n",
- " 'Driver_Home_Area_Type': 3,\n",
- " 'Driver_IMD_Decile': 9,\n",
" 'Engine_Capacity_(CC)': 1124,\n",
+ " 'Vehicle_Reference': 3,\n",
+ " 'Age_Band_of_Driver': 9,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 2,\n",
- " 'Junction_Location': 0,\n",
+ " 'Driver_Home_Area_Type': 3,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
- " 'Skidding_and_Overturning': 0,\n",
- " 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
- " 'Vehicle_Location-Restricted_Lane': 0,\n",
+ " 'Age_of_Vehicle': 8,\n",
" 'Vehicle_Manoeuvre': 3,\n",
- " 'Vehicle_Reference': 3,\n",
- " 'Vehicle_Type': 9,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b6c5'),\n",
- " 'loc': {'coordinates': [-0.798248, 52.031535], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 6,\n",
- " '1st_Road_Number': 1085,\n",
+ " 'Junction_Detail': 0,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016778',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.031535,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S062012',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
" '2nd_Road_Class': -1,\n",
- " '2nd_Road_Number': -1,\n",
- " 'Accident_Index': '201243S112052',\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 11,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.798248,\n",
+ " 'Junction_Control': -1,\n",
+ " 'Speed_limit': 60,\n",
+ " 'Date': '20/01/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 1, 20, 8, 30),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.798248, 52.031535]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b7c2'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 3,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 0,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 6,\n",
- " 'Pedestrian_Movement': 9,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 11,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 1}],\n",
- " 'Date': '25/05/2012',\n",
- " 'Datetime': datetime.datetime(2012, 5, 25, 10, 45),\n",
- " 'Day_of_Week': 6,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 2,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 8,\n",
- " 'LSOA_of_Accident_Location': 'E01016777',\n",
- " 'Latitude': 52.033172,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 482410,\n",
- " 'Location_Northing_OSGR': 237880,\n",
- " 'Longitude': -0.800099,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 1,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 9,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 30,\n",
+ " '1st_Road_Number': 1085,\n",
" 'Time': '10:45',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': 8,\n",
- " 'Age_of_Vehicle': 11,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 9,\n",
- " 'Engine_Capacity_(CC)': 1598,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': -1,\n",
+ " 'Location_Northing_OSGR': 237880,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 1,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 482410,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 6,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 6,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 9,\n",
- " 'Vehicle_Manoeuvre': 1,\n",
+ " 'Engine_Capacity_(CC)': 1598,\n",
" 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 8,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 11,\n",
+ " 'Vehicle_Manoeuvre': 1,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b7c2'),\n",
- " 'loc': {'coordinates': [-0.800099, 52.033172], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 129,\n",
- " '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1085,\n",
- " 'Accident_Index': '201243S003072',\n",
+ " 'Junction_Detail': 8,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016777',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.033172,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 2,\n",
+ " 'Accident_Index': '201243S112052',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 6,\n",
+ " '2nd_Road_Class': -1,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 4,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.800099,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 30,\n",
+ " 'Date': '25/05/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 5, 25, 10, 45),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.800099, 52.033172]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b5c1'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 4,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 4,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 1,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 1,\n",
+ " 'Age_Band_of_Casualty': 4,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 10,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 3,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 3,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 10,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '01/07/2012',\n",
- " 'Datetime': datetime.datetime(2012, 7, 1, 22, 15),\n",
- " 'Day_of_Week': 1,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 3,\n",
- " 'LSOA_of_Accident_Location': 'E01016778',\n",
- " 'Latitude': 52.032732,\n",
- " 'Light_Conditions': 4,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 482350,\n",
- " 'Location_Northing_OSGR': 237830,\n",
- " 'Longitude': -0.800985,\n",
- " 'Number_of_Casualties': 3,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 60,\n",
+ " '1st_Road_Number': 129,\n",
" 'Time': '22:15',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 4,\n",
- " 'Age_of_Vehicle': 9,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 9,\n",
- " 'Engine_Capacity_(CC)': 1242,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 1085,\n",
+ " 'Location_Northing_OSGR': 237830,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 482350,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 1,\n",
+ " 'Light_Conditions': 4,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 8,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Engine_Capacity_(CC)': 1242,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 10,\n",
- " 'Age_of_Vehicle': 12,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 4,\n",
- " 'Engine_Capacity_(CC)': 1298,\n",
+ " 'Age_Band_of_Driver': 4,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 1,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
+ " 'Age_of_Vehicle': 9,\n",
+ " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 4,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 1,\n",
" 'Skidding_and_Overturning': 1,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1298,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 10,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 12,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b5c1'),\n",
- " 'loc': {'coordinates': [-0.800985, 52.032732], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 129,\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016778',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.032732,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S003072',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
" '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1085,\n",
- " 'Accident_Index': '201243S092092',\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 9,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.800985,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 60,\n",
+ " 'Date': '01/07/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 7, 1, 22, 15),\n",
+ " 'Number_of_Casualties': 3,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.800985, 52.032732]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b759'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 9,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2},\n",
- " {'Age_Band_of_Casualty': 9,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 1,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 1,\n",
+ " 'Age_Band_of_Casualty': 9,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '23/09/2012',\n",
- " 'Datetime': datetime.datetime(2012, 9, 23, 13, 25),\n",
- " 'Day_of_Week': 1,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 3,\n",
- " 'LSOA_of_Accident_Location': 'E01016778',\n",
- " 'Latitude': 52.03089,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 482650,\n",
- " 'Location_Northing_OSGR': 237630,\n",
- " 'Longitude': -0.796661,\n",
- " 'Number_of_Casualties': 2,\n",
- " 'Number_of_Vehicles': 3,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 60,\n",
+ " '1st_Road_Number': 129,\n",
" 'Time': '13:25',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 4,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 1,\n",
- " 'Driver_Home_Area_Type': -1,\n",
- " 'Driver_IMD_Decile': -1,\n",
- " 'Engine_Capacity_(CC)': 1398,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 1085,\n",
+ " 'Location_Northing_OSGR': 237630,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 3,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 482650,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 1,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': -1,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 8,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Engine_Capacity_(CC)': 1398,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 9,\n",
- " 'Age_of_Vehicle': 5,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 9,\n",
- " 'Engine_Capacity_(CC)': 1596,\n",
+ " 'Age_Band_of_Driver': 6,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 4,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 1,\n",
+ " 'Driver_Home_Area_Type': -1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
+ " 'Age_of_Vehicle': 1,\n",
+ " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1596,\n",
" 'Vehicle_Reference': 2,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 3,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': 11,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 6,\n",
- " 'Engine_Capacity_(CC)': 1984,\n",
+ " 'Age_Band_of_Driver': 9,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 1,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
+ " 'Age_of_Vehicle': 5,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 6,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 10,\n",
+ " 'Engine_Capacity_(CC)': 1984,\n",
" 'Vehicle_Reference': 3,\n",
+ " 'Age_Band_of_Driver': 7,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 3,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 11,\n",
+ " 'Vehicle_Manoeuvre': 10,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 2,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b759'),\n",
- " 'loc': {'coordinates': [-0.796661, 52.03089], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 144,\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016778',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.03089,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S092092',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
" '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1085,\n",
- " 'Accident_Index': '201243S048012',\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 8,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.796661,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 60,\n",
+ " 'Date': '23/09/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 9, 23, 13, 25),\n",
+ " 'Number_of_Casualties': 2,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.796661, 52.03089]},\n",
+ " 'Weather_Conditions': 2},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b683'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 2,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 8,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '09/01/2012',\n",
- " 'Datetime': datetime.datetime(2012, 1, 9, 17, 5),\n",
- " 'Day_of_Week': 2,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 3,\n",
- " 'LSOA_of_Accident_Location': 'E01016777',\n",
- " 'Latitude': 52.037195,\n",
- " 'Light_Conditions': 4,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 482560,\n",
- " 'Location_Northing_OSGR': 238330,\n",
- " 'Longitude': -0.797804,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 60,\n",
+ " '1st_Road_Number': 144,\n",
" 'Time': '17:05',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 4,\n",
- " 'Age_Band_of_Driver': 4,\n",
- " 'Age_of_Vehicle': 1,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 9,\n",
- " 'Engine_Capacity_(CC)': 1198,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 1085,\n",
+ " 'Location_Northing_OSGR': 238330,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 482560,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 2,\n",
+ " 'Light_Conditions': 4,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 5,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Engine_Capacity_(CC)': 1198,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 8,\n",
- " 'Age_of_Vehicle': 10,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 9,\n",
- " 'Engine_Capacity_(CC)': 599,\n",
+ " 'Age_Band_of_Driver': 4,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 4,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 8,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
+ " 'Age_of_Vehicle': 1,\n",
+ " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 8,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 599,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 8,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
" 'Vehicle_Type': 2,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 10,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b683'),\n",
- " 'loc': {'coordinates': [-0.797804, 52.037195], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 144,\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016777',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.037195,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S048012',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
" '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1085,\n",
- " 'Accident_Index': '201243S011072',\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 4,\n",
- " 'Bus_or_Coach_Passenger': 4,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.797804,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 60,\n",
+ " 'Date': '09/01/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 1, 9, 17, 5),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.797804, 52.037195]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b5dd'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': -1,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 11,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': -1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
- " 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 6,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
" 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 4,\n",
+ " 'Pedestrian_Road_Maintenance_Worker': 0,\n",
+ " 'Bus_or_Coach_Passenger': 4,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 3,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 3,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '03/07/2012',\n",
- " 'Datetime': datetime.datetime(2012, 7, 3, 8, 0),\n",
- " 'Day_of_Week': 3,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 3,\n",
- " 'LSOA_of_Accident_Location': 'E01016776',\n",
- " 'Latitude': 52.037369,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 482600,\n",
- " 'Location_Northing_OSGR': 238350,\n",
- " 'Longitude': -0.797216,\n",
- " 'Number_of_Casualties': 2,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 60,\n",
+ " '1st_Road_Number': 144,\n",
" 'Time': '08:00',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 12,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 2,\n",
- " 'Engine_Capacity_(CC)': -1,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 1,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 1085,\n",
+ " 'Location_Northing_OSGR': 238350,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 482600,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 3,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 2,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 6,\n",
- " 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Engine_Capacity_(CC)': -1,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 11,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 1,\n",
" 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 10,\n",
- " 'Driver_Home_Area_Type': 3,\n",
- " 'Driver_IMD_Decile': 10,\n",
- " 'Engine_Capacity_(CC)': 1390,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 1,\n",
- " 'Propulsion_Code': 1,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 11,\n",
" 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 1,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': 12,\n",
+ " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 10,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 1,\n",
" 'Skidding_and_Overturning': 1,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1390,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 6,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 3,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 10,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 2,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b5dd'),\n",
- " 'loc': {'coordinates': [-0.797216, 52.037369], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 144,\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016776',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.037369,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S011072',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
" '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1085,\n",
- " 'Accident_Index': '201243S161102',\n",
- " 'Accident_Severity': 2,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 10,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Accident_Severity': 3,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.797216,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 60,\n",
+ " 'Date': '03/07/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 7, 3, 8, 0),\n",
+ " 'Number_of_Casualties': 2,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.797216, 52.037369]},\n",
+ " 'Weather_Conditions': 2},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b853'),\n",
+ " 'Casualties': [{'Casualty_Severity': 2,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 2,\n",
" 'Casualty_Type': 1,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 10,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '08/10/2012',\n",
- " 'Datetime': datetime.datetime(2012, 10, 8, 8, 48),\n",
- " 'Day_of_Week': 2,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 3,\n",
- " 'LSOA_of_Accident_Location': 'E01016777',\n",
- " 'Latitude': 52.037096,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 482559,\n",
- " 'Location_Northing_OSGR': 238319,\n",
- " 'Longitude': -0.797821,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 30,\n",
+ " '1st_Road_Number': 144,\n",
" 'Time': '08:48',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 4,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 9,\n",
- " 'Engine_Capacity_(CC)': 1796,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 1085,\n",
+ " 'Location_Northing_OSGR': 238319,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 482559,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 2,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 1,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 8,\n",
+ " 'Engine_Capacity_(CC)': 1796,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 10,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 9,\n",
- " 'Engine_Capacity_(CC)': -1,\n",
+ " 'Age_Band_of_Driver': 6,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 2,\n",
- " 'Junction_Location': 1,\n",
- " 'Propulsion_Code': -1,\n",
+ " '1st_Point_of_Impact': 4,\n",
+ " 'Vehicle_Type': 9,\n",
" 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': -1,\n",
+ " 'Vehicle_Manoeuvre': 8,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 5,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': -1,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 10,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
" 'Vehicle_Type': 1,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 2,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': -1,\n",
+ " 'Age_of_Vehicle': -1,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b853'),\n",
- " 'loc': {'coordinates': [-0.797821, 52.037096], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 3,\n",
- " '1st_Road_Number': 422,\n",
- " '2nd_Road_Class': -1,\n",
- " '2nd_Road_Number': 0,\n",
- " 'Accident_Index': '201243S083022',\n",
- " 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 7,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016777',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.037096,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S161102',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
+ " '2nd_Road_Class': 6,\n",
+ " 'Accident_Severity': 2,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.797821,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 30,\n",
+ " 'Date': '08/10/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 10, 8, 8, 48),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.797821, 52.037096]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b72b'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 7,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 1}],\n",
- " 'Date': '24/02/2012',\n",
- " 'Datetime': datetime.datetime(2012, 2, 24, 12, 39),\n",
- " 'Day_of_Week': 6,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': -1,\n",
- " 'Junction_Detail': 0,\n",
- " 'LSOA_of_Accident_Location': 'E01016813',\n",
- " 'Latitude': 52.048994,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 482400,\n",
- " 'Location_Northing_OSGR': 239640,\n",
- " 'Longitude': -0.799821,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 3,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 70,\n",
+ " '1st_Road_Number': 422,\n",
" 'Time': '12:39',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': 7,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 6,\n",
- " 'Engine_Capacity_(CC)': 1796,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': 0,\n",
+ " 'Location_Northing_OSGR': 239640,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 482400,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 6,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 6,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1796,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': 2,\n",
- " 'Driver_IMD_Decile': 10,\n",
- " 'Engine_Capacity_(CC)': 2143,\n",
+ " 'Age_Band_of_Driver': 7,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 7,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 10,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 2,\n",
+ " 'Engine_Capacity_(CC)': 2143,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 6,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 2,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': -1,\n",
+ " 'Vehicle_Manoeuvre': 2,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b72b'),\n",
- " 'loc': {'coordinates': [-0.799821, 52.048994], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 3,\n",
- " '1st_Road_Number': 5,\n",
+ " 'Junction_Detail': 0,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016813',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.048994,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S083022',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 3,\n",
" '2nd_Road_Class': -1,\n",
- " '2nd_Road_Number': 0,\n",
- " 'Accident_Index': '201243S052112',\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 5,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.799821,\n",
+ " 'Junction_Control': -1,\n",
+ " 'Speed_limit': 70,\n",
+ " 'Date': '24/02/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 2, 24, 12, 39),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.799821, 52.048994]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b696'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 5,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1}],\n",
- " 'Date': '06/11/2012',\n",
- " 'Datetime': datetime.datetime(2012, 11, 6, 7, 49),\n",
- " 'Day_of_Week': 3,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': -1,\n",
- " 'Junction_Detail': 0,\n",
- " 'LSOA_of_Accident_Location': 'E01016813',\n",
- " 'Latitude': 52.045463,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 482570,\n",
- " 'Location_Northing_OSGR': 239250,\n",
- " 'Longitude': -0.797437,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 3,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 70,\n",
+ " '1st_Road_Number': 5,\n",
" 'Time': '07:49',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 5,\n",
- " 'Age_of_Vehicle': 21,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 2,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': 0,\n",
+ " 'Location_Northing_OSGR': 239250,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 482570,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 3,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 2,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 0,\n",
+ " 'Skidding_and_Overturning': 0,\n",
+ " 'Towing_and_Articulation': 0,\n",
+ " 'Vehicle_Location-Restricted_Lane': 0,\n",
" 'Engine_Capacity_(CC)': 954,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 5,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 0,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
+ " 'Age_of_Vehicle': 21,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': -1,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 0,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
- " 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': -1,\n",
- " 'Driver_IMD_Decile': -1,\n",
" 'Engine_Capacity_(CC)': -1,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 7,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 1,\n",
- " 'Junction_Location': 0,\n",
+ " 'Driver_Home_Area_Type': -1,\n",
" 'Propulsion_Code': -1,\n",
- " 'Sex_of_Driver': 1,\n",
- " 'Skidding_and_Overturning': 0,\n",
- " 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
- " 'Vehicle_Location-Restricted_Lane': 0,\n",
+ " 'Age_of_Vehicle': -1,\n",
" 'Vehicle_Manoeuvre': 18,\n",
- " 'Vehicle_Reference': 2,\n",
- " 'Vehicle_Type': 9,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 2,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b696'),\n",
- " 'loc': {'coordinates': [-0.797437, 52.045463], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 3,\n",
- " '1st_Road_Number': 422,\n",
- " '2nd_Road_Class': 5,\n",
- " '2nd_Road_Number': 143,\n",
- " 'Accident_Index': '201243S122022',\n",
+ " 'Junction_Detail': 0,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016813',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.045463,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S052112',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 3,\n",
+ " '2nd_Road_Class': -1,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 5,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.797437,\n",
+ " 'Junction_Control': -1,\n",
+ " 'Speed_limit': 70,\n",
+ " 'Date': '06/11/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 11, 6, 7, 49),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.797437, 52.045463]},\n",
+ " 'Weather_Conditions': 2},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b7f4'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 5,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 5,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1}],\n",
- " 'Date': '29/02/2012',\n",
- " 'Datetime': datetime.datetime(2012, 2, 29, 12, 22),\n",
- " 'Day_of_Week': 4,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 1,\n",
- " 'LSOA_of_Accident_Location': 'E01016816',\n",
- " 'Latitude': 52.04645,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 481980,\n",
- " 'Location_Northing_OSGR': 239350,\n",
- " 'Longitude': -0.806014,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 1,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 1,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 70,\n",
+ " '1st_Road_Number': 422,\n",
" 'Time': '12:22',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 4,\n",
- " 'Age_Band_of_Driver': 5,\n",
- " 'Age_of_Vehicle': 11,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 2,\n",
- " 'Engine_Capacity_(CC)': 899,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 1,\n",
+ " '2nd_Road_Number': 143,\n",
+ " 'Location_Northing_OSGR': 239350,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 1,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 481980,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 4,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 2,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 1,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 2,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 4,\n",
+ " 'Engine_Capacity_(CC)': 899,\n",
" 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 5,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 4,\n",
" 'Vehicle_Type': 5,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 11,\n",
+ " 'Vehicle_Manoeuvre': 4,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b7f4'),\n",
- " 'loc': {'coordinates': [-0.806014, 52.04645], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 3,\n",
- " '1st_Road_Number': 422,\n",
+ " 'Junction_Detail': 1,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016816',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.04645,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S122022',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 3,\n",
" '2nd_Road_Class': 5,\n",
- " '2nd_Road_Number': 155,\n",
- " 'Accident_Index': '201243S002092',\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 8,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.806014,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 70,\n",
+ " 'Date': '29/02/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 2, 29, 12, 22),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.806014, 52.04645]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b5be'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 8,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '01/09/2012',\n",
- " 'Datetime': datetime.datetime(2012, 9, 1, 12, 0),\n",
- " 'Day_of_Week': 7,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 2,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 1,\n",
- " 'LSOA_of_Accident_Location': 'E01016813',\n",
- " 'Latitude': 52.045985,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 482080,\n",
- " 'Location_Northing_OSGR': 239300,\n",
- " 'Longitude': -0.804568,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 60,\n",
+ " '1st_Road_Number': 422,\n",
" 'Time': '12:00',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': -1,\n",
- " 'Age_of_Vehicle': 11,\n",
- " 'Driver_Home_Area_Type': -1,\n",
- " 'Driver_IMD_Decile': -1,\n",
- " 'Engine_Capacity_(CC)': 1360,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 155,\n",
+ " 'Location_Northing_OSGR': 239300,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 482080,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 7,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': -1,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 1,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 4,\n",
+ " 'Engine_Capacity_(CC)': 1360,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': 8,\n",
- " 'Age_of_Vehicle': 5,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 10,\n",
- " 'Engine_Capacity_(CC)': 1997,\n",
+ " 'Age_Band_of_Driver': -1,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 1,\n",
+ " 'Driver_Home_Area_Type': -1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
+ " 'Age_of_Vehicle': 11,\n",
+ " 'Vehicle_Manoeuvre': 4,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 10,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 4,\n",
+ " 'Engine_Capacity_(CC)': 1997,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 8,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 5,\n",
+ " 'Vehicle_Manoeuvre': 4,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b5be'),\n",
- " 'loc': {'coordinates': [-0.804568, 52.045985], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 155,\n",
- " '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1132,\n",
- " 'Accident_Index': '201243S117092',\n",
+ " 'Junction_Detail': 1,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016813',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.045985,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 2,\n",
+ " 'Accident_Index': '201243S002092',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 3,\n",
+ " '2nd_Road_Class': 5,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 6,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.804568,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 60,\n",
+ " 'Date': '01/09/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 9, 1, 12, 0),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.804568, 52.045985]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b7dc'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 4,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 4,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2},\n",
- " {'Age_Band_of_Casualty': 4,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 1,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 3,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 3,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 1,\n",
+ " 'Age_Band_of_Casualty': 4,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '28/09/2012',\n",
- " 'Datetime': datetime.datetime(2012, 9, 28, 22, 5),\n",
- " 'Day_of_Week': 6,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 3,\n",
- " 'LSOA_of_Accident_Location': 'E01016819',\n",
- " 'Latitude': 52.050044,\n",
- " 'Light_Conditions': 4,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 481990,\n",
- " 'Location_Northing_OSGR': 239750,\n",
- " 'Longitude': -0.805772,\n",
- " 'Number_of_Casualties': 3,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 60,\n",
+ " '1st_Road_Number': 155,\n",
" 'Time': '22:05',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 12,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 7,\n",
- " 'Engine_Capacity_(CC)': 973,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 7,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 1132,\n",
+ " 'Location_Northing_OSGR': 239750,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 481990,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 6,\n",
+ " 'Light_Conditions': 4,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 7,\n",
+ " 'Vehicle_Leaving_Carriageway': 1,\n",
" 'Junction_Location': 8,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 1,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Engine_Capacity_(CC)': 973,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 4,\n",
- " 'Age_of_Vehicle': 7,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 8,\n",
- " 'Engine_Capacity_(CC)': 1341,\n",
+ " 'Age_Band_of_Driver': 6,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 7,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 8,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
+ " 'Age_of_Vehicle': 12,\n",
+ " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 8,\n",
+ " 'Vehicle_Leaving_Carriageway': 7,\n",
+ " 'Junction_Location': 8,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 7,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1341,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 4,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 7,\n",
+ " '1st_Point_of_Impact': 1,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 7,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b7dc'),\n",
- " 'loc': {'coordinates': [-0.805772, 52.050044], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 155,\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016819',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.050044,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S117092',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
" '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1132,\n",
- " 'Accident_Index': '201243S127092',\n",
- " 'Accident_Severity': 2,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 11,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Accident_Severity': 3,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.805772,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 60,\n",
+ " 'Date': '28/09/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 9, 28, 22, 5),\n",
+ " 'Number_of_Casualties': 3,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.805772, 52.050044]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b80e'),\n",
+ " 'Casualties': [{'Casualty_Severity': 2,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 2,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 2,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 2,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 11,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 5,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1},\n",
+ " {'Casualty_Severity': 2,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': -1,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 2,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': -1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 5,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2},\n",
- " {'Age_Band_of_Casualty': 5,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 1,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': -1,\n",
- " 'Casualty_Reference': 3,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 3,\n",
+ " 'Casualty_Home_Area_Type': -1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 1,\n",
+ " 'Age_Band_of_Casualty': 5,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '30/09/2012',\n",
- " 'Datetime': datetime.datetime(2012, 9, 30, 13, 59),\n",
- " 'Day_of_Week': 1,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 3,\n",
- " 'LSOA_of_Accident_Location': 'E01016810',\n",
- " 'Latitude': 52.049954,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 481990,\n",
- " 'Location_Northing_OSGR': 239740,\n",
- " 'Longitude': -0.805774,\n",
- " 'Number_of_Casualties': 3,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 60,\n",
+ " '1st_Road_Number': 155,\n",
" 'Time': '13:59',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 3,\n",
- " 'Age_Band_of_Driver': 11,\n",
- " 'Age_of_Vehicle': 4,\n",
- " 'Driver_Home_Area_Type': 2,\n",
- " 'Driver_IMD_Decile': 9,\n",
- " 'Engine_Capacity_(CC)': 2198,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 1132,\n",
+ " 'Location_Northing_OSGR': 239740,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 481990,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 1,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 6,\n",
- " 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Engine_Capacity_(CC)': 2198,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 5,\n",
- " 'Age_of_Vehicle': 3,\n",
- " 'Driver_Home_Area_Type': -1,\n",
- " 'Driver_IMD_Decile': -1,\n",
- " 'Engine_Capacity_(CC)': 1229,\n",
+ " 'Age_Band_of_Driver': 11,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 3,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 2,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': 4,\n",
+ " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': -1,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 8,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1229,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 5,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': -1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 3,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b80e'),\n",
- " 'loc': {'coordinates': [-0.805774, 52.049954], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 3,\n",
- " '1st_Road_Number': 5,\n",
- " '2nd_Road_Class': -1,\n",
- " '2nd_Road_Number': 0,\n",
- " 'Accident_Index': '201243S099112',\n",
- " 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 8,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016810',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.049954,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S127092',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
+ " '2nd_Road_Class': 6,\n",
+ " 'Accident_Severity': 2,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.805774,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 60,\n",
+ " 'Date': '30/09/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 9, 30, 13, 59),\n",
+ " 'Number_of_Casualties': 3,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.805774, 52.049954]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b780'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 3,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 3,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 8,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '23/11/2012',\n",
- " 'Datetime': datetime.datetime(2012, 11, 23, 16, 50),\n",
- " 'Day_of_Week': 6,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': -1,\n",
- " 'Junction_Detail': 0,\n",
- " 'LSOA_of_Accident_Location': 'E01016813',\n",
- " 'Latitude': 52.046405,\n",
- " 'Light_Conditions': 4,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 482280,\n",
- " 'Location_Northing_OSGR': 239350,\n",
- " 'Longitude': -0.80164,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 3,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 3,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 70,\n",
+ " '1st_Road_Number': 5,\n",
" 'Time': '16:50',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 4,\n",
- " 'Age_of_Vehicle': 10,\n",
- " 'Driver_Home_Area_Type': -1,\n",
- " 'Driver_IMD_Decile': -1,\n",
- " 'Engine_Capacity_(CC)': 1242,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 2,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': 0,\n",
+ " 'Location_Northing_OSGR': 239350,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 3,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 482280,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 6,\n",
+ " 'Light_Conditions': 4,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': -1,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 1,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 12,\n",
+ " 'Engine_Capacity_(CC)': 1242,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': 8,\n",
- " 'Age_of_Vehicle': 7,\n",
- " 'Driver_Home_Area_Type': 3,\n",
- " 'Driver_IMD_Decile': 7,\n",
- " 'Engine_Capacity_(CC)': 1598,\n",
+ " 'Age_Band_of_Driver': 4,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 2,\n",
- " 'Junction_Location': 0,\n",
+ " 'Driver_Home_Area_Type': -1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
+ " 'Age_of_Vehicle': 10,\n",
+ " 'Vehicle_Manoeuvre': 12,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 7,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 0,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 4,\n",
+ " 'Engine_Capacity_(CC)': 1598,\n",
" 'Vehicle_Reference': 2,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
" 'Age_Band_of_Driver': 8,\n",
- " 'Age_of_Vehicle': 1,\n",
- " 'Driver_Home_Area_Type': 3,\n",
- " 'Driver_IMD_Decile': 9,\n",
- " 'Engine_Capacity_(CC)': 1968,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 2,\n",
+ " 'Driver_Home_Area_Type': 3,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 7,\n",
+ " 'Vehicle_Manoeuvre': 4,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 4,\n",
+ " 'Engine_Capacity_(CC)': 1968,\n",
" 'Vehicle_Reference': 3,\n",
+ " 'Age_Band_of_Driver': 8,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 2,\n",
+ " 'Driver_Home_Area_Type': 3,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': 1,\n",
+ " 'Vehicle_Manoeuvre': 4,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b780'),\n",
- " 'loc': {'coordinates': [-0.80164, 52.046405], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 155,\n",
- " '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1132,\n",
- " 'Accident_Index': '201243S051122',\n",
+ " 'Junction_Detail': 0,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016813',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.046405,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S099112',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 3,\n",
+ " '2nd_Road_Class': -1,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 6,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.80164,\n",
+ " 'Junction_Control': -1,\n",
+ " 'Speed_limit': 70,\n",
+ " 'Date': '23/11/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 11, 23, 16, 50),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.80164, 52.046405]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b692'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2},\n",
- " {'Age_Band_of_Casualty': 1,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 2,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 2,\n",
+ " 'Age_Band_of_Casualty': 1,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '13/12/2012',\n",
- " 'Datetime': datetime.datetime(2012, 12, 13, 8, 45),\n",
- " 'Day_of_Week': 5,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 3,\n",
- " 'LSOA_of_Accident_Location': 'E01016819',\n",
- " 'Latitude': 52.050144,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 481981,\n",
- " 'Location_Northing_OSGR': 239761,\n",
- " 'Longitude': -0.805901,\n",
- " 'Number_of_Casualties': 2,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 60,\n",
+ " '1st_Road_Number': 155,\n",
" 'Time': '08:45',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': 13,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 6,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 1132,\n",
+ " 'Location_Northing_OSGR': 239761,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 481981,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 5,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 6,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 8,\n",
+ " 'Skidding_and_Overturning': 0,\n",
+ " 'Towing_and_Articulation': 0,\n",
+ " 'Vehicle_Location-Restricted_Lane': 0,\n",
" 'Engine_Capacity_(CC)': 1360,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 7,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 2,\n",
- " 'Junction_Location': 8,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
+ " 'Age_of_Vehicle': 13,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 8,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 8,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
- " 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 12,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 8,\n",
" 'Engine_Capacity_(CC)': 1242,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 6,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 3,\n",
- " 'Junction_Location': 8,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
- " 'Skidding_and_Overturning': 0,\n",
- " 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
- " 'Vehicle_Location-Restricted_Lane': 0,\n",
+ " 'Age_of_Vehicle': 12,\n",
" 'Vehicle_Manoeuvre': 4,\n",
- " 'Vehicle_Reference': 2,\n",
- " 'Vehicle_Type': 9,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b692'),\n",
- " 'loc': {'coordinates': [-0.805901, 52.050144], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 6,\n",
- " '1st_Road_Number': 1085,\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016819',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.050144,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S051122',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
" '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1085,\n",
- " 'Accident_Index': '201243S069062',\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 5,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.805901,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 60,\n",
+ " 'Date': '13/12/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 12, 13, 8, 45),\n",
+ " 'Number_of_Casualties': 2,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.805901, 52.050144]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b6e7'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 1,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 5,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '20/06/2012',\n",
- " 'Datetime': datetime.datetime(2012, 6, 20, 7, 45),\n",
- " 'Day_of_Week': 4,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 8,\n",
- " 'LSOA_of_Accident_Location': 'E01016813',\n",
- " 'Latitude': 52.043184,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 482180,\n",
- " 'Location_Northing_OSGR': 238990,\n",
- " 'Longitude': -0.803184,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 30,\n",
+ " '1st_Road_Number': 1085,\n",
" 'Time': '07:45',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': -1,\n",
- " 'Driver_IMD_Decile': -1,\n",
- " 'Engine_Capacity_(CC)': -1,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 1,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 1085,\n",
+ " 'Location_Northing_OSGR': 238990,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 482180,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 4,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': -1,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 6,\n",
- " 'Propulsion_Code': -1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 9,\n",
- " 'Vehicle_Manoeuvre': 1,\n",
- " 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 3,\n",
- " 'Age_Band_of_Driver': 5,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 7,\n",
" 'Engine_Capacity_(CC)': -1,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 6,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 1,\n",
- " 'Junction_Location': 1,\n",
+ " 'Driver_Home_Area_Type': -1,\n",
" 'Propulsion_Code': -1,\n",
- " 'Sex_of_Driver': 2,\n",
+ " 'Age_of_Vehicle': -1,\n",
+ " 'Vehicle_Manoeuvre': 1,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 7,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 9,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': -1,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 5,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 3,\n",
" 'Vehicle_Type': 1,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 1,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': -1,\n",
+ " 'Age_of_Vehicle': -1,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b6e7'),\n",
- " 'loc': {'coordinates': [-0.803184, 52.043184], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 155,\n",
+ " 'Junction_Detail': 8,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016813',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.043184,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S069062',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 6,\n",
" '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1085,\n",
- " 'Accident_Index': '201243S119072',\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 5,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 1,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.803184,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 30,\n",
+ " 'Date': '20/06/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 6, 20, 7, 45),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.803184, 52.043184]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b7e8'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 2,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 2,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 1,\n",
+ " 'Age_Band_of_Casualty': 5,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '30/07/2012',\n",
- " 'Datetime': datetime.datetime(2012, 7, 30, 20, 0),\n",
- " 'Day_of_Week': 2,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 3,\n",
- " 'LSOA_of_Accident_Location': 'E01016813',\n",
- " 'Latitude': 52.043809,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 482210,\n",
- " 'Location_Northing_OSGR': 239060,\n",
- " 'Longitude': -0.80273,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 60,\n",
+ " '1st_Road_Number': 155,\n",
" 'Time': '20:00',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 5,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 9,\n",
- " 'Engine_Capacity_(CC)': 1598,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 1085,\n",
+ " 'Location_Northing_OSGR': 239060,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 482210,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 2,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 1,\n",
- " 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 8,\n",
+ " 'Engine_Capacity_(CC)': 1598,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 19,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
" 'Age_Band_of_Driver': 5,\n",
- " 'Age_of_Vehicle': 14,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 6,\n",
- " 'Engine_Capacity_(CC)': 1242,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 19,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': -1,\n",
+ " 'Vehicle_Manoeuvre': 8,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 6,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 1,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 8,\n",
+ " 'Engine_Capacity_(CC)': 1242,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 5,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 14,\n",
+ " 'Vehicle_Manoeuvre': 8,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b7e8'),\n",
- " 'loc': {'coordinates': [-0.80273, 52.043809], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 155,\n",
- " '2nd_Road_Class': -1,\n",
- " '2nd_Road_Number': 0,\n",
- " 'Accident_Index': '201243S151102',\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016813',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.043809,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S119072',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
+ " '2nd_Road_Class': 6,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 8,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.80273,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 60,\n",
+ " 'Date': '30/07/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 7, 30, 20, 0),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.80273, 52.043809]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b84e'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 8,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1}],\n",
- " 'Date': '16/10/2012',\n",
- " 'Datetime': datetime.datetime(2012, 10, 16, 23, 16),\n",
- " 'Day_of_Week': 3,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': -1,\n",
- " 'Junction_Detail': 0,\n",
- " 'LSOA_of_Accident_Location': 'E01016813',\n",
- " 'Latitude': 52.043992,\n",
- " 'Light_Conditions': 4,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 482190,\n",
- " 'Location_Northing_OSGR': 239080,\n",
- " 'Longitude': -0.803017,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 1,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 60,\n",
+ " '1st_Road_Number': 155,\n",
" 'Time': '23:16',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 0,\n",
- " 'Age_Band_of_Driver': 8,\n",
- " 'Age_of_Vehicle': 7,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 9,\n",
- " 'Engine_Capacity_(CC)': 1910,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 0,\n",
+ " 'Location_Northing_OSGR': 239080,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 1,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 482190,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 3,\n",
+ " 'Light_Conditions': 4,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 5,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1910,\n",
" 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 8,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 0,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': 7,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b84e'),\n",
- " 'loc': {'coordinates': [-0.803017, 52.043992], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 143,\n",
+ " 'Junction_Detail': 0,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016813',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.043992,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S151102',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
" '2nd_Road_Class': -1,\n",
- " '2nd_Road_Number': 0,\n",
- " 'Accident_Index': '201243S148052',\n",
- " 'Accident_Severity': 2,\n",
- " 'Carriageway_Hazards': 1,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 9,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Accident_Severity': 3,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.803017,\n",
+ " 'Junction_Control': -1,\n",
+ " 'Speed_limit': 60,\n",
+ " 'Date': '16/10/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 10, 16, 23, 16),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.803017, 52.043992]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b84a'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 21,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 9,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 4,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 3,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 21,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 3,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 4,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 8,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1},\n",
+ " {'Casualty_Severity': 2,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 3,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 2,\n",
" 'Casualty_Type': 5,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 3,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 8,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '28/05/2012',\n",
- " 'Datetime': datetime.datetime(2012, 5, 28, 10, 25),\n",
- " 'Day_of_Week': 2,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': -1,\n",
- " 'Junction_Detail': 0,\n",
- " 'LSOA_of_Accident_Location': 'E01016816',\n",
- " 'Latitude': 52.044702,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 481640,\n",
- " 'Location_Northing_OSGR': 239150,\n",
- " 'Longitude': -0.811018,\n",
- " 'Number_of_Casualties': 3,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 7,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 60,\n",
+ " '1st_Road_Number': 143,\n",
" 'Time': '10:25',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': 9,\n",
- " 'Age_of_Vehicle': 14,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 10,\n",
- " 'Engine_Capacity_(CC)': 5861,\n",
- " 'Hit_Object_in_Carriageway': 5,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 1,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 0,\n",
+ " 'Location_Northing_OSGR': 239150,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 1,\n",
+ " 'Location_Easting_OSGR': 481640,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 2,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 10,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 5861,\n",
" 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 9,\n",
+ " 'Hit_Object_in_Carriageway': 5,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
" 'Vehicle_Type': 21,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 1,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': 14,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 8,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': 3,\n",
- " 'Driver_IMD_Decile': 8,\n",
- " 'Engine_Capacity_(CC)': -1,\n",
- " 'Hit_Object_in_Carriageway': 11,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 2,\n",
+ " {'Driver_IMD_Decile': 8,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': -1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 1,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': -1,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 8,\n",
+ " 'Hit_Object_in_Carriageway': 11,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
" 'Vehicle_Type': 5,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 2,\n",
+ " 'Driver_Home_Area_Type': 3,\n",
+ " 'Propulsion_Code': -1,\n",
+ " 'Age_of_Vehicle': -1,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b84a'),\n",
- " 'loc': {'coordinates': [-0.811018, 52.044702], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 143,\n",
- " '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1116,\n",
- " 'Accident_Index': '201243S042022',\n",
- " 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 6,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Junction_Detail': 0,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016816',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.044702,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S148052',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 7,\n",
+ " '1st_Road_Class': 5,\n",
+ " '2nd_Road_Class': -1,\n",
+ " 'Accident_Severity': 2,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.811018,\n",
+ " 'Junction_Control': -1,\n",
+ " 'Speed_limit': 60,\n",
+ " 'Date': '28/05/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 5, 28, 10, 25),\n",
+ " 'Number_of_Casualties': 3,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.811018, 52.044702]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b669'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 9,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 3,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 3,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 9,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '08/02/2012',\n",
- " 'Datetime': datetime.datetime(2012, 2, 8, 9, 3),\n",
- " 'Day_of_Week': 4,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 3,\n",
- " 'LSOA_of_Accident_Location': 'E01016816',\n",
- " 'Latitude': 52.042155,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 481230,\n",
- " 'Location_Northing_OSGR': 238860,\n",
- " 'Longitude': -0.817064,\n",
- " 'Number_of_Casualties': 2,\n",
- " 'Number_of_Vehicles': 3,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 60,\n",
+ " '1st_Road_Number': 143,\n",
" 'Time': '09:03',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 15,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 8,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 1116,\n",
+ " 'Location_Northing_OSGR': 238860,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 3,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 481230,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 4,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 8,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 8,\n",
+ " 'Skidding_and_Overturning': 0,\n",
+ " 'Towing_and_Articulation': 0,\n",
+ " 'Vehicle_Location-Restricted_Lane': 0,\n",
" 'Engine_Capacity_(CC)': 1341,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 6,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 8,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
+ " 'Age_of_Vehicle': 15,\n",
+ " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 9,\n",
- " 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 9,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': 3,\n",
- " 'Driver_IMD_Decile': 9,\n",
" 'Engine_Capacity_(CC)': -1,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 9,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 2,\n",
- " 'Junction_Location': 1,\n",
+ " 'Driver_Home_Area_Type': 3,\n",
" 'Propulsion_Code': -1,\n",
- " 'Sex_of_Driver': 1,\n",
+ " 'Age_of_Vehicle': -1,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 1,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
- " 'Vehicle_Reference': 2,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 3,\n",
- " 'Age_Band_of_Driver': 8,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 1,\n",
" 'Engine_Capacity_(CC)': -1,\n",
+ " 'Vehicle_Reference': 3,\n",
+ " 'Age_Band_of_Driver': 8,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 3,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 1,\n",
- " 'Junction_Location': 1,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': -1,\n",
- " 'Sex_of_Driver': 1,\n",
- " 'Skidding_and_Overturning': 0,\n",
- " 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
- " 'Vehicle_Location-Restricted_Lane': 0,\n",
+ " 'Age_of_Vehicle': -1,\n",
" 'Vehicle_Manoeuvre': 10,\n",
- " 'Vehicle_Reference': 3,\n",
- " 'Vehicle_Type': 9,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b669'),\n",
- " 'loc': {'coordinates': [-0.817064, 52.042155], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 129,\n",
- " '2nd_Road_Class': 5,\n",
- " '2nd_Road_Number': 143,\n",
- " 'Accident_Index': '201243S009032',\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016816',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.042155,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S042022',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
+ " '2nd_Road_Class': 6,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 4,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.817064,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 60,\n",
+ " 'Date': '08/02/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 2, 8, 9, 3),\n",
+ " 'Number_of_Casualties': 2,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.817064, 52.042155]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b5d6'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 1,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 4,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '03/03/2012',\n",
- " 'Datetime': datetime.datetime(2012, 3, 3, 17, 0),\n",
- " 'Day_of_Week': 7,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 2,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 1,\n",
- " 'LSOA_of_Accident_Location': 'E01016816',\n",
- " 'Latitude': 52.040375,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 481110,\n",
- " 'Location_Northing_OSGR': 238660,\n",
- " 'Longitude': -0.81886,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 1,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 60,\n",
+ " '1st_Road_Number': 129,\n",
" 'Time': '17:00',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 3,\n",
- " 'Age_Band_of_Driver': -1,\n",
- " 'Age_of_Vehicle': 10,\n",
- " 'Driver_Home_Area_Type': 2,\n",
- " 'Driver_IMD_Decile': 10,\n",
- " 'Engine_Capacity_(CC)': 1596,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 1,\n",
+ " '2nd_Road_Number': 143,\n",
+ " 'Location_Northing_OSGR': 238660,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 481110,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 7,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 10,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 4,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Engine_Capacity_(CC)': 1596,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 4,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 9,\n",
- " 'Engine_Capacity_(CC)': -1,\n",
+ " 'Age_Band_of_Driver': -1,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 3,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 2,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 10,\n",
+ " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 8,\n",
- " 'Propulsion_Code': -1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': -1,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 4,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
" 'Vehicle_Type': 1,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': -1,\n",
+ " 'Age_of_Vehicle': -1,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 8,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b5d6'),\n",
- " 'loc': {'coordinates': [-0.81886, 52.040375], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 143,\n",
- " '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1116,\n",
- " 'Accident_Index': '201243S004042',\n",
+ " 'Junction_Detail': 1,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
+ " 'LSOA_of_Accident_Location': 'E01016816',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.040375,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 2,\n",
+ " 'Accident_Index': '201243S009032',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
+ " '2nd_Road_Class': 5,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 8,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.81886,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 60,\n",
+ " 'Date': '03/03/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 3, 3, 17, 0),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.81886, 52.040375]},\n",
+ " 'Weather_Conditions': 8},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b5c5'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 8,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '04/04/2012',\n",
- " 'Datetime': datetime.datetime(2012, 4, 4, 20, 55),\n",
- " 'Day_of_Week': 4,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 3,\n",
- " 'LSOA_of_Accident_Location': 'E01016816',\n",
- " 'Latitude': 52.042155,\n",
- " 'Light_Conditions': 4,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 481230,\n",
- " 'Location_Northing_OSGR': 238860,\n",
- " 'Longitude': -0.817064,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 60,\n",
+ " '1st_Road_Number': 143,\n",
" 'Time': '20:55',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 3,\n",
- " 'Age_Band_of_Driver': 9,\n",
- " 'Age_of_Vehicle': 1,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 1,\n",
- " 'Engine_Capacity_(CC)': 10308,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 1,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 1116,\n",
+ " 'Location_Northing_OSGR': 238860,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 481230,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 4,\n",
+ " 'Light_Conditions': 4,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 1,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 8,\n",
- " 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 1,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Engine_Capacity_(CC)': 10308,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 21,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 8,\n",
- " 'Age_of_Vehicle': 5,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 9,\n",
- " 'Engine_Capacity_(CC)': 1997,\n",
+ " 'Age_Band_of_Driver': 9,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 1,\n",
+ " '1st_Point_of_Impact': 3,\n",
+ " 'Vehicle_Type': 21,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 1,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 2,\n",
+ " 'Age_of_Vehicle': 1,\n",
+ " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1997,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 8,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': 5,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 2,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b5c5'),\n",
- " 'loc': {'coordinates': [-0.817064, 52.042155], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 143,\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016816',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.042155,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S004042',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
" '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1116,\n",
- " 'Accident_Index': '201243S110062',\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 8,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.817064,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 60,\n",
+ " 'Date': '04/04/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 4, 4, 20, 55),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.817064, 52.042155]},\n",
+ " 'Weather_Conditions': 2},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b7b3'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 3,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 5,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 3,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 8,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '26/06/2012',\n",
- " 'Datetime': datetime.datetime(2012, 6, 26, 6, 19),\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
+ " 'Road_Surface_Conditions': 1,\n",
+ " '1st_Road_Number': 143,\n",
+ " 'Time': '06:19',\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 1116,\n",
+ " 'Location_Northing_OSGR': 238850,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 481230,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
" 'Day_of_Week': 3,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 3,\n",
- " 'LSOA_of_Accident_Location': 'E01016816',\n",
- " 'Latitude': 52.042066,\n",
" 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 481230,\n",
- " 'Location_Northing_OSGR': 238850,\n",
- " 'Longitude': -0.817066,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
- " 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 60,\n",
- " 'Time': '06:19',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 8,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': -1,\n",
- " 'Driver_IMD_Decile': -1,\n",
- " 'Engine_Capacity_(CC)': -1,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': -1,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 8,\n",
- " 'Propulsion_Code': -1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 1,\n",
" 'Towing_and_Articulation': 1,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Engine_Capacity_(CC)': -1,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 21,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 2},\n",
- " {'1st_Point_of_Impact': 3,\n",
" 'Age_Band_of_Driver': 8,\n",
- " 'Age_of_Vehicle': 11,\n",
- " 'Driver_Home_Area_Type': 3,\n",
- " 'Driver_IMD_Decile': 9,\n",
- " 'Engine_Capacity_(CC)': 1130,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 2,\n",
- " 'Junction_Location': 1,\n",
- " 'Propulsion_Code': 1,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 21,\n",
" 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 1,\n",
+ " 'Driver_Home_Area_Type': -1,\n",
+ " 'Propulsion_Code': -1,\n",
+ " 'Age_of_Vehicle': -1,\n",
+ " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 2},\n",
+ " {'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 1,\n",
" 'Skidding_and_Overturning': 5,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1130,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 8,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 3,\n",
" 'Vehicle_Type': 5,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 2,\n",
+ " 'Driver_Home_Area_Type': 3,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 11,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b7b3'),\n",
- " 'loc': {'coordinates': [-0.817066, 52.042066], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 143,\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016816',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.042066,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S110062',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
" '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1085,\n",
- " 'Accident_Index': '201243S019092',\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 8,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.817066,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 60,\n",
+ " 'Date': '26/06/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 6, 26, 6, 19),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.817066, 52.042066]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b5fc'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 3,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 8,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 3}],\n",
- " 'Date': '04/09/2012',\n",
- " 'Datetime': datetime.datetime(2012, 9, 4, 11, 28),\n",
- " 'Day_of_Week': 3,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 3,\n",
- " 'LSOA_of_Accident_Location': 'E01016813',\n",
- " 'Latitude': 52.045398,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 481800,\n",
- " 'Location_Northing_OSGR': 239230,\n",
- " 'Longitude': -0.808666,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 3,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 60,\n",
+ " '1st_Road_Number': 143,\n",
" 'Time': '11:28',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 5,\n",
- " 'Age_of_Vehicle': 10,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 8,\n",
- " 'Engine_Capacity_(CC)': 1242,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 1085,\n",
+ " 'Location_Northing_OSGR': 239230,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 3,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 481800,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 3,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 8,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 1,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1242,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': 10,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': 3,\n",
- " 'Driver_IMD_Decile': 9,\n",
- " 'Engine_Capacity_(CC)': -1,\n",
+ " 'Age_Band_of_Driver': 5,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 10,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 1,\n",
- " 'Propulsion_Code': -1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 3,\n",
+ " 'Engine_Capacity_(CC)': -1,\n",
" 'Vehicle_Reference': 2,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': 8,\n",
- " 'Age_of_Vehicle': 1,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 9,\n",
- " 'Engine_Capacity_(CC)': 1600,\n",
+ " 'Age_Band_of_Driver': 10,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 3,\n",
+ " 'Propulsion_Code': -1,\n",
+ " 'Age_of_Vehicle': -1,\n",
+ " 'Vehicle_Manoeuvre': 3,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 1,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 3,\n",
+ " 'Engine_Capacity_(CC)': 1600,\n",
" 'Vehicle_Reference': 3,\n",
+ " 'Age_Band_of_Driver': 8,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 1,\n",
+ " 'Vehicle_Manoeuvre': 3,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b5fc'),\n",
- " 'loc': {'coordinates': [-0.808666, 52.045398], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 6,\n",
- " '1st_Road_Number': 1129,\n",
- " '2nd_Road_Class': -1,\n",
- " '2nd_Road_Number': 0,\n",
- " 'Accident_Index': '201243S067102',\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016813',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.045398,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S019092',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
+ " '2nd_Road_Class': 6,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 6,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.808666,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 60,\n",
+ " 'Date': '04/09/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 9, 4, 11, 28),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.808666, 52.045398]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b6dc'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 3,\n",
- " 'Casualty_Home_Area_Type': -1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 0,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': -1,\n",
" 'Pedestrian_Location': 9,\n",
- " 'Pedestrian_Movement': 5,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 1}],\n",
- " 'Date': '14/10/2012',\n",
- " 'Datetime': datetime.datetime(2012, 10, 14, 0, 27),\n",
- " 'Day_of_Week': 1,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 2,\n",
- " 'Junction_Control': -1,\n",
- " 'Junction_Detail': 0,\n",
- " 'LSOA_of_Accident_Location': 'E01016810',\n",
- " 'Latitude': 52.050477,\n",
- " 'Light_Conditions': 4,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 481490,\n",
- " 'Location_Northing_OSGR': 239790,\n",
- " 'Longitude': -0.813052,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 1,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 5,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': -1,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 30,\n",
+ " '1st_Road_Number': 1129,\n",
" 'Time': '00:27',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 8,\n",
- " 'Age_of_Vehicle': 1,\n",
- " 'Driver_Home_Area_Type': 3,\n",
- " 'Driver_IMD_Decile': 9,\n",
- " 'Engine_Capacity_(CC)': 2143,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 1,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 0,\n",
+ " 'Location_Northing_OSGR': 239790,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 1,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 481490,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 1,\n",
+ " 'Light_Conditions': 4,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 4,\n",
+ " 'Engine_Capacity_(CC)': 2143,\n",
" 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 8,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
" 'Vehicle_Type': 8,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 1,\n",
+ " 'Driver_Home_Area_Type': 3,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': 1,\n",
+ " 'Vehicle_Manoeuvre': 4,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 9,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b6dc'),\n",
- " 'loc': {'coordinates': [-0.813052, 52.050477], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 6,\n",
- " '1st_Road_Number': 1129,\n",
- " '2nd_Road_Class': -1,\n",
- " '2nd_Road_Number': 0,\n",
- " 'Accident_Index': '201243S056012',\n",
- " 'Accident_Severity': 2,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 7,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
- " 'Casualty_Class': 3,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 2,\n",
- " 'Casualty_Type': 0,\n",
- " 'Pedestrian_Location': 8,\n",
- " 'Pedestrian_Movement': 9,\n",
- " 'Pedestrian_Road_Maintenance_Worker': 2,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '01/01/2012',\n",
- " 'Datetime': datetime.datetime(2012, 1, 1, 3, 13),\n",
- " 'Day_of_Week': 1,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': -1,\n",
" 'Junction_Detail': 0,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
" 'LSOA_of_Accident_Location': 'E01016810',\n",
- " 'Latitude': 52.050567,\n",
- " 'Light_Conditions': 4,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 481490,\n",
- " 'Location_Northing_OSGR': 239800,\n",
- " 'Longitude': -0.81305,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
" 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.050477,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 2,\n",
+ " 'Accident_Index': '201243S067102',\n",
" 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
- " 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 6,\n",
+ " '1st_Road_Class': 6,\n",
+ " '2nd_Road_Class': -1,\n",
+ " 'Accident_Severity': 3,\n",
" 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.813052,\n",
+ " 'Junction_Control': -1,\n",
" 'Speed_limit': 30,\n",
+ " 'Date': '14/10/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 10, 14, 0, 27),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.813052, 52.050477]},\n",
+ " 'Weather_Conditions': 9},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b6a5'),\n",
+ " 'Casualties': [{'Casualty_Severity': 2,\n",
+ " 'Casualty_Class': 3,\n",
+ " 'Casualty_Type': 0,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
+ " 'Pedestrian_Location': 8,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 7,\n",
+ " 'Pedestrian_Road_Maintenance_Worker': 2,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 9,\n",
+ " 'Sex_of_Casualty': 1}],\n",
+ " 'Road_Surface_Conditions': 2,\n",
+ " '1st_Road_Number': 1129,\n",
" 'Time': '03:13',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 2,\n",
- " 'Driver_Home_Area_Type': 3,\n",
- " 'Driver_IMD_Decile': 8,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 0,\n",
+ " 'Location_Northing_OSGR': 239800,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 481490,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 1,\n",
+ " 'Light_Conditions': 4,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 8,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 0,\n",
+ " 'Skidding_and_Overturning': 0,\n",
+ " 'Towing_and_Articulation': 0,\n",
+ " 'Vehicle_Location-Restricted_Lane': 0,\n",
" 'Engine_Capacity_(CC)': 1998,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 6,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 1,\n",
- " 'Junction_Location': 0,\n",
+ " 'Driver_Home_Area_Type': 3,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
+ " 'Age_of_Vehicle': 2,\n",
+ " 'Vehicle_Manoeuvre': 4,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': -1,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 0,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 4,\n",
- " 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 3,\n",
- " 'Age_Band_of_Driver': 5,\n",
- " 'Age_of_Vehicle': 4,\n",
- " 'Driver_Home_Area_Type': -1,\n",
- " 'Driver_IMD_Decile': -1,\n",
" 'Engine_Capacity_(CC)': 1968,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 5,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 3,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 3,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 0,\n",
+ " 'Driver_Home_Area_Type': -1,\n",
" 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 3,\n",
- " 'Skidding_and_Overturning': 0,\n",
- " 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
- " 'Vehicle_Location-Restricted_Lane': 0,\n",
+ " 'Age_of_Vehicle': 4,\n",
" 'Vehicle_Manoeuvre': 1,\n",
- " 'Vehicle_Reference': 2,\n",
- " 'Vehicle_Type': 9,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b6a5'),\n",
- " 'loc': {'coordinates': [-0.81305, 52.050567], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 155,\n",
- " '2nd_Road_Class': 5,\n",
- " '2nd_Road_Number': 142,\n",
- " 'Accident_Index': '201243S108052',\n",
- " 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 7,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Junction_Detail': 0,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016810',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.050567,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S056012',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 6,\n",
+ " '2nd_Road_Class': -1,\n",
+ " 'Accident_Severity': 2,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.81305,\n",
+ " 'Junction_Control': -1,\n",
+ " 'Speed_limit': 30,\n",
+ " 'Date': '01/01/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 1, 1, 3, 13),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.81305, 52.050567]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b7a9'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 7,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '23/05/2012',\n",
- " 'Datetime': datetime.datetime(2012, 5, 23, 12, 4),\n",
- " 'Day_of_Week': 4,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 1,\n",
- " 'LSOA_of_Accident_Location': 'E01016839',\n",
- " 'Latitude': 52.05263,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 481520,\n",
- " 'Location_Northing_OSGR': 240030,\n",
- " 'Longitude': -0.812558,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 60,\n",
+ " '1st_Road_Number': 155,\n",
" 'Time': '12:04',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 8,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 2,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 142,\n",
+ " 'Location_Northing_OSGR': 240030,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 481520,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 4,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 2,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 1,\n",
+ " 'Skidding_and_Overturning': 0,\n",
+ " 'Towing_and_Articulation': 0,\n",
+ " 'Vehicle_Location-Restricted_Lane': 0,\n",
" 'Engine_Capacity_(CC)': 1349,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 6,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 2,\n",
- " 'Junction_Location': 1,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
+ " 'Age_of_Vehicle': 8,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 6,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
- " 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': 3,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 6,\n",
" 'Engine_Capacity_(CC)': 1388,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 7,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 1,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
- " 'Skidding_and_Overturning': 0,\n",
- " 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
- " 'Vehicle_Location-Restricted_Lane': 0,\n",
+ " 'Age_of_Vehicle': 3,\n",
" 'Vehicle_Manoeuvre': 3,\n",
- " 'Vehicle_Reference': 2,\n",
- " 'Vehicle_Type': 9,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b7a9'),\n",
- " 'loc': {'coordinates': [-0.812558, 52.05263], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 6,\n",
- " '1st_Road_Number': 1132,\n",
- " '2nd_Road_Class': -1,\n",
- " '2nd_Road_Number': 0,\n",
- " 'Accident_Index': '201243S052062',\n",
+ " 'Junction_Detail': 1,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016839',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.05263,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S108052',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
+ " '2nd_Road_Class': 5,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 5,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
- " 'Casualty_Class': 3,\n",
- " 'Casualty_Home_Area_Type': -1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.812558,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 60,\n",
+ " 'Date': '23/05/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 5, 23, 12, 4),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.812558, 52.05263]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b694'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
+ " 'Casualty_Class': 3,\n",
" 'Casualty_Type': 0,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': -1,\n",
" 'Pedestrian_Location': 5,\n",
- " 'Pedestrian_Movement': 1,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 5,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1}],\n",
- " 'Date': '03/06/2012',\n",
- " 'Datetime': datetime.datetime(2012, 6, 3, 2, 25),\n",
- " 'Day_of_Week': 1,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': -1,\n",
- " 'Junction_Detail': 0,\n",
- " 'LSOA_of_Accident_Location': 'E01016819',\n",
- " 'Latitude': 52.053132,\n",
- " 'Light_Conditions': 4,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 481770,\n",
- " 'Location_Northing_OSGR': 240090,\n",
- " 'Longitude': -0.808898,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 1,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 1,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 30,\n",
+ " '1st_Road_Number': 1132,\n",
" 'Time': '02:25',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 4,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': 4,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 3,\n",
- " 'Engine_Capacity_(CC)': 1968,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 1,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 0,\n",
+ " 'Location_Northing_OSGR': 240090,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 1,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 481770,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 1,\n",
+ " 'Light_Conditions': 4,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 3,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 5,\n",
+ " 'Engine_Capacity_(CC)': 1968,\n",
" 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 7,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 4,\n",
" 'Vehicle_Type': 8,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 1,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': 4,\n",
+ " 'Vehicle_Manoeuvre': 5,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 2,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b694'),\n",
- " 'loc': {'coordinates': [-0.808898, 52.053132], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 155,\n",
+ " 'Junction_Detail': 0,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016819',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.053132,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S052062',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 6,\n",
" '2nd_Road_Class': -1,\n",
- " '2nd_Road_Number': 0,\n",
- " 'Accident_Index': '201243S114092',\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 6,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.808898,\n",
+ " 'Junction_Control': -1,\n",
+ " 'Speed_limit': 30,\n",
+ " 'Date': '03/06/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 6, 3, 2, 25),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.808898, 52.053132]},\n",
+ " 'Weather_Conditions': 2},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b7cc'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 7,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 8,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 7,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '23/09/2012',\n",
- " 'Datetime': datetime.datetime(2012, 9, 23, 16, 53),\n",
- " 'Day_of_Week': 1,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': -1,\n",
- " 'Junction_Detail': 0,\n",
- " 'LSOA_of_Accident_Location': 'E01016810',\n",
- " 'Latitude': 52.052074,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 481630,\n",
- " 'Location_Northing_OSGR': 239970,\n",
- " 'Longitude': -0.810968,\n",
- " 'Number_of_Casualties': 2,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 60,\n",
+ " '1st_Road_Number': 155,\n",
" 'Time': '16:53',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 12,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 1,\n",
- " 'Engine_Capacity_(CC)': 1598,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 0,\n",
+ " 'Location_Northing_OSGR': 239970,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 481630,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 1,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 1,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1598,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': 6,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 7,\n",
- " 'Engine_Capacity_(CC)': 1896,\n",
+ " 'Age_Band_of_Driver': 6,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 12,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 7,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1896,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 7,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
" 'Vehicle_Type': 8,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': 6,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 2,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b7cc'),\n",
- " 'loc': {'coordinates': [-0.810968, 52.052074], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 155,\n",
- " '2nd_Road_Class': 5,\n",
- " '2nd_Road_Number': 8002,\n",
- " 'Accident_Index': '201243S060102',\n",
+ " 'Junction_Detail': 0,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016810',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.052074,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S114092',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
+ " '2nd_Road_Class': -1,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 3,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 1,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.810968,\n",
+ " 'Junction_Control': -1,\n",
+ " 'Speed_limit': 60,\n",
+ " 'Date': '23/09/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 9, 23, 16, 53),\n",
+ " 'Number_of_Casualties': 2,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.810968, 52.052074]},\n",
+ " 'Weather_Conditions': 2},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b6bd'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 1,\n",
+ " 'Age_Band_of_Casualty': 3,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2},\n",
- " {'Age_Band_of_Casualty': 7,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 3,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 7,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 3}],\n",
- " 'Date': '15/10/2012',\n",
- " 'Datetime': datetime.datetime(2012, 10, 15, 8, 46),\n",
- " 'Day_of_Week': 2,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 1,\n",
- " 'LSOA_of_Accident_Location': 'E01016839',\n",
- " 'Latitude': 52.052536,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 481550,\n",
- " 'Location_Northing_OSGR': 240020,\n",
- " 'Longitude': -0.812123,\n",
- " 'Number_of_Casualties': 2,\n",
- " 'Number_of_Vehicles': 3,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 60,\n",
+ " '1st_Road_Number': 155,\n",
" 'Time': '08:46',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': 13,\n",
- " 'Driver_Home_Area_Type': -1,\n",
- " 'Driver_IMD_Decile': -1,\n",
- " 'Engine_Capacity_(CC)': 1299,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 1,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 8002,\n",
+ " 'Location_Northing_OSGR': 240020,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 3,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 481550,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 2,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': -1,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 4,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 1,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1299,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 7,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 6,\n",
- " 'Engine_Capacity_(CC)': 2198,\n",
+ " 'Age_Band_of_Driver': 7,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 1,\n",
- " 'Junction_Location': 8,\n",
+ " 'Driver_Home_Area_Type': -1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
+ " 'Age_of_Vehicle': 13,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 6,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 8,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 3,\n",
+ " 'Engine_Capacity_(CC)': 2198,\n",
" 'Vehicle_Reference': 2,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': 7,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 6,\n",
- " 'Engine_Capacity_(CC)': 1560,\n",
+ " 'Age_Band_of_Driver': 6,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 1,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 7,\n",
+ " 'Vehicle_Manoeuvre': 3,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 6,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 8,\n",
- " 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 3,\n",
+ " 'Engine_Capacity_(CC)': 1560,\n",
" 'Vehicle_Reference': 3,\n",
+ " 'Age_Band_of_Driver': 7,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 1,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': 7,\n",
+ " 'Vehicle_Manoeuvre': 3,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 2,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b6bd'),\n",
- " 'loc': {'coordinates': [-0.812123, 52.052536], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 8002,\n",
- " '2nd_Road_Class': -1,\n",
- " '2nd_Road_Number': 0,\n",
- " 'Accident_Index': '201243S022112',\n",
+ " 'Junction_Detail': 1,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016839',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.052536,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S060102',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
+ " '2nd_Road_Class': 5,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 4,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.812123,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 60,\n",
+ " 'Date': '15/10/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 10, 15, 8, 46),\n",
+ " 'Number_of_Casualties': 2,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.812123, 52.052536]},\n",
+ " 'Weather_Conditions': 2},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b60b'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 3,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 0,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 5,\n",
- " 'Pedestrian_Movement': 3,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 4,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 1}],\n",
- " 'Date': '07/11/2012',\n",
- " 'Datetime': datetime.datetime(2012, 11, 7, 18, 35),\n",
- " 'Day_of_Week': 4,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': -1,\n",
- " 'Junction_Detail': 0,\n",
- " 'LSOA_of_Accident_Location': 'E01016810',\n",
- " 'Latitude': 52.053237,\n",
- " 'Light_Conditions': 4,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 481670,\n",
- " 'Location_Northing_OSGR': 240100,\n",
- " 'Longitude': -0.810354,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 1,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 3,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 60,\n",
+ " '1st_Road_Number': 8002,\n",
" 'Time': '18:35',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': -1,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': -1,\n",
- " 'Driver_IMD_Decile': -1,\n",
- " 'Engine_Capacity_(CC)': -1,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 0,\n",
+ " 'Location_Northing_OSGR': 240100,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 1,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 481670,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 4,\n",
+ " 'Light_Conditions': 4,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': -1,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': -1,\n",
- " 'Sex_of_Driver': 3,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': -1,\n",
" 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': -1,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 3,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': -1,\n",
+ " 'Propulsion_Code': -1,\n",
+ " 'Age_of_Vehicle': -1,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b60b'),\n",
- " 'loc': {'coordinates': [-0.810354, 52.053237], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 155,\n",
- " '2nd_Road_Class': 5,\n",
- " '2nd_Road_Number': 8002,\n",
- " 'Accident_Index': '201243S025112',\n",
+ " 'Junction_Detail': 0,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016810',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.053237,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S022112',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
+ " '2nd_Road_Class': -1,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 4,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.810354,\n",
+ " 'Junction_Control': -1,\n",
+ " 'Speed_limit': 60,\n",
+ " 'Date': '07/11/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 11, 7, 18, 35),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.810354, 52.053237]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b617'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 2,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 4,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1}],\n",
- " 'Date': '07/11/2012',\n",
- " 'Datetime': datetime.datetime(2012, 11, 7, 23, 24),\n",
- " 'Day_of_Week': 4,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 1,\n",
- " 'LSOA_of_Accident_Location': 'E01016810',\n",
- " 'Latitude': 52.052534,\n",
- " 'Light_Conditions': 4,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 481560,\n",
- " 'Location_Northing_OSGR': 240020,\n",
- " 'Longitude': -0.811977,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 1,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 60,\n",
+ " '1st_Road_Number': 155,\n",
" 'Time': '23:24',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 3,\n",
- " 'Age_Band_of_Driver': 4,\n",
- " 'Age_of_Vehicle': 1,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 10,\n",
- " 'Engine_Capacity_(CC)': 125,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 8002,\n",
+ " 'Location_Northing_OSGR': 240020,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 1,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 481560,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 4,\n",
+ " 'Light_Conditions': 4,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 10,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 8,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 125,\n",
" 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 4,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 3,\n",
" 'Vehicle_Type': 2,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 1,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b617'),\n",
- " 'loc': {'coordinates': [-0.811977, 52.052534], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 155,\n",
- " '2nd_Road_Class': -1,\n",
- " '2nd_Road_Number': 0,\n",
- " 'Accident_Index': '201243S048112',\n",
- " 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 8,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Junction_Detail': 1,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016810',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.052534,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S025112',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
+ " '2nd_Road_Class': 5,\n",
+ " 'Accident_Severity': 3,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.811977,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 60,\n",
+ " 'Date': '07/11/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 11, 7, 23, 24),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.811977, 52.052534]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b688'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 2,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 19,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 2,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 8,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 4,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 4,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '12/11/2012',\n",
- " 'Datetime': datetime.datetime(2012, 11, 12, 13, 55),\n",
- " 'Day_of_Week': 2,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': -1,\n",
- " 'Junction_Detail': 0,\n",
- " 'LSOA_of_Accident_Location': 'E01016810',\n",
- " 'Latitude': 52.051605,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 481768,\n",
- " 'Location_Northing_OSGR': 239920,\n",
- " 'Longitude': -0.808968,\n",
- " 'Number_of_Casualties': 2,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 60,\n",
+ " '1st_Road_Number': 155,\n",
" 'Time': '13:55',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 8,\n",
- " 'Age_of_Vehicle': 2,\n",
- " 'Driver_Home_Area_Type': 2,\n",
- " 'Driver_IMD_Decile': 6,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 0,\n",
+ " 'Location_Northing_OSGR': 239920,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 481768,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 2,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 6,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 0,\n",
+ " 'Skidding_and_Overturning': 0,\n",
+ " 'Towing_and_Articulation': 0,\n",
+ " 'Vehicle_Location-Restricted_Lane': 0,\n",
" 'Engine_Capacity_(CC)': 2402,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 8,\n",
" 'Hit_Object_in_Carriageway': 4,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 19,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 1,\n",
- " 'Junction_Location': 0,\n",
+ " 'Driver_Home_Area_Type': 2,\n",
" 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 2,\n",
+ " 'Age_of_Vehicle': 2,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 8,\n",
+ " 'Vehicle_Leaving_Carriageway': 1,\n",
+ " 'Junction_Location': 0,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
- " 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 19,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': 4,\n",
- " 'Age_of_Vehicle': 9,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 8,\n",
" 'Engine_Capacity_(CC)': 993,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 4,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 0,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
- " 'Skidding_and_Overturning': 0,\n",
- " 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 1,\n",
- " 'Vehicle_Location-Restricted_Lane': 0,\n",
+ " 'Age_of_Vehicle': 9,\n",
" 'Vehicle_Manoeuvre': 2,\n",
- " 'Vehicle_Reference': 2,\n",
- " 'Vehicle_Type': 9,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 2,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b688'),\n",
- " 'loc': {'coordinates': [-0.808968, 52.051605], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 155,\n",
+ " 'Junction_Detail': 0,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016810',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.051605,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S048112',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
" '2nd_Road_Class': -1,\n",
- " '2nd_Road_Number': 0,\n",
- " 'Accident_Index': '201243S022012',\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 2,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 2,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.808968,\n",
+ " 'Junction_Control': -1,\n",
+ " 'Speed_limit': 60,\n",
+ " 'Date': '12/11/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 11, 12, 13, 55),\n",
+ " 'Number_of_Casualties': 2,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.808968, 52.051605]},\n",
+ " 'Weather_Conditions': 2},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b607'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 3,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 3,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 2,\n",
+ " 'Age_Band_of_Casualty': 2,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 1,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 2,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 4,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 4,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 2,\n",
+ " 'Age_Band_of_Casualty': 1,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 6,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 8,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2},\n",
- " {'Age_Band_of_Casualty': 5,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 2,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 8,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 2,\n",
+ " 'Age_Band_of_Casualty': 5,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '06/01/2012',\n",
- " 'Datetime': datetime.datetime(2012, 1, 6, 15, 15),\n",
- " 'Day_of_Week': 6,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': -1,\n",
- " 'Junction_Detail': 0,\n",
- " 'LSOA_of_Accident_Location': 'E01016839',\n",
- " 'Latitude': 52.053004,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 481420,\n",
- " 'Location_Northing_OSGR': 240070,\n",
- " 'Longitude': -0.814006,\n",
- " 'Number_of_Casualties': 4,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 60,\n",
+ " '1st_Road_Number': 155,\n",
" 'Time': '15:15',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': 1,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 2,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 0,\n",
+ " 'Location_Northing_OSGR': 240070,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 481420,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 6,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 2,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 0,\n",
+ " 'Skidding_and_Overturning': 0,\n",
+ " 'Towing_and_Articulation': 0,\n",
+ " 'Vehicle_Location-Restricted_Lane': 0,\n",
" 'Engine_Capacity_(CC)': 1686,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 7,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 0,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 2,\n",
+ " 'Age_of_Vehicle': 1,\n",
+ " 'Vehicle_Manoeuvre': 4,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 5,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 0,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 4,\n",
- " 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 5,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 5,\n",
" 'Engine_Capacity_(CC)': 2204,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 6,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
+ " 'Vehicle_Type': 8,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 1,\n",
- " 'Junction_Location': 0,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 1,\n",
- " 'Skidding_and_Overturning': 0,\n",
- " 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
- " 'Vehicle_Location-Restricted_Lane': 0,\n",
+ " 'Age_of_Vehicle': 5,\n",
" 'Vehicle_Manoeuvre': 4,\n",
- " 'Vehicle_Reference': 2,\n",
- " 'Vehicle_Type': 8,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b607'),\n",
- " 'loc': {'coordinates': [-0.814006, 52.053004], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 142,\n",
+ " 'Junction_Detail': 0,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016839',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.053004,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S022012',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
" '2nd_Road_Class': -1,\n",
- " '2nd_Road_Number': 0,\n",
- " 'Accident_Index': '201243S073012',\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 6,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.814006,\n",
+ " 'Junction_Control': -1,\n",
+ " 'Speed_limit': 60,\n",
+ " 'Date': '06/01/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 1, 6, 15, 15),\n",
+ " 'Number_of_Casualties': 4,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.814006, 52.053004]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b6f7'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 3,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 0,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 9,\n",
- " 'Pedestrian_Movement': 5,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 1}],\n",
- " 'Date': '19/01/2012',\n",
- " 'Datetime': datetime.datetime(2012, 1, 19, 8, 55),\n",
- " 'Day_of_Week': 5,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 2,\n",
- " 'Junction_Control': -1,\n",
- " 'Junction_Detail': 0,\n",
- " 'LSOA_of_Accident_Location': 'E01016839',\n",
- " 'Latitude': 52.050981,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 481120,\n",
- " 'Location_Northing_OSGR': 239840,\n",
- " 'Longitude': -0.818435,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 1,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 5,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 60,\n",
+ " '1st_Road_Number': 142,\n",
" 'Time': '08:55',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 4,\n",
- " 'Age_Band_of_Driver': -1,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': -1,\n",
- " 'Driver_IMD_Decile': -1,\n",
- " 'Engine_Capacity_(CC)': -1,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 0,\n",
+ " 'Location_Northing_OSGR': 239840,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 1,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 481120,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 5,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': -1,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': -1,\n",
- " 'Sex_of_Driver': 3,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': -1,\n",
" 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': -1,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 4,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 3,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': -1,\n",
+ " 'Propulsion_Code': -1,\n",
+ " 'Age_of_Vehicle': -1,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b6f7'),\n",
- " 'loc': {'coordinates': [-0.818435, 52.050981], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 142,\n",
+ " 'Junction_Detail': 0,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016839',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.050981,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 2,\n",
+ " 'Accident_Index': '201243S073012',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
" '2nd_Road_Class': -1,\n",
- " '2nd_Road_Number': 0,\n",
- " 'Accident_Index': '201243S086022',\n",
- " 'Accident_Severity': 2,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 7,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Accident_Severity': 3,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.818435,\n",
+ " 'Junction_Control': -1,\n",
+ " 'Speed_limit': 60,\n",
+ " 'Date': '19/01/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 1, 19, 8, 55),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.818435, 52.050981]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b736'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 7,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 3,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1},\n",
+ " {'Casualty_Severity': 2,\n",
" 'Casualty_Class': 3,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 2,\n",
" 'Casualty_Type': 0,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 4,\n",
- " 'Pedestrian_Movement': 4,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 3,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1}],\n",
- " 'Date': '15/02/2012',\n",
- " 'Datetime': datetime.datetime(2012, 2, 15, 20, 0),\n",
- " 'Day_of_Week': 4,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': -1,\n",
- " 'Junction_Detail': 0,\n",
- " 'LSOA_of_Accident_Location': 'E01016810',\n",
- " 'Latitude': 52.051149,\n",
- " 'Light_Conditions': 4,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 481200,\n",
- " 'Location_Northing_OSGR': 239860,\n",
- " 'Longitude': -0.817264,\n",
- " 'Number_of_Casualties': 2,\n",
- " 'Number_of_Vehicles': 1,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 7,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 4,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 60,\n",
+ " '1st_Road_Number': 142,\n",
" 'Time': '20:00',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': 6,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 1,\n",
- " 'Engine_Capacity_(CC)': 1497,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 2,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 0,\n",
+ " 'Location_Northing_OSGR': 239860,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 1,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 481200,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 4,\n",
+ " 'Light_Conditions': 4,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 1,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': 8,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1497,\n",
" 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 7,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 2,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 8,\n",
+ " 'Age_of_Vehicle': 6,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b736'),\n",
- " 'loc': {'coordinates': [-0.817264, 52.051149], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 142,\n",
+ " 'Junction_Detail': 0,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016810',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.051149,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S086022',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 7,\n",
+ " '1st_Road_Class': 5,\n",
" '2nd_Road_Class': -1,\n",
- " '2nd_Road_Number': 0,\n",
- " 'Accident_Index': '201243S061022',\n",
" 'Accident_Severity': 2,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 6,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.817264,\n",
+ " 'Junction_Control': -1,\n",
+ " 'Speed_limit': 60,\n",
+ " 'Date': '15/02/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 2, 15, 20, 0),\n",
+ " 'Number_of_Casualties': 2,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.817264, 52.051149]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b6bf'),\n",
+ " 'Casualties': [{'Casualty_Severity': 2,\n",
" 'Casualty_Class': 3,\n",
- " 'Casualty_Home_Area_Type': -1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 2,\n",
" 'Casualty_Type': 0,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': -1,\n",
" 'Pedestrian_Location': 5,\n",
- " 'Pedestrian_Movement': 2,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1}],\n",
- " 'Date': '19/02/2012',\n",
- " 'Datetime': datetime.datetime(2012, 2, 19, 0, 12),\n",
- " 'Day_of_Week': 1,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': -1,\n",
- " 'Junction_Detail': 0,\n",
- " 'LSOA_of_Accident_Location': 'E01016810',\n",
- " 'Latitude': 52.051147,\n",
- " 'Light_Conditions': 4,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 481210,\n",
- " 'Location_Northing_OSGR': 239860,\n",
- " 'Longitude': -0.817118,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 1,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 7,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 2,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 60,\n",
+ " '1st_Road_Number': 142,\n",
" 'Time': '00:12',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': -1,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': -1,\n",
- " 'Driver_IMD_Decile': -1,\n",
- " 'Engine_Capacity_(CC)': -1,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 0,\n",
+ " 'Location_Northing_OSGR': 239860,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 1,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 481210,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 1,\n",
+ " 'Light_Conditions': 4,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': -1,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': -1,\n",
- " 'Sex_of_Driver': 3,\n",
" 'Skidding_and_Overturning': 1,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': -1,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 8,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b6bf'),\n",
- " 'loc': {'coordinates': [-0.817118, 52.051147], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 155,\n",
- " '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1129,\n",
- " 'Accident_Index': '201243S071032',\n",
- " 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 8,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Driver': -1,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 8,\n",
+ " 'Sex_of_Driver': 3,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': -1,\n",
+ " 'Propulsion_Code': -1,\n",
+ " 'Age_of_Vehicle': -1,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
+ " 'Junction_Detail': 0,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016810',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.051147,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S061022',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 7,\n",
+ " '1st_Road_Class': 5,\n",
+ " '2nd_Road_Class': -1,\n",
+ " 'Accident_Severity': 2,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.817118,\n",
+ " 'Junction_Control': -1,\n",
+ " 'Speed_limit': 60,\n",
+ " 'Date': '19/02/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 2, 19, 0, 12),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.817118, 52.051147]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b6f1'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 8,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1}],\n",
- " 'Date': '16/03/2012',\n",
- " 'Datetime': datetime.datetime(2012, 3, 16, 10, 5),\n",
- " 'Day_of_Week': 6,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 3,\n",
- " 'LSOA_of_Accident_Location': 'E01016839',\n",
- " 'Latitude': 52.053652,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 481290,\n",
- " 'Location_Northing_OSGR': 240140,\n",
- " 'Longitude': -0.815885,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 1,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 60,\n",
+ " '1st_Road_Number': 155,\n",
" 'Time': '10:05',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 8,\n",
- " 'Age_of_Vehicle': 1,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 7,\n",
- " 'Engine_Capacity_(CC)': 1596,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 4,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 1129,\n",
+ " 'Location_Northing_OSGR': 240140,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 1,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 481290,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 6,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 7,\n",
+ " 'Vehicle_Leaving_Carriageway': 3,\n",
" 'Junction_Location': 1,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 3,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1596,\n",
" 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 8,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 4,\n",
+ " '1st_Point_of_Impact': 1,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 1,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b6f1'),\n",
- " 'loc': {'coordinates': [-0.815885, 52.053652], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 142,\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016839',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.053652,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S071032',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
" '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1129,\n",
- " 'Accident_Index': '201243S039112',\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 4,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.815885,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 60,\n",
+ " 'Date': '16/03/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 3, 16, 10, 5),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.815885, 52.053652]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b65e'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 5,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 4,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '09/11/2012',\n",
- " 'Datetime': datetime.datetime(2012, 11, 9, 17, 19),\n",
- " 'Day_of_Week': 6,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 3,\n",
- " 'LSOA_of_Accident_Location': 'E01016810',\n",
- " 'Latitude': 52.051318,\n",
- " 'Light_Conditions': 4,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 481270,\n",
- " 'Location_Northing_OSGR': 239880,\n",
- " 'Longitude': -0.816238,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 60,\n",
+ " '1st_Road_Number': 142,\n",
" 'Time': '17:19',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 3,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': 10,\n",
- " 'Driver_Home_Area_Type': -1,\n",
- " 'Driver_IMD_Decile': -1,\n",
- " 'Engine_Capacity_(CC)': 1596,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 1129,\n",
+ " 'Location_Northing_OSGR': 239880,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 481270,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 6,\n",
+ " 'Light_Conditions': 4,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': -1,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 8,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Engine_Capacity_(CC)': 1596,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 4,\n",
- " 'Age_of_Vehicle': 5,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 8,\n",
- " 'Engine_Capacity_(CC)': 599,\n",
+ " 'Age_Band_of_Driver': 7,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 3,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 1,\n",
+ " 'Driver_Home_Area_Type': -1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
+ " 'Age_of_Vehicle': 10,\n",
+ " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 8,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 13,\n",
+ " 'Engine_Capacity_(CC)': 599,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 4,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
" 'Vehicle_Type': 5,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 5,\n",
+ " 'Vehicle_Manoeuvre': 13,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b65e'),\n",
- " 'loc': {'coordinates': [-0.816238, 52.051318], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 155,\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016810',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.051318,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S039112',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
" '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1129,\n",
- " 'Accident_Index': '201243S032122',\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 5,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.816238,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 60,\n",
+ " 'Date': '09/11/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 11, 9, 17, 19),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.816238, 52.051318]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b639'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 3,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 5,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '10/12/2012',\n",
- " 'Datetime': datetime.datetime(2012, 12, 10, 16, 45),\n",
- " 'Day_of_Week': 2,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 3,\n",
- " 'LSOA_of_Accident_Location': 'E01016839',\n",
- " 'Latitude': 52.05342,\n",
- " 'Light_Conditions': 6,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 481340,\n",
- " 'Location_Northing_OSGR': 240115,\n",
- " 'Longitude': -0.815162,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 60,\n",
+ " '1st_Road_Number': 155,\n",
" 'Time': '16:45',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 0,\n",
- " 'Age_Band_of_Driver': -1,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': -1,\n",
- " 'Driver_IMD_Decile': -1,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 1129,\n",
+ " 'Location_Northing_OSGR': 240115,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 481340,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 2,\n",
+ " 'Light_Conditions': 6,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': -1,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 6,\n",
+ " 'Skidding_and_Overturning': 0,\n",
+ " 'Towing_and_Articulation': 0,\n",
+ " 'Vehicle_Location-Restricted_Lane': 0,\n",
" 'Engine_Capacity_(CC)': -1,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': -1,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 0,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 3,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 6,\n",
+ " 'Driver_Home_Area_Type': -1,\n",
" 'Propulsion_Code': -1,\n",
- " 'Sex_of_Driver': 3,\n",
+ " 'Age_of_Vehicle': -1,\n",
+ " 'Vehicle_Manoeuvre': 7,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 2,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 7,\n",
- " 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 0,\n",
- " 'Age_Band_of_Driver': 5,\n",
- " 'Age_of_Vehicle': 4,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 2,\n",
" 'Engine_Capacity_(CC)': 124,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 5,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 0,\n",
+ " 'Vehicle_Type': 3,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 2,\n",
- " 'Junction_Location': 1,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
- " 'Skidding_and_Overturning': 0,\n",
- " 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
- " 'Vehicle_Location-Restricted_Lane': 0,\n",
+ " 'Age_of_Vehicle': 4,\n",
" 'Vehicle_Manoeuvre': 18,\n",
- " 'Vehicle_Reference': 2,\n",
- " 'Vehicle_Type': 3,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b639'),\n",
- " 'loc': {'coordinates': [-0.815162, 52.05342], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 155,\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016839',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.05342,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S032122',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
" '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1129,\n",
- " 'Accident_Index': '201243S158122',\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 6,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.815162,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 60,\n",
+ " 'Date': '10/12/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 12, 10, 16, 45),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.815162, 52.05342]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b852'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 1}],\n",
- " 'Date': '24/12/2012',\n",
- " 'Datetime': datetime.datetime(2012, 12, 24, 9, 58),\n",
- " 'Day_of_Week': 2,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 3,\n",
- " 'LSOA_of_Accident_Location': 'E01016839',\n",
- " 'Latitude': 52.053448,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 481333,\n",
- " 'Location_Northing_OSGR': 240118,\n",
- " 'Longitude': -0.815263,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 60,\n",
+ " '1st_Road_Number': 155,\n",
" 'Time': '09:58',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 11,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 9,\n",
- " 'Engine_Capacity_(CC)': 1679,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 5,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 1129,\n",
+ " 'Location_Northing_OSGR': 240118,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 481333,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 2,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 1,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 1,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1679,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
" 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 7,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 2,\n",
- " 'Engine_Capacity_(CC)': 1560,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 5,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 11,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 2,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 1,\n",
- " 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 3,\n",
+ " 'Engine_Capacity_(CC)': 1560,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 6,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 5,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': 7,\n",
+ " 'Vehicle_Manoeuvre': 3,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 2,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b852'),\n",
- " 'loc': {'coordinates': [-0.815263, 52.053448], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 6,\n",
- " '1st_Road_Number': 1129,\n",
- " '2nd_Road_Class': -1,\n",
- " '2nd_Road_Number': 0,\n",
- " 'Accident_Index': '201243S012022',\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016839',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.053448,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S158122',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
+ " '2nd_Road_Class': 6,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 1,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.815263,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 60,\n",
+ " 'Date': '24/12/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 12, 24, 9, 58),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.815263, 52.053448]},\n",
+ " 'Weather_Conditions': 2},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b5e0'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 3,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 0,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 5,\n",
- " 'Pedestrian_Movement': 1,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 1,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 1}],\n",
- " 'Date': '02/02/2012',\n",
- " 'Datetime': datetime.datetime(2012, 2, 2, 16, 15),\n",
- " 'Day_of_Week': 5,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': -1,\n",
- " 'Junction_Detail': 0,\n",
- " 'LSOA_of_Accident_Location': 'E01016838',\n",
- " 'Latitude': 52.056225,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 481520,\n",
- " 'Location_Northing_OSGR': 240430,\n",
- " 'Longitude': -0.812462,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 1,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 1,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 30,\n",
+ " '1st_Road_Number': 1129,\n",
" 'Time': '16:15',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': 9,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 6,\n",
- " 'Engine_Capacity_(CC)': 1198,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 3,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 0,\n",
+ " 'Location_Northing_OSGR': 240430,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 1,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 481520,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 5,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 6,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1198,\n",
" 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 7,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 3,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 9,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b5e0'),\n",
- " 'loc': {'coordinates': [-0.812462, 52.056225], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 6,\n",
- " '1st_Road_Number': 1129,\n",
- " '2nd_Road_Class': -1,\n",
- " '2nd_Road_Number': 0,\n",
- " 'Accident_Index': '201243S126052',\n",
- " 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 4,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
- " 'Casualty_Class': 3,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
- " 'Casualty_Type': 0,\n",
- " 'Pedestrian_Location': 5,\n",
- " 'Pedestrian_Movement': 2,\n",
- " 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1}],\n",
- " 'Date': '12/05/2012',\n",
- " 'Datetime': datetime.datetime(2012, 5, 12, 12, 45),\n",
- " 'Day_of_Week': 7,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': -1,\n",
" 'Junction_Detail': 0,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
" 'LSOA_of_Accident_Location': 'E01016838',\n",
- " 'Latitude': 52.056679,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 481490,\n",
- " 'Location_Northing_OSGR': 240480,\n",
- " 'Longitude': -0.812888,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 1,\n",
" 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.056225,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S012022',\n",
" 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
- " 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 6,\n",
+ " '1st_Road_Class': 6,\n",
+ " '2nd_Road_Class': -1,\n",
+ " 'Accident_Severity': 3,\n",
" 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.812462,\n",
+ " 'Junction_Control': -1,\n",
" 'Speed_limit': 30,\n",
+ " 'Date': '02/02/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 2, 2, 16, 15),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.812462, 52.056225]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b80a'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
+ " 'Casualty_Class': 3,\n",
+ " 'Casualty_Type': 0,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
+ " 'Pedestrian_Location': 5,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 4,\n",
+ " 'Pedestrian_Road_Maintenance_Worker': 0,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 2,\n",
+ " 'Sex_of_Casualty': 1}],\n",
+ " 'Road_Surface_Conditions': 1,\n",
+ " '1st_Road_Number': 1129,\n",
" 'Time': '12:45',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 8,\n",
- " 'Age_of_Vehicle': 8,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 5,\n",
- " 'Engine_Capacity_(CC)': 1997,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 1,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 0,\n",
+ " 'Location_Northing_OSGR': 240480,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 1,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 481490,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 7,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 5,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1997,\n",
" 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 8,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 1,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': 8,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b80a'),\n",
- " 'loc': {'coordinates': [-0.812888, 52.056679], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 8002,\n",
- " '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1132,\n",
- " 'Accident_Index': '201243S051012',\n",
+ " 'Junction_Detail': 0,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016838',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.056679,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S126052',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 6,\n",
+ " '2nd_Road_Class': -1,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 3,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 2,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.812888,\n",
+ " 'Junction_Control': -1,\n",
+ " 'Speed_limit': 30,\n",
+ " 'Date': '12/05/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 5, 12, 12, 45),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.812888, 52.056679]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b68f'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 2,\n",
+ " 'Age_Band_of_Casualty': 3,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '13/01/2012',\n",
- " 'Datetime': datetime.datetime(2012, 1, 13, 17, 20),\n",
- " 'Day_of_Week': 6,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 3,\n",
- " 'LSOA_of_Accident_Location': 'E01016838',\n",
- " 'Latitude': 52.055142,\n",
- " 'Light_Conditions': 4,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 482160,\n",
- " 'Location_Northing_OSGR': 240320,\n",
- " 'Longitude': -0.803157,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 60,\n",
+ " '1st_Road_Number': 8002,\n",
" 'Time': '17:20',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 5,\n",
- " 'Age_of_Vehicle': 12,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 6,\n",
- " 'Engine_Capacity_(CC)': 1390,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 1132,\n",
+ " 'Location_Northing_OSGR': 240320,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 482160,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 6,\n",
+ " 'Light_Conditions': 4,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 6,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 1,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 3,\n",
+ " 'Engine_Capacity_(CC)': 1390,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': 10,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 5,\n",
- " 'Engine_Capacity_(CC)': 1598,\n",
+ " 'Age_Band_of_Driver': 5,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 1,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
+ " 'Age_of_Vehicle': 12,\n",
+ " 'Vehicle_Manoeuvre': 3,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 5,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 3,\n",
+ " 'Engine_Capacity_(CC)': 1598,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 7,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 10,\n",
+ " 'Vehicle_Manoeuvre': 3,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b68f'),\n",
- " 'loc': {'coordinates': [-0.803157, 52.055142], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 6,\n",
- " '1st_Road_Number': 1132,\n",
- " '2nd_Road_Class': -1,\n",
- " '2nd_Road_Number': 0,\n",
- " 'Accident_Index': '201243S067062',\n",
- " 'Accident_Severity': 2,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 6,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016838',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.055142,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S051012',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
+ " '2nd_Road_Class': 6,\n",
+ " 'Accident_Severity': 3,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.803157,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 60,\n",
+ " 'Date': '13/01/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 1, 13, 17, 20),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.803157, 52.055142]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b6da'),\n",
+ " 'Casualties': [{'Casualty_Severity': 2,\n",
" 'Casualty_Class': 3,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 2,\n",
" 'Casualty_Type': 0,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 6,\n",
- " 'Pedestrian_Movement': 9,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1}],\n",
- " 'Date': '08/06/2012',\n",
- " 'Datetime': datetime.datetime(2012, 6, 8, 22, 50),\n",
- " 'Day_of_Week': 6,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': -1,\n",
- " 'Junction_Detail': 0,\n",
- " 'LSOA_of_Accident_Location': 'E01016819',\n",
- " 'Latitude': 52.052749,\n",
- " 'Light_Conditions': 4,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 481930,\n",
- " 'Location_Northing_OSGR': 240050,\n",
- " 'Longitude': -0.806575,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 1,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 9,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 30,\n",
+ " '1st_Road_Number': 1132,\n",
" 'Time': '22:50',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': -1,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': -1,\n",
- " 'Driver_IMD_Decile': -1,\n",
- " 'Engine_Capacity_(CC)': -1,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 0,\n",
+ " 'Location_Northing_OSGR': 240050,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 1,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 481930,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 6,\n",
+ " 'Light_Conditions': 4,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': -1,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': -1,\n",
- " 'Sex_of_Driver': 3,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 9,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': -1,\n",
" 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': -1,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 3,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': -1,\n",
+ " 'Propulsion_Code': -1,\n",
+ " 'Age_of_Vehicle': -1,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 4,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b6da'),\n",
- " 'loc': {'coordinates': [-0.806575, 52.052749], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 8002,\n",
- " '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1129,\n",
- " 'Accident_Index': '201243S081092',\n",
- " 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 11,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Junction_Detail': 0,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016819',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.052749,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S067062',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 6,\n",
+ " '2nd_Road_Class': -1,\n",
+ " 'Accident_Severity': 2,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.806575,\n",
+ " 'Junction_Control': -1,\n",
+ " 'Speed_limit': 30,\n",
+ " 'Date': '08/06/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 6, 8, 22, 50),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.806575, 52.052749]},\n",
+ " 'Weather_Conditions': 4},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b724'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 11,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 11,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 1,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 1,\n",
+ " 'Age_Band_of_Casualty': 11,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 8,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 3,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 3,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 8,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '20/09/2012',\n",
- " 'Datetime': datetime.datetime(2012, 9, 20, 14, 5),\n",
- " 'Day_of_Week': 5,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 3,\n",
- " 'LSOA_of_Accident_Location': 'E01016838',\n",
- " 'Latitude': 52.055142,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 482160,\n",
- " 'Location_Northing_OSGR': 240320,\n",
- " 'Longitude': -0.803157,\n",
- " 'Number_of_Casualties': 3,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 60,\n",
+ " '1st_Road_Number': 8002,\n",
" 'Time': '14:05',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 4,\n",
- " 'Age_Band_of_Driver': 11,\n",
- " 'Age_of_Vehicle': 4,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 9,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 1129,\n",
+ " 'Location_Northing_OSGR': 240320,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 482160,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 5,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 8,\n",
+ " 'Skidding_and_Overturning': 0,\n",
+ " 'Towing_and_Articulation': 0,\n",
+ " 'Vehicle_Location-Restricted_Lane': 0,\n",
" 'Engine_Capacity_(CC)': 1086,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 11,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 4,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 8,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
+ " 'Age_of_Vehicle': 4,\n",
+ " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 3,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 9,\n",
- " 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 8,\n",
- " 'Age_of_Vehicle': 4,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 3,\n",
" 'Engine_Capacity_(CC)': 1364,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 8,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 2,\n",
- " 'Junction_Location': 1,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
- " 'Skidding_and_Overturning': 0,\n",
- " 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
- " 'Vehicle_Location-Restricted_Lane': 0,\n",
+ " 'Age_of_Vehicle': 4,\n",
" 'Vehicle_Manoeuvre': 18,\n",
- " 'Vehicle_Reference': 2,\n",
- " 'Vehicle_Type': 9,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b724'),\n",
- " 'loc': {'coordinates': [-0.803157, 52.055142], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 9006,\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016838',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.055142,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S081092',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
" '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1132,\n",
- " 'Accident_Index': '201243S100032',\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 7,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.803157,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 60,\n",
+ " 'Date': '20/09/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 9, 20, 14, 5),\n",
+ " 'Number_of_Casualties': 3,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.803157, 52.055142]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b781'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 3,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 3,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 7,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 7,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 7,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '22/03/2012',\n",
- " 'Datetime': datetime.datetime(2012, 3, 22, 8, 30),\n",
- " 'Day_of_Week': 5,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 3,\n",
- " 'LSOA_of_Accident_Location': 'E01016805',\n",
- " 'Latitude': 52.059682,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 483060,\n",
- " 'Location_Northing_OSGR': 240840,\n",
- " 'Longitude': -0.789907,\n",
- " 'Number_of_Casualties': 2,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 60,\n",
+ " '1st_Road_Number': 9006,\n",
" 'Time': '08:30',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': 11,\n",
- " 'Driver_Home_Area_Type': 3,\n",
- " 'Driver_IMD_Decile': 9,\n",
- " 'Engine_Capacity_(CC)': 1781,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 1,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 1132,\n",
+ " 'Location_Northing_OSGR': 240840,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 483060,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 5,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 1,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1781,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 1,\n",
" 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': 12,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 3,\n",
- " 'Engine_Capacity_(CC)': 2171,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 3,\n",
- " 'Junction_Location': 8,\n",
- " 'Propulsion_Code': 2,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
" 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 1,\n",
+ " 'Driver_Home_Area_Type': 3,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 11,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 3,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 8,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Engine_Capacity_(CC)': 2171,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 7,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 3,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': 12,\n",
+ " 'Vehicle_Manoeuvre': 9,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b781'),\n",
- " 'loc': {'coordinates': [-0.789907, 52.059682], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 9,\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
+ " 'LSOA_of_Accident_Location': 'E01016805',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.059682,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S100032',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
" '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1132,\n",
- " 'Accident_Index': '201243S089042',\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 4,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.789907,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 60,\n",
+ " 'Date': '22/03/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 3, 22, 8, 30),\n",
+ " 'Number_of_Casualties': 2,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.789907, 52.059682]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b749'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 2,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 4,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '25/04/2012',\n",
- " 'Datetime': datetime.datetime(2012, 4, 25, 15, 15),\n",
- " 'Day_of_Week': 4,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 2,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 3,\n",
- " 'LSOA_of_Accident_Location': 'E01016808',\n",
- " 'Latitude': 52.058827,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 483370,\n",
- " 'Location_Northing_OSGR': 240750,\n",
- " 'Longitude': -0.785409,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 30,\n",
+ " '1st_Road_Number': 9,\n",
" 'Time': '15:15',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': -1,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': -1,\n",
- " 'Driver_IMD_Decile': -1,\n",
- " 'Engine_Capacity_(CC)': -1,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 1132,\n",
+ " 'Location_Northing_OSGR': 240750,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 483370,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 4,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': -1,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 5,\n",
- " 'Propulsion_Code': -1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Engine_Capacity_(CC)': -1,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 4,\n",
- " 'Age_of_Vehicle': 3,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 5,\n",
- " 'Engine_Capacity_(CC)': 49,\n",
+ " 'Age_Band_of_Driver': -1,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': -1,\n",
+ " 'Propulsion_Code': -1,\n",
+ " 'Age_of_Vehicle': -1,\n",
+ " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 5,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 2,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 2,\n",
+ " 'Engine_Capacity_(CC)': 49,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 4,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
" 'Vehicle_Type': 2,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 3,\n",
+ " 'Vehicle_Manoeuvre': 2,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 2,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b749'),\n",
- " 'loc': {'coordinates': [-0.785409, 52.058827], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 157,\n",
- " '2nd_Road_Class': -1,\n",
- " '2nd_Road_Number': 0,\n",
- " 'Accident_Index': '201243S023012',\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016808',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.058827,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 2,\n",
+ " 'Accident_Index': '201243S089042',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
+ " '2nd_Road_Class': 6,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 5,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.785409,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 30,\n",
+ " 'Date': '25/04/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 4, 25, 15, 15),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.785409, 52.058827]},\n",
+ " 'Weather_Conditions': 2},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b60c'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 5,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '05/01/2012',\n",
- " 'Datetime': datetime.datetime(2012, 1, 5, 15, 42),\n",
- " 'Day_of_Week': 5,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': -1,\n",
- " 'Junction_Detail': 0,\n",
- " 'LSOA_of_Accident_Location': 'E01016808',\n",
- " 'Latitude': 52.054157,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 483340,\n",
- " 'Location_Northing_OSGR': 240230,\n",
- " 'Longitude': -0.785973,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 60,\n",
+ " '1st_Road_Number': 157,\n",
" 'Time': '15:42',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 8,\n",
- " 'Age_of_Vehicle': 6,\n",
- " 'Driver_Home_Area_Type': 3,\n",
- " 'Driver_IMD_Decile': 9,\n",
- " 'Engine_Capacity_(CC)': 2457,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 1,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 0,\n",
+ " 'Location_Northing_OSGR': 240230,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 483340,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 5,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 4,\n",
+ " 'Engine_Capacity_(CC)': 2457,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': 5,\n",
- " 'Age_of_Vehicle': 7,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 5,\n",
- " 'Engine_Capacity_(CC)': 2204,\n",
+ " 'Age_Band_of_Driver': 8,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 1,\n",
+ " 'Driver_Home_Area_Type': 3,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 6,\n",
+ " 'Vehicle_Manoeuvre': 4,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 5,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 3,\n",
+ " 'Engine_Capacity_(CC)': 2204,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 5,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 1,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': 7,\n",
+ " 'Vehicle_Manoeuvre': 3,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b60c'),\n",
- " 'loc': {'coordinates': [-0.785973, 52.054157], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 3,\n",
- " '1st_Road_Number': 422,\n",
- " '2nd_Road_Class': 5,\n",
- " '2nd_Road_Number': 156,\n",
- " 'Accident_Index': '201243S037092',\n",
- " 'Accident_Severity': 2,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 8,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Junction_Detail': 0,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016808',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.054157,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S023012',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
+ " '2nd_Road_Class': -1,\n",
+ " 'Accident_Severity': 3,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.785973,\n",
+ " 'Junction_Control': -1,\n",
+ " 'Speed_limit': 60,\n",
+ " 'Date': '05/01/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 1, 5, 15, 42),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.785973, 52.054157]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b654'),\n",
+ " 'Casualties': [{'Casualty_Severity': 2,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 2,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 2,\n",
" 'Casualty_Type': 5,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 2,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 8,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1}],\n",
- " 'Date': '09/09/2012',\n",
- " 'Datetime': datetime.datetime(2012, 9, 9, 14, 45),\n",
- " 'Day_of_Week': 1,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 1,\n",
- " 'LSOA_of_Accident_Location': 'E01016719',\n",
- " 'Latitude': 52.053521,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 483390,\n",
- " 'Location_Northing_OSGR': 240160,\n",
- " 'Longitude': -0.785261,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 1,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 3,\n",
- " 'Special_Conditions_at_Site': 6,\n",
- " 'Speed_limit': 70,\n",
+ " '1st_Road_Number': 422,\n",
" 'Time': '14:45',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 3,\n",
- " 'Age_Band_of_Driver': 8,\n",
- " 'Age_of_Vehicle': 12,\n",
- " 'Driver_Home_Area_Type': 2,\n",
- " 'Driver_IMD_Decile': 9,\n",
- " 'Engine_Capacity_(CC)': 781,\n",
- " 'Hit_Object_in_Carriageway': 10,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': 156,\n",
+ " 'Location_Northing_OSGR': 240160,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 1,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 483390,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 1,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 8,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 1,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 781,\n",
" 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 8,\n",
+ " 'Hit_Object_in_Carriageway': 10,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 3,\n",
" 'Vehicle_Type': 5,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 2,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 12,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b654'),\n",
- " 'loc': {'coordinates': [-0.785261, 52.053521], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 3,\n",
- " '1st_Road_Number': 422,\n",
- " '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1132,\n",
- " 'Accident_Index': '201243S026112',\n",
- " 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 10,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Junction_Detail': 1,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016719',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.053521,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S037092',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 3,\n",
+ " '2nd_Road_Class': 5,\n",
+ " 'Accident_Severity': 2,\n",
+ " 'Special_Conditions_at_Site': 6,\n",
+ " 'Longitude': -0.785261,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 70,\n",
+ " 'Date': '09/09/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 9, 9, 14, 45),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.785261, 52.053521]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b61a'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 10,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 9,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 3,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 3,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 9,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '07/11/2012',\n",
- " 'Datetime': datetime.datetime(2012, 11, 7, 10, 20),\n",
- " 'Day_of_Week': 4,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 3,\n",
- " 'LSOA_of_Accident_Location': 'E01016805',\n",
- " 'Latitude': 52.051527,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 482900,\n",
- " 'Location_Northing_OSGR': 239930,\n",
- " 'Longitude': -0.792461,\n",
- " 'Number_of_Casualties': 2,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 3,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 70,\n",
+ " '1st_Road_Number': 422,\n",
" 'Time': '10:20',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 3,\n",
- " 'Age_Band_of_Driver': 10,\n",
- " 'Age_of_Vehicle': 3,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 10,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': 1132,\n",
+ " 'Location_Northing_OSGR': 239930,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 482900,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 4,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 10,\n",
+ " 'Vehicle_Leaving_Carriageway': 4,\n",
+ " 'Junction_Location': 8,\n",
+ " 'Skidding_and_Overturning': 1,\n",
+ " 'Towing_and_Articulation': 0,\n",
+ " 'Vehicle_Location-Restricted_Lane': 0,\n",
" 'Engine_Capacity_(CC)': 1560,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 10,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 3,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 1,\n",
- " 'Junction_Location': 8,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 1,\n",
+ " 'Age_of_Vehicle': 3,\n",
+ " 'Vehicle_Manoeuvre': 6,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 1,\n",
" 'Skidding_and_Overturning': 1,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 4,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 6,\n",
- " 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 9,\n",
- " 'Age_of_Vehicle': 2,\n",
- " 'Driver_Home_Area_Type': 3,\n",
- " 'Driver_IMD_Decile': 9,\n",
" 'Engine_Capacity_(CC)': 2184,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 9,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 1,\n",
+ " 'Driver_Home_Area_Type': 3,\n",
" 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 2,\n",
- " 'Skidding_and_Overturning': 1,\n",
- " 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
- " 'Vehicle_Location-Restricted_Lane': 0,\n",
+ " 'Age_of_Vehicle': 2,\n",
" 'Vehicle_Manoeuvre': 18,\n",
- " 'Vehicle_Reference': 2,\n",
- " 'Vehicle_Type': 9,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b61a'),\n",
- " 'loc': {'coordinates': [-0.792461, 52.051527], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 3,\n",
- " '1st_Road_Number': 5,\n",
- " '2nd_Road_Class': -1,\n",
- " '2nd_Road_Number': 0,\n",
- " 'Accident_Index': '201243S131012',\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016805',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.051527,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S026112',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 3,\n",
+ " '2nd_Road_Class': 6,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 8,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.792461,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 70,\n",
+ " 'Date': '07/11/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 11, 7, 10, 20),\n",
+ " 'Number_of_Casualties': 2,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.792461, 52.051527]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b81a'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 3,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 19,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 3,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 8,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2},\n",
- " {'Age_Band_of_Casualty': 6,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 19,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2},\n",
- " {'Age_Band_of_Casualty': 6,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 3,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 3,\n",
+ " 'Casualty_Reference': 3,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 3},\n",
- " {'Age_Band_of_Casualty': 6,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 1,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 4,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 3,\n",
+ " 'Casualty_Reference': 4,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 1,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 3}],\n",
- " 'Date': '24/01/2012',\n",
- " 'Datetime': datetime.datetime(2012, 1, 24, 17, 20),\n",
- " 'Day_of_Week': 3,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': -1,\n",
- " 'Junction_Detail': 0,\n",
- " 'LSOA_of_Accident_Location': 'E01016813',\n",
- " 'Latitude': 52.044632,\n",
- " 'Light_Conditions': 6,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 482720,\n",
- " 'Location_Northing_OSGR': 239160,\n",
- " 'Longitude': -0.795272,\n",
- " 'Number_of_Casualties': 4,\n",
- " 'Number_of_Vehicles': 4,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 3,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 70,\n",
+ " '1st_Road_Number': 5,\n",
" 'Time': '17:20',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 0,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': 14,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 1,\n",
- " 'Engine_Capacity_(CC)': 1149,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 2,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': 0,\n",
+ " 'Location_Northing_OSGR': 239160,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 4,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 482720,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 3,\n",
+ " 'Light_Conditions': 6,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 1,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 1,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1149,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': 8,\n",
- " 'Age_of_Vehicle': 5,\n",
- " 'Driver_Home_Area_Type': 3,\n",
- " 'Driver_IMD_Decile': 9,\n",
- " 'Engine_Capacity_(CC)': 2148,\n",
+ " 'Age_Band_of_Driver': 7,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 0,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 2,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 14,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 2148,\n",
" 'Vehicle_Reference': 2,\n",
- " 'Vehicle_Type': 19,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 10,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 5,\n",
- " 'Engine_Capacity_(CC)': 1149,\n",
+ " 'Age_Band_of_Driver': 8,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 0,\n",
- " 'Propulsion_Code': 1,\n",
+ " '1st_Point_of_Impact': 2,\n",
+ " 'Vehicle_Type': 19,\n",
" 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 2,\n",
+ " 'Driver_Home_Area_Type': 3,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': 5,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 5,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 0,\n",
" 'Skidding_and_Overturning': 1,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1149,\n",
" 'Vehicle_Reference': 3,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 0,\n",
" 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 13,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 6,\n",
- " 'Engine_Capacity_(CC)': 1199,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 2,\n",
- " 'Junction_Location': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
+ " 'Age_of_Vehicle': 10,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 6,\n",
+ " 'Vehicle_Leaving_Carriageway': 1,\n",
+ " 'Junction_Location': 0,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 1,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1199,\n",
" 'Vehicle_Reference': 4,\n",
+ " 'Age_Band_of_Driver': 6,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 0,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 2,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 13,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b81a'),\n",
- " 'loc': {'coordinates': [-0.795272, 52.044632], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 3,\n",
- " '1st_Road_Number': 5,\n",
- " '2nd_Road_Class': 3,\n",
- " '2nd_Road_Number': 5,\n",
- " 'Accident_Index': '201243S089092',\n",
+ " 'Junction_Detail': 0,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016813',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.044632,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S131012',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 3,\n",
+ " '2nd_Road_Class': -1,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 5,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.795272,\n",
+ " 'Junction_Control': -1,\n",
+ " 'Speed_limit': 70,\n",
+ " 'Date': '24/01/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 1, 24, 17, 20),\n",
+ " 'Number_of_Casualties': 4,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.795272, 52.044632]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b74c'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 3,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 3,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 5,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 1}],\n",
- " 'Date': '21/09/2012',\n",
- " 'Datetime': datetime.datetime(2012, 9, 21, 16, 30),\n",
- " 'Day_of_Week': 6,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 5,\n",
- " 'LSOA_of_Accident_Location': 'E01016774',\n",
- " 'Latitude': 52.040866,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 483260,\n",
- " 'Location_Northing_OSGR': 238750,\n",
- " 'Longitude': -0.787499,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 3,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 70,\n",
+ " '1st_Road_Number': 5,\n",
" 'Time': '16:30',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 5,\n",
- " 'Age_of_Vehicle': 6,\n",
- " 'Driver_Home_Area_Type': 3,\n",
- " 'Driver_IMD_Decile': 9,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': 5,\n",
+ " 'Location_Northing_OSGR': 238750,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 483260,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 6,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 5,\n",
+ " 'Junction_Location': 6,\n",
+ " 'Skidding_and_Overturning': 0,\n",
+ " 'Towing_and_Articulation': 0,\n",
+ " 'Vehicle_Location-Restricted_Lane': 0,\n",
" 'Engine_Capacity_(CC)': 1598,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 5,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 6,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 2,\n",
- " 'Junction_Location': 6,\n",
+ " 'Driver_Home_Area_Type': 3,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
+ " 'Age_of_Vehicle': 6,\n",
+ " 'Vehicle_Manoeuvre': 12,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 10,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 5,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 12,\n",
- " 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 0,\n",
- " 'Age_Band_of_Driver': 9,\n",
- " 'Age_of_Vehicle': 3,\n",
- " 'Driver_Home_Area_Type': 2,\n",
- " 'Driver_IMD_Decile': 10,\n",
" 'Engine_Capacity_(CC)': 2499,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 9,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 0,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 1,\n",
+ " 'Driver_Home_Area_Type': 2,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
- " 'Skidding_and_Overturning': 0,\n",
- " 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
- " 'Vehicle_Location-Restricted_Lane': 0,\n",
+ " 'Age_of_Vehicle': 3,\n",
" 'Vehicle_Manoeuvre': 18,\n",
- " 'Vehicle_Reference': 2,\n",
- " 'Vehicle_Type': 9,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b74c'),\n",
- " 'loc': {'coordinates': [-0.787499, 52.040866], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 144,\n",
- " '2nd_Road_Class': 5,\n",
- " '2nd_Road_Number': 156,\n",
- " 'Accident_Index': '201243S020012',\n",
+ " 'Junction_Detail': 5,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
+ " 'LSOA_of_Accident_Location': 'E01016774',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.040866,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S089092',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 3,\n",
+ " '2nd_Road_Class': 3,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 7,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.787499,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 70,\n",
+ " 'Date': '21/09/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 9, 21, 16, 30),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.787499, 52.040866]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b5fe'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 1,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 7,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '05/01/2012',\n",
- " 'Datetime': datetime.datetime(2012, 1, 5, 17, 30),\n",
- " 'Day_of_Week': 5,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 1,\n",
- " 'LSOA_of_Accident_Location': 'E01016722',\n",
- " 'Latitude': 52.046175,\n",
- " 'Light_Conditions': 4,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 483820,\n",
- " 'Location_Northing_OSGR': 239350,\n",
- " 'Longitude': -0.77919,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 1,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 60,\n",
+ " '1st_Road_Number': 144,\n",
" 'Time': '17:30',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 10,\n",
- " 'Age_of_Vehicle': 9,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 2,\n",
- " 'Engine_Capacity_(CC)': 1997,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 1,\n",
+ " 'Road_Type': 1,\n",
+ " '2nd_Road_Number': 156,\n",
+ " 'Location_Northing_OSGR': 239350,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 483820,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 5,\n",
+ " 'Light_Conditions': 4,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 2,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 4,\n",
- " 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1997,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 4,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 9,\n",
- " 'Engine_Capacity_(CC)': -1,\n",
+ " 'Age_Band_of_Driver': 10,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 1,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': 9,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 8,\n",
- " 'Propulsion_Code': -1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': -1,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 7,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 4,\n",
" 'Vehicle_Type': 1,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 1,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': -1,\n",
+ " 'Age_of_Vehicle': -1,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b5fe'),\n",
- " 'loc': {'coordinates': [-0.77919, 52.046175], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 156,\n",
- " '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1132,\n",
- " 'Accident_Index': '201243S098032',\n",
- " 'Accident_Severity': 2,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 6,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Junction_Detail': 1,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016722',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.046175,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S020012',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
+ " '2nd_Road_Class': 5,\n",
+ " 'Accident_Severity': 3,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.77919,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 60,\n",
+ " 'Date': '05/01/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 1, 5, 17, 30),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.77919, 52.046175]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b77b'),\n",
+ " 'Casualties': [{'Casualty_Severity': 2,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 2,\n",
" 'Casualty_Type': 4,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '24/03/2012',\n",
- " 'Datetime': datetime.datetime(2012, 3, 24, 7, 0),\n",
- " 'Day_of_Week': 7,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 2,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 3,\n",
- " 'LSOA_of_Accident_Location': 'E01016722',\n",
- " 'Latitude': 52.048614,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 483740,\n",
- " 'Location_Northing_OSGR': 239620,\n",
- " 'Longitude': -0.78029,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 3,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 70,\n",
+ " '1st_Road_Number': 156,\n",
" 'Time': '07:00',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 0,\n",
- " 'Age_Band_of_Driver': -1,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': -1,\n",
- " 'Driver_IMD_Decile': -1,\n",
- " 'Engine_Capacity_(CC)': -1,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': 1132,\n",
+ " 'Location_Northing_OSGR': 239620,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 483740,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 7,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': -1,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 6,\n",
- " 'Propulsion_Code': -1,\n",
- " 'Sex_of_Driver': 3,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 7,\n",
+ " 'Engine_Capacity_(CC)': -1,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 0,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 6,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 8,\n",
- " 'Engine_Capacity_(CC)': 599,\n",
+ " 'Age_Band_of_Driver': -1,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 1,\n",
+ " '1st_Point_of_Impact': 0,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 3,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': -1,\n",
+ " 'Propulsion_Code': -1,\n",
+ " 'Age_of_Vehicle': -1,\n",
+ " 'Vehicle_Manoeuvre': 7,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 8,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 1,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 1,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 599,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 6,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 0,\n",
" 'Vehicle_Type': 4,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 1,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 6,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 7,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b77b'),\n",
- " 'loc': {'coordinates': [-0.78029, 52.048614], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 144,\n",
- " '2nd_Road_Class': 5,\n",
- " '2nd_Road_Number': 156,\n",
- " 'Accident_Index': '201243S097062',\n",
- " 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 5,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
- " 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
- " 'Casualty_Type': 9,\n",
- " 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
- " 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '25/06/2012',\n",
- " 'Datetime': datetime.datetime(2012, 6, 25, 18, 35),\n",
- " 'Day_of_Week': 2,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 1,\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
" 'LSOA_of_Accident_Location': 'E01016722',\n",
- " 'Latitude': 52.046,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 483790,\n",
- " 'Location_Northing_OSGR': 239330,\n",
- " 'Longitude': -0.779632,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
" 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.048614,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 2,\n",
+ " 'Accident_Index': '201243S098032',\n",
" 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
- " 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 3,\n",
+ " '1st_Road_Class': 5,\n",
+ " '2nd_Road_Class': 6,\n",
+ " 'Accident_Severity': 2,\n",
" 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.78029,\n",
+ " 'Junction_Control': 4,\n",
" 'Speed_limit': 70,\n",
+ " 'Date': '24/03/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 3, 24, 7, 0),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.78029, 52.048614]},\n",
+ " 'Weather_Conditions': 7},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b779'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
+ " 'Casualty_Class': 1,\n",
+ " 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
+ " 'Pedestrian_Location': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 5,\n",
+ " 'Pedestrian_Road_Maintenance_Worker': 0,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
+ " 'Road_Surface_Conditions': 1,\n",
+ " '1st_Road_Number': 144,\n",
" 'Time': '18:35',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 3,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': -1,\n",
- " 'Driver_IMD_Decile': -1,\n",
- " 'Engine_Capacity_(CC)': -1,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 3,\n",
- " 'Propulsion_Code': -1,\n",
- " 'Sex_of_Driver': 1,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': 156,\n",
+ " 'Location_Northing_OSGR': 239330,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 483790,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 2,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': -1,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 3,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': -1,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 2},\n",
- " {'1st_Point_of_Impact': 4,\n",
- " 'Age_Band_of_Driver': 5,\n",
- " 'Age_of_Vehicle': 1,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 1,\n",
- " 'Engine_Capacity_(CC)': 1329,\n",
+ " 'Age_Band_of_Driver': 7,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 2,\n",
- " 'Junction_Location': 3,\n",
- " 'Propulsion_Code': 1,\n",
+ " '1st_Point_of_Impact': 3,\n",
+ " 'Vehicle_Type': 9,\n",
" 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': -1,\n",
+ " 'Propulsion_Code': -1,\n",
+ " 'Age_of_Vehicle': -1,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 2},\n",
+ " {'Driver_IMD_Decile': 1,\n",
+ " 'Vehicle_Leaving_Carriageway': 4,\n",
+ " 'Junction_Location': 3,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 4,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1329,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 5,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 4,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 2,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 1,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b779'),\n",
- " 'loc': {'coordinates': [-0.779632, 52.046], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 156,\n",
- " '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1085,\n",
- " 'Accident_Index': '201243S014082',\n",
+ " 'Junction_Detail': 1,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016722',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.046,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S097062',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
+ " '2nd_Road_Class': 5,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 4,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 1,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.779632,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 70,\n",
+ " 'Date': '25/06/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 6, 25, 18, 35),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.779632, 52.046]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b5eb'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 1,\n",
+ " 'Age_Band_of_Casualty': 4,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 1}],\n",
- " 'Date': '03/08/2012',\n",
- " 'Datetime': datetime.datetime(2012, 8, 3, 15, 59),\n",
- " 'Day_of_Week': 6,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 3,\n",
- " 'LSOA_of_Accident_Location': 'E01016724',\n",
- " 'Latitude': 52.043737,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 483890,\n",
- " 'Location_Northing_OSGR': 239080,\n",
- " 'Longitude': -0.778235,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 1,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 3,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 70,\n",
+ " '1st_Road_Number': 156,\n",
" 'Time': '15:59',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 8,\n",
- " 'Age_of_Vehicle': 11,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 7,\n",
- " 'Engine_Capacity_(CC)': 1781,\n",
- " 'Hit_Object_in_Carriageway': 10,\n",
- " 'Hit_Object_off_Carriageway': 4,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': 1085,\n",
+ " 'Location_Northing_OSGR': 239080,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 1,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 483890,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 6,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 7,\n",
+ " 'Vehicle_Leaving_Carriageway': 1,\n",
" 'Junction_Location': 5,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 1,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 1,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 7,\n",
+ " 'Engine_Capacity_(CC)': 1781,\n",
" 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 8,\n",
+ " 'Hit_Object_in_Carriageway': 10,\n",
+ " 'Hit_Object_off_Carriageway': 4,\n",
+ " '1st_Point_of_Impact': 1,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 11,\n",
+ " 'Vehicle_Manoeuvre': 7,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b5eb'),\n",
- " 'loc': {'coordinates': [-0.778235, 52.043737], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 144,\n",
- " '2nd_Road_Class': -1,\n",
- " '2nd_Road_Number': 0,\n",
- " 'Accident_Index': '201243S083092',\n",
- " 'Accident_Severity': 2,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 11,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016724',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.043737,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S014082',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
+ " '2nd_Road_Class': 6,\n",
+ " 'Accident_Severity': 3,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.778235,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 70,\n",
+ " 'Date': '03/08/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 8, 3, 15, 59),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.778235, 52.043737]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b72c'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 11,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 6,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1},\n",
+ " {'Casualty_Severity': 2,\n",
" 'Casualty_Class': 3,\n",
- " 'Casualty_Home_Area_Type': 3,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 2,\n",
" 'Casualty_Type': 0,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 3,\n",
" 'Pedestrian_Location': 5,\n",
- " 'Pedestrian_Movement': 1,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1}],\n",
- " 'Date': '13/09/2012',\n",
- " 'Datetime': datetime.datetime(2012, 9, 13, 15, 45),\n",
- " 'Day_of_Week': 5,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': -1,\n",
- " 'Junction_Detail': 0,\n",
- " 'LSOA_of_Accident_Location': 'E01016722',\n",
- " 'Latitude': 52.044051,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 483600,\n",
- " 'Location_Northing_OSGR': 239110,\n",
- " 'Longitude': -0.782456,\n",
- " 'Number_of_Casualties': 2,\n",
- " 'Number_of_Vehicles': 1,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 1,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 60,\n",
+ " '1st_Road_Number': 144,\n",
" 'Time': '15:45',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 11,\n",
- " 'Age_of_Vehicle': 2,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 8,\n",
- " 'Engine_Capacity_(CC)': 1397,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 0,\n",
+ " 'Location_Northing_OSGR': 239110,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 1,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 483600,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 5,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 8,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1397,\n",
" 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 11,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 2,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b72c'),\n",
- " 'loc': {'coordinates': [-0.782456, 52.044051], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 156,\n",
- " '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1085,\n",
- " 'Accident_Index': '201243S006042',\n",
- " 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 8,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 2,\n",
+ " 'Junction_Detail': 0,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016722',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.044051,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S083092',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
+ " '2nd_Road_Class': -1,\n",
+ " 'Accident_Severity': 2,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.782456,\n",
+ " 'Junction_Control': -1,\n",
+ " 'Speed_limit': 60,\n",
+ " 'Date': '13/09/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 9, 13, 15, 45),\n",
+ " 'Number_of_Casualties': 2,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.782456, 52.044051]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b5ca'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 2,\n",
+ " 'Age_Band_of_Casualty': 8,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '01/04/2012',\n",
- " 'Datetime': datetime.datetime(2012, 4, 1, 14, 5),\n",
- " 'Day_of_Week': 1,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 3,\n",
- " 'LSOA_of_Accident_Location': 'E01016724',\n",
- " 'Latitude': 52.042287,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 483970,\n",
- " 'Location_Northing_OSGR': 238920,\n",
- " 'Longitude': -0.777109,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 3,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 70,\n",
+ " '1st_Road_Number': 156,\n",
" 'Time': '14:05',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': 8,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 8,\n",
- " 'Engine_Capacity_(CC)': 1794,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 1,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': 1085,\n",
+ " 'Location_Northing_OSGR': 238920,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 483970,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 1,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 8,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 1,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 5,\n",
+ " 'Engine_Capacity_(CC)': 1794,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
" 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': 10,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 4,\n",
- " 'Engine_Capacity_(CC)': 1587,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 1,\n",
- " 'Junction_Location': 1,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
+ " 'Age_of_Vehicle': 8,\n",
+ " 'Vehicle_Manoeuvre': 5,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 4,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 3,\n",
+ " 'Engine_Capacity_(CC)': 1587,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 7,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 1,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 10,\n",
+ " 'Vehicle_Manoeuvre': 3,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b5ca'),\n",
- " 'loc': {'coordinates': [-0.777109, 52.042287], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 156,\n",
- " '2nd_Road_Class': -1,\n",
- " '2nd_Road_Number': 0,\n",
- " 'Accident_Index': '201243S040062',\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016724',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.042287,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S006042',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
+ " '2nd_Road_Class': 6,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 5,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.777109,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 70,\n",
+ " 'Date': '01/04/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 4, 1, 14, 5),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.777109, 52.042287]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b661'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 5,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 5,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 5,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '12/06/2012',\n",
- " 'Datetime': datetime.datetime(2012, 6, 12, 10, 10),\n",
- " 'Day_of_Week': 3,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': -1,\n",
- " 'Junction_Detail': 0,\n",
- " 'LSOA_of_Accident_Location': 'E01016724',\n",
- " 'Latitude': 52.040652,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 484080,\n",
- " 'Location_Northing_OSGR': 238740,\n",
- " 'Longitude': -0.775549,\n",
- " 'Number_of_Casualties': 2,\n",
- " 'Number_of_Vehicles': 3,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 3,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 50,\n",
+ " '1st_Road_Number': 156,\n",
" 'Time': '10:10',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 5,\n",
- " 'Age_of_Vehicle': 7,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 2,\n",
- " 'Engine_Capacity_(CC)': 1998,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 2,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': 0,\n",
+ " 'Location_Northing_OSGR': 238740,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 3,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 484080,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 3,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 2,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 16,\n",
+ " 'Engine_Capacity_(CC)': 1998,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 1,\n",
" 'Age_Band_of_Driver': 5,\n",
- " 'Age_of_Vehicle': 12,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 4,\n",
- " 'Engine_Capacity_(CC)': 999,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 0,\n",
- " 'Propulsion_Code': 1,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
" 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 2,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 7,\n",
+ " 'Vehicle_Manoeuvre': 16,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 4,\n",
+ " 'Vehicle_Leaving_Carriageway': 4,\n",
+ " 'Junction_Location': 0,\n",
" 'Skidding_and_Overturning': 1,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 4,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 16,\n",
+ " 'Engine_Capacity_(CC)': 999,\n",
" 'Vehicle_Reference': 2,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': 8,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 7,\n",
- " 'Engine_Capacity_(CC)': -1,\n",
+ " 'Age_Band_of_Driver': 5,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 1,\n",
- " 'Junction_Location': 0,\n",
- " 'Propulsion_Code': -1,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
" 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 12,\n",
+ " 'Vehicle_Manoeuvre': 16,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 7,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 0,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 5,\n",
+ " 'Engine_Capacity_(CC)': -1,\n",
" 'Vehicle_Reference': 3,\n",
+ " 'Age_Band_of_Driver': 8,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
" 'Vehicle_Type': 90,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 1,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': -1,\n",
+ " 'Age_of_Vehicle': -1,\n",
+ " 'Vehicle_Manoeuvre': 5,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b661'),\n",
- " 'loc': {'coordinates': [-0.775549, 52.040652], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 3,\n",
- " '1st_Road_Number': 509,\n",
+ " 'Junction_Detail': 0,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016724',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.040652,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S040062',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
" '2nd_Road_Class': -1,\n",
- " '2nd_Road_Number': 0,\n",
- " 'Accident_Index': '201243S001082',\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 6,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.775549,\n",
+ " 'Junction_Control': -1,\n",
+ " 'Speed_limit': 50,\n",
+ " 'Date': '12/06/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 6, 12, 10, 10),\n",
+ " 'Number_of_Casualties': 2,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.775549, 52.040652]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b5b9'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 2,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 19,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 2,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 7,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 2,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 2,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 7,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '01/08/2012',\n",
- " 'Datetime': datetime.datetime(2012, 8, 1, 17, 0),\n",
- " 'Day_of_Week': 4,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': -1,\n",
- " 'Junction_Detail': 0,\n",
- " 'LSOA_of_Accident_Location': 'E01016730',\n",
- " 'Latitude': 52.040704,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 484330,\n",
- " 'Location_Northing_OSGR': 238750,\n",
- " 'Longitude': -0.771903,\n",
- " 'Number_of_Casualties': 2,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 3,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 70,\n",
+ " '1st_Road_Number': 509,\n",
" 'Time': '17:00',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 14,\n",
- " 'Driver_Home_Area_Type': 2,\n",
- " 'Driver_IMD_Decile': 9,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': 0,\n",
+ " 'Location_Northing_OSGR': 238750,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 484330,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 4,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 0,\n",
+ " 'Skidding_and_Overturning': 0,\n",
+ " 'Towing_and_Articulation': 0,\n",
+ " 'Vehicle_Location-Restricted_Lane': 0,\n",
" 'Engine_Capacity_(CC)': 2496,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 6,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 19,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 1,\n",
- " 'Junction_Location': 0,\n",
+ " 'Driver_Home_Area_Type': 2,\n",
" 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 1,\n",
+ " 'Age_of_Vehicle': 14,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 7,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 0,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
- " 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 19,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': 5,\n",
- " 'Driver_Home_Area_Type': 2,\n",
- " 'Driver_IMD_Decile': 7,\n",
" 'Engine_Capacity_(CC)': 1753,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 7,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 0,\n",
+ " 'Driver_Home_Area_Type': 2,\n",
" 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 2,\n",
- " 'Skidding_and_Overturning': 0,\n",
- " 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
- " 'Vehicle_Location-Restricted_Lane': 0,\n",
+ " 'Age_of_Vehicle': 5,\n",
" 'Vehicle_Manoeuvre': 18,\n",
- " 'Vehicle_Reference': 2,\n",
- " 'Vehicle_Type': 9,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b5b9'),\n",
- " 'loc': {'coordinates': [-0.771903, 52.040704], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 156,\n",
- " '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1085,\n",
- " 'Accident_Index': '201243S027092',\n",
+ " 'Junction_Detail': 0,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016730',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.040704,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S001082',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 3,\n",
+ " '2nd_Road_Class': -1,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 7,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.771903,\n",
+ " 'Junction_Control': -1,\n",
+ " 'Speed_limit': 70,\n",
+ " 'Date': '01/08/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 8, 1, 17, 0),\n",
+ " 'Number_of_Casualties': 2,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.771903, 52.040704]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b61e'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 3,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 19,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 3,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 7,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '07/09/2012',\n",
- " 'Datetime': datetime.datetime(2012, 9, 7, 14, 0),\n",
- " 'Day_of_Week': 6,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 3,\n",
- " 'LSOA_of_Accident_Location': 'E01016724',\n",
- " 'Latitude': 52.042287,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 483970,\n",
- " 'Location_Northing_OSGR': 238920,\n",
- " 'Longitude': -0.777109,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 3,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 70,\n",
+ " '1st_Road_Number': 156,\n",
" 'Time': '14:00',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 8,\n",
- " 'Age_of_Vehicle': 7,\n",
- " 'Driver_Home_Area_Type': 2,\n",
- " 'Driver_IMD_Decile': 7,\n",
- " 'Engine_Capacity_(CC)': 1198,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': 1085,\n",
+ " 'Location_Northing_OSGR': 238920,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 483970,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 6,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 7,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 6,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 5,\n",
+ " 'Engine_Capacity_(CC)': 1198,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': 6,\n",
- " 'Driver_Home_Area_Type': 3,\n",
- " 'Driver_IMD_Decile': 8,\n",
- " 'Engine_Capacity_(CC)': 2179,\n",
+ " 'Age_Band_of_Driver': 8,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 2,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 7,\n",
+ " 'Vehicle_Manoeuvre': 5,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 8,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 6,\n",
- " 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 5,\n",
+ " 'Engine_Capacity_(CC)': 2179,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 7,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
" 'Vehicle_Type': 19,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 3,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': 6,\n",
+ " 'Vehicle_Manoeuvre': 5,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b61e'),\n",
- " 'loc': {'coordinates': [-0.777109, 52.042287], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 6,\n",
- " '1st_Road_Number': 1132,\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016724',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.042287,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S027092',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
" '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1132,\n",
- " 'Accident_Index': '201243S047092',\n",
- " 'Accident_Severity': 2,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 5,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Accident_Severity': 3,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.777109,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 70,\n",
+ " 'Date': '07/09/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 9, 7, 14, 0),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.777109, 52.042287]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b680'),\n",
+ " 'Casualties': [{'Casualty_Severity': 2,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 2,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 2,\n",
" 'Casualty_Type': 19,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 2,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 5,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 5,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 19,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 5,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1}],\n",
- " 'Date': '07/09/2012',\n",
- " 'Datetime': datetime.datetime(2012, 9, 7, 3, 45),\n",
- " 'Day_of_Week': 6,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 3,\n",
- " 'LSOA_of_Accident_Location': 'E01016723',\n",
- " 'Latitude': 52.048747,\n",
- " 'Light_Conditions': 4,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 484050,\n",
- " 'Location_Northing_OSGR': 239640,\n",
- " 'Longitude': -0.775766,\n",
- " 'Number_of_Casualties': 2,\n",
- " 'Number_of_Vehicles': 1,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 30,\n",
+ " '1st_Road_Number': 1132,\n",
" 'Time': '03:45',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 5,\n",
- " 'Age_of_Vehicle': 5,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 3,\n",
- " 'Engine_Capacity_(CC)': 1753,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 4,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 1132,\n",
+ " 'Location_Northing_OSGR': 239640,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 1,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 484050,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 6,\n",
+ " 'Light_Conditions': 4,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 3,\n",
+ " 'Vehicle_Leaving_Carriageway': 1,\n",
" 'Junction_Location': 8,\n",
- " 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 1,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 17,\n",
+ " 'Engine_Capacity_(CC)': 1753,\n",
" 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 5,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 4,\n",
+ " '1st_Point_of_Impact': 1,\n",
" 'Vehicle_Type': 19,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': 5,\n",
+ " 'Vehicle_Manoeuvre': 17,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b680'),\n",
- " 'loc': {'coordinates': [-0.775766, 52.048747], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 157,\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016723',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.048747,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S047092',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 6,\n",
" '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1132,\n",
- " 'Accident_Index': '201243S071052',\n",
- " 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 8,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Accident_Severity': 2,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.775766,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 30,\n",
+ " 'Date': '07/09/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 9, 7, 3, 45),\n",
+ " 'Number_of_Casualties': 2,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.775766, 52.048747]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b6f2'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 8,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 11,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 1,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 3,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 3,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 1,\n",
+ " 'Age_Band_of_Casualty': 11,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 7,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 7,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '15/05/2012',\n",
- " 'Datetime': datetime.datetime(2012, 5, 15, 14, 45),\n",
- " 'Day_of_Week': 3,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 3,\n",
- " 'LSOA_of_Accident_Location': 'E01016717',\n",
- " 'Latitude': 52.055269,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 484310,\n",
- " 'Location_Northing_OSGR': 240370,\n",
- " 'Longitude': -0.771795,\n",
- " 'Number_of_Casualties': 3,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 60,\n",
+ " '1st_Road_Number': 157,\n",
" 'Time': '14:45',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 3,\n",
- " 'Age_Band_of_Driver': 8,\n",
- " 'Age_of_Vehicle': 10,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 5,\n",
- " 'Engine_Capacity_(CC)': 1388,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 1132,\n",
+ " 'Location_Northing_OSGR': 240370,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 484310,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 3,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 5,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 6,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Engine_Capacity_(CC)': 1388,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': 12,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 3,\n",
- " 'Engine_Capacity_(CC)': 1389,\n",
+ " 'Age_Band_of_Driver': 8,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 3,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 8,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
+ " 'Age_of_Vehicle': 10,\n",
+ " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 3,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 8,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1389,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 7,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 12,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 2,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b6f2'),\n",
- " 'loc': {'coordinates': [-0.771795, 52.055269], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 157,\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016717',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.055269,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S071052',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
" '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1132,\n",
- " 'Accident_Index': '201243S072102',\n",
- " 'Accident_Severity': 2,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 6,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Accident_Severity': 3,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.771795,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 60,\n",
+ " 'Date': '15/05/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 5, 15, 14, 45),\n",
+ " 'Number_of_Casualties': 3,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.771795, 52.055269]},\n",
+ " 'Weather_Conditions': 2},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b6f5'),\n",
+ " 'Casualties': [{'Casualty_Severity': 2,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 2,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 1,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 2,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2},\n",
+ " {'Casualty_Severity': 2,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 3,\n",
- " 'Casualty_Severity': 2,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 3,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 2,\n",
+ " 'Age_Band_of_Casualty': 1,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 1,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 2,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2},\n",
+ " {'Casualty_Severity': 2,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 4,\n",
- " 'Casualty_Severity': 2,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 4,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 2,\n",
+ " 'Age_Band_of_Casualty': 1,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 7,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1},\n",
+ " {'Casualty_Severity': 2,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 2,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 7,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '18/10/2012',\n",
- " 'Datetime': datetime.datetime(2012, 10, 18, 18, 49),\n",
- " 'Day_of_Week': 5,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 3,\n",
- " 'LSOA_of_Accident_Location': 'E01016717',\n",
- " 'Latitude': 52.055179,\n",
- " 'Light_Conditions': 4,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 484310,\n",
- " 'Location_Northing_OSGR': 240360,\n",
- " 'Longitude': -0.771798,\n",
- " 'Number_of_Casualties': 4,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 60,\n",
+ " '1st_Road_Number': 157,\n",
" 'Time': '18:49',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 11,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 6,\n",
- " 'Engine_Capacity_(CC)': 1390,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 1132,\n",
+ " 'Location_Northing_OSGR': 240360,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 484310,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 5,\n",
+ " 'Light_Conditions': 4,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 6,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 8,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 9,\n",
- " 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': 11,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 9,\n",
" 'Engine_Capacity_(CC)': 1390,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 6,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 1,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
+ " 'Age_of_Vehicle': 11,\n",
+ " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1390,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 7,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 11,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b6f5'),\n",
- " 'loc': {'coordinates': [-0.771798, 52.055179], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 157,\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016717',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.055179,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S072102',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
" '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1132,\n",
- " 'Accident_Index': '201243S075112',\n",
- " 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 5,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Accident_Severity': 2,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.771798,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 60,\n",
+ " 'Date': '18/10/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 10, 18, 18, 49),\n",
+ " 'Number_of_Casualties': 4,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.771798, 52.055179]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b706'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 3,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 3,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 5,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 6,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2},\n",
- " {'Age_Band_of_Casualty': 5,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 1,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': -1,\n",
- " 'Casualty_Reference': 3,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 3,\n",
+ " 'Casualty_Home_Area_Type': -1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 1,\n",
+ " 'Age_Band_of_Casualty': 5,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '18/11/2012',\n",
- " 'Datetime': datetime.datetime(2012, 11, 18, 17, 8),\n",
- " 'Day_of_Week': 1,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 3,\n",
- " 'LSOA_of_Accident_Location': 'E01016717',\n",
- " 'Latitude': 52.055179,\n",
- " 'Light_Conditions': 4,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 484310,\n",
- " 'Location_Northing_OSGR': 240360,\n",
- " 'Longitude': -0.771798,\n",
- " 'Number_of_Casualties': 3,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 60,\n",
+ " '1st_Road_Number': 157,\n",
" 'Time': '17:08',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 4,\n",
- " 'Age_Band_of_Driver': 5,\n",
- " 'Age_of_Vehicle': 9,\n",
- " 'Driver_Home_Area_Type': 3,\n",
- " 'Driver_IMD_Decile': 9,\n",
- " 'Engine_Capacity_(CC)': 1388,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 1132,\n",
+ " 'Location_Northing_OSGR': 240360,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 484310,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 1,\n",
+ " 'Light_Conditions': 4,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 8,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Engine_Capacity_(CC)': 1388,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 3,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 3,\n",
- " 'Engine_Capacity_(CC)': 1248,\n",
+ " 'Age_Band_of_Driver': 5,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 4,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 8,\n",
+ " 'Driver_Home_Area_Type': 3,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
+ " 'Age_of_Vehicle': 9,\n",
+ " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 3,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 8,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1248,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 6,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 3,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b706'),\n",
- " 'loc': {'coordinates': [-0.771798, 52.055179], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 156,\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016717',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.055179,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S075112',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
" '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1132,\n",
- " 'Accident_Index': '201243S056102',\n",
- " 'Accident_Severity': 2,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 5,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Accident_Severity': 3,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.771798,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 60,\n",
+ " 'Date': '18/11/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 11, 18, 17, 8),\n",
+ " 'Number_of_Casualties': 3,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.771798, 52.055179]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b6a8'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 5,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 5,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2},\n",
+ " {'Casualty_Severity': 2,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 2,\n",
" 'Casualty_Type': 5,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 5,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '05/10/2012',\n",
- " 'Datetime': datetime.datetime(2012, 10, 5, 11, 40),\n",
- " 'Day_of_Week': 6,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 3,\n",
- " 'LSOA_of_Accident_Location': 'E01016720',\n",
- " 'Latitude': 52.05133,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 483610,\n",
- " 'Location_Northing_OSGR': 239920,\n",
- " 'Longitude': -0.782112,\n",
- " 'Number_of_Casualties': 2,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 3,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 70,\n",
+ " '1st_Road_Number': 156,\n",
" 'Time': '11:40',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 3,\n",
- " 'Age_Band_of_Driver': 5,\n",
- " 'Age_of_Vehicle': 9,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 5,\n",
- " 'Engine_Capacity_(CC)': 1149,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': 1132,\n",
+ " 'Location_Northing_OSGR': 239920,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 483610,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 6,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 5,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 2,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 12,\n",
+ " 'Engine_Capacity_(CC)': 1149,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 1,\n",
" 'Age_Band_of_Driver': 5,\n",
- " 'Age_of_Vehicle': 16,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 5,\n",
- " 'Engine_Capacity_(CC)': 748,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 3,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 2,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
+ " 'Age_of_Vehicle': 9,\n",
+ " 'Vehicle_Manoeuvre': 12,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 5,\n",
+ " 'Vehicle_Leaving_Carriageway': 4,\n",
+ " 'Junction_Location': 2,\n",
" 'Skidding_and_Overturning': 1,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 4,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 748,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 5,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
" 'Vehicle_Type': 5,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 16,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b6a8'),\n",
- " 'loc': {'coordinates': [-0.782112, 52.05133], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 6,\n",
- " '1st_Road_Number': 1132,\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016720',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.05133,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S056102',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
" '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1132,\n",
- " 'Accident_Index': '201243S045042',\n",
- " 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 6,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Accident_Severity': 2,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.782112,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 70,\n",
+ " 'Date': '05/10/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 10, 5, 11, 40),\n",
+ " 'Number_of_Casualties': 2,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.782112, 52.05133]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b674'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 5,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '16/04/2012',\n",
- " 'Datetime': datetime.datetime(2012, 4, 16, 10, 19),\n",
- " 'Day_of_Week': 2,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 3,\n",
- " 'LSOA_of_Accident_Location': 'E01016807',\n",
- " 'Latitude': 52.057056,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 483790,\n",
- " 'Location_Northing_OSGR': 240560,\n",
- " 'Longitude': -0.779331,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 30,\n",
+ " '1st_Road_Number': 1132,\n",
" 'Time': '10:19',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 3,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': 1,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 4,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 1132,\n",
+ " 'Location_Northing_OSGR': 240560,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 483790,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 2,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 4,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 8,\n",
+ " 'Skidding_and_Overturning': 0,\n",
+ " 'Towing_and_Articulation': 0,\n",
+ " 'Vehicle_Location-Restricted_Lane': 0,\n",
" 'Engine_Capacity_(CC)': 1968,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 7,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 3,\n",
+ " 'Vehicle_Type': 19,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 1,\n",
- " 'Junction_Location': 8,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 1,\n",
+ " 'Age_of_Vehicle': 1,\n",
+ " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 5,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 8,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 9,\n",
- " 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 19,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 15,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 5,\n",
" 'Engine_Capacity_(CC)': 599,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 6,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 5,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 8,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
- " 'Skidding_and_Overturning': 0,\n",
- " 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
- " 'Vehicle_Location-Restricted_Lane': 0,\n",
+ " 'Age_of_Vehicle': 15,\n",
" 'Vehicle_Manoeuvre': 14,\n",
- " 'Vehicle_Reference': 2,\n",
- " 'Vehicle_Type': 5,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b674'),\n",
- " 'loc': {'coordinates': [-0.779331, 52.057056], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 6,\n",
- " '1st_Road_Number': 1132,\n",
- " '2nd_Road_Class': -1,\n",
- " '2nd_Road_Number': 0,\n",
- " 'Accident_Index': '201243S103042',\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016807',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.057056,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S045042',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 6,\n",
+ " '2nd_Road_Class': 6,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 3,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.779331,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 30,\n",
+ " 'Date': '16/04/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 4, 16, 10, 19),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.779331, 52.057056]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b78f'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 3,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 0,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 5,\n",
- " 'Pedestrian_Movement': 2,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 3,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1}],\n",
- " 'Date': '26/04/2012',\n",
- " 'Datetime': datetime.datetime(2012, 4, 26, 18, 12),\n",
- " 'Day_of_Week': 5,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': -1,\n",
- " 'Junction_Detail': 0,\n",
- " 'LSOA_of_Accident_Location': 'E01016807',\n",
- " 'Latitude': 52.059761,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 483730,\n",
- " 'Location_Northing_OSGR': 240860,\n",
- " 'Longitude': -0.780132,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 1,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 2,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 30,\n",
+ " '1st_Road_Number': 1132,\n",
" 'Time': '18:12',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 8,\n",
- " 'Age_of_Vehicle': 7,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 5,\n",
- " 'Engine_Capacity_(CC)': 1599,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 0,\n",
+ " 'Location_Northing_OSGR': 240860,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 1,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 483730,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 5,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 5,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1599,\n",
" 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 8,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 7,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b78f'),\n",
- " 'loc': {'coordinates': [-0.780132, 52.059761], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 6,\n",
- " '1st_Road_Number': 1132,\n",
- " '2nd_Road_Class': -1,\n",
- " '2nd_Road_Number': 0,\n",
- " 'Accident_Index': '201243S104072',\n",
- " 'Accident_Severity': 2,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 6,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
- " 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 2,\n",
- " 'Casualty_Type': 1,\n",
- " 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
- " 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '23/07/2012',\n",
- " 'Datetime': datetime.datetime(2012, 7, 23, 20, 30),\n",
- " 'Day_of_Week': 2,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': -1,\n",
" 'Junction_Detail': 0,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
" 'LSOA_of_Accident_Location': 'E01016807',\n",
- " 'Latitude': 52.056535,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 483670,\n",
- " 'Location_Northing_OSGR': 240500,\n",
- " 'Longitude': -0.781095,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
" 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.059761,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S103042',\n",
" 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
- " 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 6,\n",
+ " '1st_Road_Class': 6,\n",
+ " '2nd_Road_Class': -1,\n",
+ " 'Accident_Severity': 3,\n",
" 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.780132,\n",
+ " 'Junction_Control': -1,\n",
" 'Speed_limit': 30,\n",
+ " 'Date': '26/04/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 4, 26, 18, 12),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.780132, 52.059761]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b795'),\n",
+ " 'Casualties': [{'Casualty_Severity': 2,\n",
+ " 'Casualty_Class': 1,\n",
+ " 'Casualty_Type': 1,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
+ " 'Pedestrian_Location': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
+ " 'Pedestrian_Road_Maintenance_Worker': 0,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
+ " 'Road_Surface_Conditions': 1,\n",
+ " '1st_Road_Number': 1132,\n",
" 'Time': '20:30',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 8,\n",
- " 'Age_of_Vehicle': 13,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 8,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 0,\n",
+ " 'Location_Northing_OSGR': 240500,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 483670,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 2,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 8,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 0,\n",
+ " 'Skidding_and_Overturning': 0,\n",
+ " 'Towing_and_Articulation': 0,\n",
+ " 'Vehicle_Location-Restricted_Lane': 0,\n",
" 'Engine_Capacity_(CC)': 1598,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 8,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 0,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
+ " 'Age_of_Vehicle': 13,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 3,\n",
+ " 'Vehicle_Leaving_Carriageway': 1,\n",
+ " 'Junction_Location': 0,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
- " 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 4,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 3,\n",
" 'Engine_Capacity_(CC)': -1,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 6,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 10,\n",
+ " '1st_Point_of_Impact': 4,\n",
+ " 'Vehicle_Type': 1,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 0,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': -1,\n",
- " 'Sex_of_Driver': 1,\n",
- " 'Skidding_and_Overturning': 0,\n",
- " 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 1,\n",
- " 'Vehicle_Location-Restricted_Lane': 0,\n",
+ " 'Age_of_Vehicle': -1,\n",
" 'Vehicle_Manoeuvre': 18,\n",
- " 'Vehicle_Reference': 2,\n",
- " 'Vehicle_Type': 1,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b795'),\n",
- " 'loc': {'coordinates': [-0.781095, 52.056535], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 3,\n",
- " '1st_Road_Number': 422,\n",
- " '2nd_Road_Class': 5,\n",
- " '2nd_Road_Number': 157,\n",
- " 'Accident_Index': '201243S098092',\n",
- " 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 6,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Junction_Detail': 0,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016807',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.056535,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S104072',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 6,\n",
+ " '2nd_Road_Class': -1,\n",
+ " 'Accident_Severity': 2,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.781095,\n",
+ " 'Junction_Control': -1,\n",
+ " 'Speed_limit': 30,\n",
+ " 'Date': '23/07/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 7, 23, 20, 30),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.781095, 52.056535]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b77d'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 1}],\n",
- " 'Date': '24/09/2012',\n",
- " 'Datetime': datetime.datetime(2012, 9, 24, 15, 4),\n",
- " 'Day_of_Week': 2,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 1,\n",
- " 'LSOA_of_Accident_Location': 'E01016804',\n",
- " 'Latitude': 52.057797,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 484240,\n",
- " 'Location_Northing_OSGR': 240650,\n",
- " 'Longitude': -0.772747,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 1,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 3,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 70,\n",
+ " '1st_Road_Number': 422,\n",
" 'Time': '15:04',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 8,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 3,\n",
- " 'Engine_Capacity_(CC)': 1086,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 7,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': 157,\n",
+ " 'Location_Northing_OSGR': 240650,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 1,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 484240,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 2,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 3,\n",
+ " 'Vehicle_Leaving_Carriageway': 2,\n",
" 'Junction_Location': 3,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 1,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 2,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1086,\n",
" 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 6,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 7,\n",
+ " '1st_Point_of_Impact': 1,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 8,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 2,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b77d'),\n",
- " 'loc': {'coordinates': [-0.772747, 52.057797], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 157,\n",
- " '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1132,\n",
- " 'Accident_Index': '201243S119102',\n",
+ " 'Junction_Detail': 1,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016804',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.057797,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S098092',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 3,\n",
+ " '2nd_Road_Class': 5,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 9,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 1,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.772747,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 70,\n",
+ " 'Date': '24/09/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 9, 24, 15, 4),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.772747, 52.057797]},\n",
+ " 'Weather_Conditions': 2},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b7e9'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 2,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 2,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 1,\n",
+ " 'Age_Band_of_Casualty': 9,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2},\n",
- " {'Age_Band_of_Casualty': 6,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 2,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 2,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 2,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 2,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '25/10/2012',\n",
- " 'Datetime': datetime.datetime(2012, 10, 25, 16, 7),\n",
- " 'Day_of_Week': 5,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 3,\n",
- " 'LSOA_of_Accident_Location': 'E01016806',\n",
- " 'Latitude': 52.064384,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 484070,\n",
- " 'Location_Northing_OSGR': 241380,\n",
- " 'Longitude': -0.775046,\n",
- " 'Number_of_Casualties': 2,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 60,\n",
+ " '1st_Road_Number': 157,\n",
" 'Time': '16:07',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 9,\n",
- " 'Age_of_Vehicle': 5,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 9,\n",
- " 'Engine_Capacity_(CC)': 1461,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 1132,\n",
+ " 'Location_Northing_OSGR': 241380,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 484070,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 5,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 6,\n",
- " 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Engine_Capacity_(CC)': 1461,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 4,\n",
- " 'Age_Band_of_Driver': 5,\n",
- " 'Age_of_Vehicle': 12,\n",
- " 'Driver_Home_Area_Type': 2,\n",
- " 'Driver_IMD_Decile': 3,\n",
- " 'Engine_Capacity_(CC)': 1124,\n",
+ " 'Age_Band_of_Driver': 9,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': 5,\n",
+ " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 3,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 1,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 1,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1124,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 5,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 4,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 2,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 12,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 2,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b7e9'),\n",
- " 'loc': {'coordinates': [-0.775046, 52.064384], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 6,\n",
- " '1st_Road_Number': 1132,\n",
- " '2nd_Road_Class': -1,\n",
- " '2nd_Road_Number': 0,\n",
- " 'Accident_Index': '201243S046082',\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
+ " 'LSOA_of_Accident_Location': 'E01016806',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.064384,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S119102',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
+ " '2nd_Road_Class': 6,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 2,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.775046,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 60,\n",
+ " 'Date': '25/10/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 10, 25, 16, 7),\n",
+ " 'Number_of_Casualties': 2,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.775046, 52.064384]},\n",
+ " 'Weather_Conditions': 2},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b679'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 2,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 1,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 2,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 2,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '15/08/2012',\n",
- " 'Datetime': datetime.datetime(2012, 8, 15, 13, 0),\n",
- " 'Day_of_Week': 4,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 2,\n",
- " 'Junction_Control': -1,\n",
- " 'Junction_Detail': 0,\n",
- " 'LSOA_of_Accident_Location': 'E01016835',\n",
- " 'Latitude': 52.066248,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 483630,\n",
- " 'Location_Northing_OSGR': 241580,\n",
- " 'Longitude': -0.781414,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 30,\n",
+ " '1st_Road_Number': 1132,\n",
" 'Time': '13:00',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': -1,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': -1,\n",
- " 'Driver_IMD_Decile': -1,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 0,\n",
+ " 'Location_Northing_OSGR': 241580,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 483630,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 4,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': -1,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 0,\n",
+ " 'Skidding_and_Overturning': 0,\n",
+ " 'Towing_and_Articulation': 0,\n",
+ " 'Vehicle_Location-Restricted_Lane': 0,\n",
" 'Engine_Capacity_(CC)': -1,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': -1,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 8,\n",
+ " 'Sex_of_Driver': 3,\n",
" 'Journey_Purpose_of_Driver': 1,\n",
- " 'Junction_Location': 0,\n",
+ " 'Driver_Home_Area_Type': -1,\n",
" 'Propulsion_Code': -1,\n",
- " 'Sex_of_Driver': 3,\n",
+ " 'Age_of_Vehicle': -1,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 3,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 0,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
- " 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 8,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 2,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': 2,\n",
- " 'Driver_IMD_Decile': 3,\n",
" 'Engine_Capacity_(CC)': -1,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 2,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 1,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 0,\n",
+ " 'Driver_Home_Area_Type': 2,\n",
" 'Propulsion_Code': -1,\n",
- " 'Sex_of_Driver': 1,\n",
- " 'Skidding_and_Overturning': 0,\n",
- " 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
- " 'Vehicle_Location-Restricted_Lane': 0,\n",
+ " 'Age_of_Vehicle': -1,\n",
" 'Vehicle_Manoeuvre': 4,\n",
- " 'Vehicle_Reference': 2,\n",
- " 'Vehicle_Type': 1,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b679'),\n",
- " 'loc': {'coordinates': [-0.781414, 52.066248], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 140,\n",
- " '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1132,\n",
- " 'Accident_Index': '201243S098072',\n",
+ " 'Junction_Detail': 0,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
+ " 'LSOA_of_Accident_Location': 'E01016835',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.066248,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 2,\n",
+ " 'Accident_Index': '201243S046082',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 6,\n",
+ " '2nd_Road_Class': -1,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 5,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.781414,\n",
+ " 'Junction_Control': -1,\n",
+ " 'Speed_limit': 30,\n",
+ " 'Date': '15/08/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 8, 15, 13, 0),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.781414, 52.066248]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b77c'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 5,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '24/07/2012',\n",
- " 'Datetime': datetime.datetime(2012, 7, 24, 13, 44),\n",
- " 'Day_of_Week': 3,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 2,\n",
- " 'LSOA_of_Accident_Location': 'E01016841',\n",
- " 'Latitude': 52.065447,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 482380,\n",
- " 'Location_Northing_OSGR': 241470,\n",
- " 'Longitude': -0.799672,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 30,\n",
+ " '1st_Road_Number': 140,\n",
" 'Time': '13:44',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 3,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 8,\n",
- " 'Driver_Home_Area_Type': 2,\n",
- " 'Driver_IMD_Decile': 9,\n",
- " 'Engine_Capacity_(CC)': 1399,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 1132,\n",
+ " 'Location_Northing_OSGR': 241470,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 482380,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 3,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 4,\n",
- " 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1399,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 5,\n",
- " 'Age_of_Vehicle': 2,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 4,\n",
- " 'Engine_Capacity_(CC)': 1086,\n",
+ " 'Age_Band_of_Driver': 6,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 3,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 2,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': 8,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 4,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 8,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Engine_Capacity_(CC)': 1086,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 5,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 2,\n",
+ " 'Vehicle_Manoeuvre': 9,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b77c'),\n",
- " 'loc': {'coordinates': [-0.799672, 52.065447], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 140,\n",
+ " 'Junction_Detail': 2,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
+ " 'LSOA_of_Accident_Location': 'E01016841',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.065447,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S098072',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
" '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1129,\n",
- " 'Accident_Index': '201243S019012',\n",
- " 'Accident_Severity': 2,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 7,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Accident_Severity': 3,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.799672,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 30,\n",
+ " 'Date': '24/07/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 7, 24, 13, 44),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.799672, 52.065447]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b5f9'),\n",
+ " 'Casualties': [{'Casualty_Severity': 2,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 2,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 2,\n",
" 'Casualty_Type': 5,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 2,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 7,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1}],\n",
- " 'Date': '06/01/2012',\n",
- " 'Datetime': datetime.datetime(2012, 1, 6, 6, 50),\n",
- " 'Day_of_Week': 6,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 1,\n",
- " 'LSOA_of_Accident_Location': 'E01016840',\n",
- " 'Latitude': 52.063377,\n",
- " 'Light_Conditions': 4,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 481790,\n",
- " 'Location_Northing_OSGR': 241230,\n",
- " 'Longitude': -0.808334,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 1,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 30,\n",
+ " '1st_Road_Number': 140,\n",
" 'Time': '06:50',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': 12,\n",
- " 'Driver_Home_Area_Type': 2,\n",
- " 'Driver_IMD_Decile': 9,\n",
- " 'Engine_Capacity_(CC)': 599,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 1,\n",
+ " 'Road_Type': 1,\n",
+ " '2nd_Road_Number': 1129,\n",
+ " 'Location_Northing_OSGR': 241230,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 481790,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 6,\n",
+ " 'Light_Conditions': 4,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 4,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 599,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 5,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 4,\n",
- " 'Age_Band_of_Driver': -1,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': -1,\n",
- " 'Driver_IMD_Decile': -1,\n",
- " 'Engine_Capacity_(CC)': -1,\n",
+ " 'Age_Band_of_Driver': 7,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 5,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 1,\n",
+ " 'Driver_Home_Area_Type': 2,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 12,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': -1,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 8,\n",
- " 'Propulsion_Code': -1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Engine_Capacity_(CC)': -1,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': -1,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 4,\n",
" 'Vehicle_Type': 19,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 1,\n",
+ " 'Driver_Home_Area_Type': -1,\n",
+ " 'Propulsion_Code': -1,\n",
+ " 'Age_of_Vehicle': -1,\n",
+ " 'Vehicle_Manoeuvre': 9,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b5f9'),\n",
- " 'loc': {'coordinates': [-0.808334, 52.063377], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 6,\n",
- " '1st_Road_Number': 1129,\n",
- " '2nd_Road_Class': -1,\n",
- " '2nd_Road_Number': 0,\n",
- " 'Accident_Index': '201243S028012',\n",
- " 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 8,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Junction_Detail': 1,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016840',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.063377,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S019012',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
+ " '2nd_Road_Class': 6,\n",
+ " 'Accident_Severity': 2,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.808334,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 30,\n",
+ " 'Date': '06/01/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 1, 6, 6, 50),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.808334, 52.063377]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b621'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 3,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 0,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 9,\n",
- " 'Pedestrian_Movement': 5,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 8,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 1}],\n",
- " 'Date': '10/01/2012',\n",
- " 'Datetime': datetime.datetime(2012, 1, 10, 18, 22),\n",
- " 'Day_of_Week': 3,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': -1,\n",
- " 'Junction_Detail': 0,\n",
- " 'LSOA_of_Accident_Location': 'E01016836',\n",
- " 'Latitude': 52.061448,\n",
- " 'Light_Conditions': 4,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 481460,\n",
- " 'Location_Northing_OSGR': 241010,\n",
- " 'Longitude': -0.813199,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 5,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 30,\n",
+ " '1st_Road_Number': 1129,\n",
" 'Time': '18:22',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 4,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': 7,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 2,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 0,\n",
+ " 'Location_Northing_OSGR': 241010,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 481460,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 3,\n",
+ " 'Light_Conditions': 4,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 2,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 0,\n",
+ " 'Skidding_and_Overturning': 0,\n",
+ " 'Towing_and_Articulation': 0,\n",
+ " 'Vehicle_Location-Restricted_Lane': 0,\n",
" 'Engine_Capacity_(CC)': 1997,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 7,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 4,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 1,\n",
- " 'Junction_Location': 0,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 1,\n",
+ " 'Age_of_Vehicle': 7,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 6,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 0,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
- " 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 3,\n",
- " 'Age_Band_of_Driver': 8,\n",
- " 'Age_of_Vehicle': 8,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 6,\n",
" 'Engine_Capacity_(CC)': 1390,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 8,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 3,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 0,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
- " 'Skidding_and_Overturning': 0,\n",
- " 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
- " 'Vehicle_Location-Restricted_Lane': 0,\n",
+ " 'Age_of_Vehicle': 8,\n",
" 'Vehicle_Manoeuvre': 2,\n",
- " 'Vehicle_Reference': 2,\n",
- " 'Vehicle_Type': 9,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b621'),\n",
- " 'loc': {'coordinates': [-0.813199, 52.061448], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 140,\n",
- " '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1129,\n",
- " 'Accident_Index': '201243S094072',\n",
+ " 'Junction_Detail': 0,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016836',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.061448,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S028012',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 6,\n",
+ " '2nd_Road_Class': -1,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 5,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.813199,\n",
+ " 'Junction_Control': -1,\n",
+ " 'Speed_limit': 30,\n",
+ " 'Date': '10/01/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 1, 10, 18, 22),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.813199, 52.061448]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b764'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 5,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '21/07/2012',\n",
- " 'Datetime': datetime.datetime(2012, 7, 21, 22, 0),\n",
- " 'Day_of_Week': 7,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 2,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 2,\n",
- " 'LSOA_of_Accident_Location': 'E01016837',\n",
- " 'Latitude': 52.063375,\n",
- " 'Light_Conditions': 4,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 481800,\n",
- " 'Location_Northing_OSGR': 241230,\n",
- " 'Longitude': -0.808188,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 30,\n",
+ " '1st_Road_Number': 140,\n",
" 'Time': '22:00',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 4,\n",
- " 'Age_of_Vehicle': 10,\n",
- " 'Driver_Home_Area_Type': -1,\n",
- " 'Driver_IMD_Decile': -1,\n",
- " 'Engine_Capacity_(CC)': 1124,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 1129,\n",
+ " 'Location_Northing_OSGR': 241230,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 481800,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 7,\n",
+ " 'Light_Conditions': 4,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': -1,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 1,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1124,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': 5,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 3,\n",
- " 'Engine_Capacity_(CC)': 1198,\n",
+ " 'Age_Band_of_Driver': 4,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 1,\n",
+ " 'Driver_Home_Area_Type': -1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
+ " 'Age_of_Vehicle': 10,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 3,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1198,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 5,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': -1,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b764'),\n",
- " 'loc': {'coordinates': [-0.808188, 52.063375], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 6,\n",
- " '1st_Road_Number': 1129,\n",
- " '2nd_Road_Class': -1,\n",
- " '2nd_Road_Number': 0,\n",
- " 'Accident_Index': '201243S005112',\n",
+ " 'Junction_Detail': 2,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016837',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.063375,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 2,\n",
+ " 'Accident_Index': '201243S094072',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
+ " '2nd_Road_Class': 6,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 3,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.808188,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 30,\n",
+ " 'Date': '21/07/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 7, 21, 22, 0),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.808188, 52.063375]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b5c9'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 3,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 0,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 5,\n",
- " 'Pedestrian_Movement': 1,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 3,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1}],\n",
- " 'Date': '02/11/2012',\n",
- " 'Datetime': datetime.datetime(2012, 11, 2, 16, 15),\n",
- " 'Day_of_Week': 6,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 2,\n",
- " 'Junction_Control': -1,\n",
- " 'Junction_Detail': 0,\n",
- " 'LSOA_of_Accident_Location': 'E01016837',\n",
- " 'Latitude': 52.061149,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 481660,\n",
- " 'Location_Northing_OSGR': 240980,\n",
- " 'Longitude': -0.81029,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 1,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 1,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 30,\n",
+ " '1st_Road_Number': 1129,\n",
" 'Time': '16:15',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 10,\n",
- " 'Age_of_Vehicle': 12,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 10,\n",
- " 'Engine_Capacity_(CC)': 1390,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 0,\n",
+ " 'Location_Northing_OSGR': 240980,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 1,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 481660,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 6,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 10,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1390,\n",
" 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 10,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 12,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b5c9'),\n",
- " 'loc': {'coordinates': [-0.81029, 52.061149], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 24,\n",
- " '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1129,\n",
- " 'Accident_Index': '201243S128072',\n",
+ " 'Junction_Detail': 0,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016837',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.061149,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 2,\n",
+ " 'Accident_Index': '201243S005112',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 6,\n",
+ " '2nd_Road_Class': -1,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 9,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.81029,\n",
+ " 'Junction_Control': -1,\n",
+ " 'Speed_limit': 30,\n",
+ " 'Date': '02/11/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 11, 2, 16, 15),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.81029, 52.061149]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b812'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 9,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 1}],\n",
- " 'Date': '31/07/2012',\n",
- " 'Datetime': datetime.datetime(2012, 7, 31, 16, 57),\n",
- " 'Day_of_Week': 3,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 2,\n",
- " 'LSOA_of_Accident_Location': 'E01016840',\n",
- " 'Latitude': 52.066318,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 481350,\n",
- " 'Location_Northing_OSGR': 241550,\n",
- " 'Longitude': -0.814675,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 30,\n",
+ " '1st_Road_Number': 24,\n",
" 'Time': '16:57',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 9,\n",
- " 'Age_of_Vehicle': 11,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 8,\n",
- " 'Engine_Capacity_(CC)': 1299,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 1,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 1129,\n",
+ " 'Location_Northing_OSGR': 241550,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 481350,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 3,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 8,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 4,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 1,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1299,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 4,\n",
- " 'Age_Band_of_Driver': 4,\n",
- " 'Age_of_Vehicle': 5,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 2,\n",
- " 'Engine_Capacity_(CC)': 2402,\n",
+ " 'Age_Band_of_Driver': 9,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 1,\n",
- " 'Junction_Location': 8,\n",
- " 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 1,\n",
- " 'Skidding_and_Overturning': 0,\n",
- " 'Towing_and_Articulation': 5,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 11,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 2,\n",
" 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 8,\n",
+ " 'Skidding_and_Overturning': 0,\n",
+ " 'Towing_and_Articulation': 5,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Engine_Capacity_(CC)': 2402,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 4,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 4,\n",
" 'Vehicle_Type': 19,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 1,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': 5,\n",
+ " 'Vehicle_Manoeuvre': 9,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b812'),\n",
- " 'loc': {'coordinates': [-0.814675, 52.066318], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 140,\n",
+ " 'Junction_Detail': 2,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016840',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.066318,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S128072',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
" '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1129,\n",
- " 'Accident_Index': '201243S035092',\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 4,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.814675,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 30,\n",
+ " 'Date': '31/07/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 7, 31, 16, 57),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.814675, 52.066318]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b647'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 3,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 0,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 1,\n",
- " 'Pedestrian_Movement': 1,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 4,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 1}],\n",
- " 'Date': '08/09/2012',\n",
- " 'Datetime': datetime.datetime(2012, 9, 8, 17, 40),\n",
- " 'Day_of_Week': 7,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 2,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 3,\n",
- " 'LSOA_of_Accident_Location': 'E01016837',\n",
- " 'Latitude': 52.062543,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 481350,\n",
- " 'Location_Northing_OSGR': 241130,\n",
- " 'Longitude': -0.814775,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 1,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 8,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 1,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 30,\n",
+ " '1st_Road_Number': 140,\n",
" 'Time': '17:40',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 4,\n",
- " 'Age_Band_of_Driver': 11,\n",
- " 'Age_of_Vehicle': 6,\n",
- " 'Driver_Home_Area_Type': 3,\n",
- " 'Driver_IMD_Decile': 8,\n",
- " 'Engine_Capacity_(CC)': 1753,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 1129,\n",
+ " 'Location_Northing_OSGR': 241130,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 1,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 481350,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 7,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 8,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 2,\n",
- " 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1753,\n",
" 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 11,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 4,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 3,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': 6,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b647'),\n",
- " 'loc': {'coordinates': [-0.814775, 52.062543], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 140,\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016837',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.062543,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 2,\n",
+ " 'Accident_Index': '201243S035092',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 8,\n",
+ " '1st_Road_Class': 5,\n",
" '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1129,\n",
- " 'Accident_Index': '201243S121122',\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': -1,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.814775,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 30,\n",
+ " 'Date': '08/09/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 9, 8, 17, 40),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.814775, 52.062543]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b7f3'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 1,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': -1,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 1}],\n",
- " 'Date': '23/12/2012',\n",
- " 'Datetime': datetime.datetime(2012, 12, 23, 12, 0),\n",
- " 'Day_of_Week': 1,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 2,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 3,\n",
- " 'LSOA_of_Accident_Location': 'E01016840',\n",
- " 'Latitude': 52.062212,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 481026,\n",
- " 'Location_Northing_OSGR': 241088,\n",
- " 'Longitude': -0.81951,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 30,\n",
+ " '1st_Road_Number': 140,\n",
" 'Time': '12:00',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': -1,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 5,\n",
- " 'Engine_Capacity_(CC)': -1,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 5,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 1129,\n",
+ " 'Location_Northing_OSGR': 241088,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 481026,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 1,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 5,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 1,\n",
- " 'Propulsion_Code': -1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 5,\n",
+ " 'Engine_Capacity_(CC)': -1,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 1,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 12,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 7,\n",
- " 'Engine_Capacity_(CC)': 1299,\n",
+ " 'Age_Band_of_Driver': -1,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 1,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 5,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': -1,\n",
+ " 'Age_of_Vehicle': -1,\n",
+ " 'Vehicle_Manoeuvre': 5,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 7,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 1,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 5,\n",
+ " 'Engine_Capacity_(CC)': 1299,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 6,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 5,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 12,\n",
+ " 'Vehicle_Manoeuvre': 5,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b7f3'),\n",
- " 'loc': {'coordinates': [-0.81951, 52.062212], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 140,\n",
- " '2nd_Road_Class': 5,\n",
- " '2nd_Road_Number': 155,\n",
- " 'Accident_Index': '201243S041012',\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016840',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.062212,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 2,\n",
+ " 'Accident_Index': '201243S121122',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
+ " '2nd_Road_Class': 6,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 7,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.81951,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 30,\n",
+ " 'Date': '23/12/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 12, 23, 12, 0),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.81951, 52.062212]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b664'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 7,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '14/01/2012',\n",
- " 'Datetime': datetime.datetime(2012, 1, 14, 14, 33),\n",
- " 'Day_of_Week': 7,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 1,\n",
- " 'LSOA_of_Accident_Location': 'E01016840',\n",
- " 'Latitude': 52.061521,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 480340,\n",
- " 'Location_Northing_OSGR': 241000,\n",
- " 'Longitude': -0.829535,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 1,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 60,\n",
+ " '1st_Road_Number': 140,\n",
" 'Time': '14:33',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 11,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 4,\n",
- " 'Engine_Capacity_(CC)': -1,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 1,\n",
+ " '2nd_Road_Number': 155,\n",
+ " 'Location_Northing_OSGR': 241000,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 480340,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 7,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 4,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 8,\n",
- " 'Propulsion_Code': -1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': -1,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 4,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': 1,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 7,\n",
- " 'Engine_Capacity_(CC)': 1956,\n",
+ " 'Age_Band_of_Driver': 11,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': -1,\n",
+ " 'Age_of_Vehicle': -1,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 7,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 8,\n",
- " 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Engine_Capacity_(CC)': 1956,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 7,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 4,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': 1,\n",
+ " 'Vehicle_Manoeuvre': 9,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b664'),\n",
- " 'loc': {'coordinates': [-0.829535, 52.061521], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 140,\n",
+ " 'Junction_Detail': 1,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
+ " 'LSOA_of_Accident_Location': 'E01016840',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.061521,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S041012',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
" '2nd_Road_Class': 5,\n",
- " '2nd_Road_Number': 155,\n",
- " 'Accident_Index': '201243S124012',\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 9,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.829535,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 60,\n",
+ " 'Date': '14/01/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 1, 14, 14, 33),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.829535, 52.061521]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b7ff'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 9,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 8,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 8,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '31/01/2012',\n",
- " 'Datetime': datetime.datetime(2012, 1, 31, 18, 18),\n",
- " 'Day_of_Week': 3,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 2,\n",
- " 'LSOA_of_Accident_Location': 'E01016840',\n",
- " 'Latitude': 52.06152,\n",
- " 'Light_Conditions': 4,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 480350,\n",
- " 'Location_Northing_OSGR': 241000,\n",
- " 'Longitude': -0.829389,\n",
- " 'Number_of_Casualties': 2,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 1,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 60,\n",
+ " '1st_Road_Number': 140,\n",
" 'Time': '18:18',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 9,\n",
- " 'Age_of_Vehicle': 3,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 9,\n",
- " 'Engine_Capacity_(CC)': 998,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 1,\n",
+ " '2nd_Road_Number': 155,\n",
+ " 'Location_Northing_OSGR': 241000,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 480350,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 3,\n",
+ " 'Light_Conditions': 4,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 4,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 998,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 4,\n",
- " 'Age_Band_of_Driver': 8,\n",
- " 'Age_of_Vehicle': 5,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 10,\n",
- " 'Engine_Capacity_(CC)': 1229,\n",
+ " 'Age_Band_of_Driver': 9,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 8,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
+ " 'Age_of_Vehicle': 3,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 10,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 8,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Engine_Capacity_(CC)': 1229,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 8,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 4,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 5,\n",
+ " 'Vehicle_Manoeuvre': 9,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b7ff'),\n",
- " 'loc': {'coordinates': [-0.829389, 52.06152], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 140,\n",
+ " 'Junction_Detail': 2,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
+ " 'LSOA_of_Accident_Location': 'E01016840',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.06152,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S124012',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
" '2nd_Road_Class': 5,\n",
- " '2nd_Road_Number': 155,\n",
- " 'Accident_Index': '201243S068092',\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 8,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.829389,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 60,\n",
+ " 'Date': '31/01/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 1, 31, 18, 18),\n",
+ " 'Number_of_Casualties': 2,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.829389, 52.06152]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b6e1'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 8,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 6,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2},\n",
- " {'Age_Band_of_Casualty': 8,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 1,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 3,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 3,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 1,\n",
+ " 'Age_Band_of_Casualty': 8,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '13/09/2012',\n",
- " 'Datetime': datetime.datetime(2012, 9, 13, 17, 25),\n",
- " 'Day_of_Week': 5,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 2,\n",
- " 'LSOA_of_Accident_Location': 'E01016840',\n",
- " 'Latitude': 52.061521,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 480340,\n",
- " 'Location_Northing_OSGR': 241000,\n",
- " 'Longitude': -0.829535,\n",
- " 'Number_of_Casualties': 3,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 60,\n",
+ " '1st_Road_Number': 140,\n",
" 'Time': '17:25',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 8,\n",
- " 'Age_of_Vehicle': 5,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 8,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 155,\n",
+ " 'Location_Northing_OSGR': 241000,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 480340,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 5,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 8,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 8,\n",
+ " 'Skidding_and_Overturning': 0,\n",
+ " 'Towing_and_Articulation': 0,\n",
+ " 'Vehicle_Location-Restricted_Lane': 0,\n",
" 'Engine_Capacity_(CC)': 2231,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 8,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 2,\n",
- " 'Junction_Location': 8,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 1,\n",
+ " 'Age_of_Vehicle': 5,\n",
+ " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 5,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 8,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 9,\n",
- " 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 3,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 5,\n",
" 'Engine_Capacity_(CC)': 1498,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 6,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 3,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 8,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
- " 'Skidding_and_Overturning': 0,\n",
- " 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
- " 'Vehicle_Location-Restricted_Lane': 0,\n",
+ " 'Age_of_Vehicle': -1,\n",
" 'Vehicle_Manoeuvre': 18,\n",
- " 'Vehicle_Reference': 2,\n",
- " 'Vehicle_Type': 9,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b6e1'),\n",
- " 'loc': {'coordinates': [-0.829535, 52.061521], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 140,\n",
+ " 'Junction_Detail': 2,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
+ " 'LSOA_of_Accident_Location': 'E01016840',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.061521,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S068092',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
" '2nd_Road_Class': 5,\n",
- " '2nd_Road_Number': 155,\n",
- " 'Accident_Index': '201243S009122',\n",
- " 'Accident_Severity': 2,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 9,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Accident_Severity': 3,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.829535,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 60,\n",
+ " 'Date': '13/09/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 9, 13, 17, 25),\n",
+ " 'Number_of_Casualties': 3,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.829535, 52.061521]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b5da'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 8,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 9,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 8,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1},\n",
+ " {'Casualty_Severity': 2,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 2,\n",
" 'Casualty_Type': 1,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 8,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '02/12/2012',\n",
- " 'Datetime': datetime.datetime(2012, 12, 2, 11, 40),\n",
- " 'Day_of_Week': 1,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 1,\n",
- " 'LSOA_of_Accident_Location': 'E01016840',\n",
- " 'Latitude': 52.061522,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 480336,\n",
- " 'Location_Northing_OSGR': 241000,\n",
- " 'Longitude': -0.829593,\n",
- " 'Number_of_Casualties': 2,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 4,\n",
- " 'Road_Type': 1,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 60,\n",
+ " '1st_Road_Number': 140,\n",
" 'Time': '11:40',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 9,\n",
- " 'Age_of_Vehicle': 8,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 4,\n",
+ " 'Road_Type': 1,\n",
+ " '2nd_Road_Number': 155,\n",
+ " 'Location_Northing_OSGR': 241000,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 480336,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 1,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 4,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 4,\n",
+ " 'Skidding_and_Overturning': 0,\n",
+ " 'Towing_and_Articulation': 0,\n",
+ " 'Vehicle_Location-Restricted_Lane': 0,\n",
" 'Engine_Capacity_(CC)': 1686,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 9,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 8,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 1,\n",
- " 'Junction_Location': 4,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 1,\n",
+ " 'Age_of_Vehicle': 8,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 5,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 8,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
- " 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 8,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 4,\n",
- " 'Age_Band_of_Driver': 8,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 5,\n",
" 'Engine_Capacity_(CC)': -1,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 8,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 4,\n",
+ " 'Vehicle_Type': 1,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 8,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': -1,\n",
- " 'Sex_of_Driver': 1,\n",
- " 'Skidding_and_Overturning': 0,\n",
- " 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
- " 'Vehicle_Location-Restricted_Lane': 0,\n",
+ " 'Age_of_Vehicle': -1,\n",
" 'Vehicle_Manoeuvre': 18,\n",
- " 'Vehicle_Reference': 2,\n",
- " 'Vehicle_Type': 1,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 4,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b5da'),\n",
- " 'loc': {'coordinates': [-0.829593, 52.061522], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 129,\n",
+ " 'Junction_Detail': 1,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
+ " 'LSOA_of_Accident_Location': 'E01016840',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.061522,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S009122',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
" '2nd_Road_Class': 5,\n",
- " '2nd_Road_Number': 154,\n",
- " 'Accident_Index': '201243S123012',\n",
- " 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 7,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Accident_Severity': 2,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.829593,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 60,\n",
+ " 'Date': '02/12/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 12, 2, 11, 40),\n",
+ " 'Number_of_Casualties': 2,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.829593, 52.061522]},\n",
+ " 'Weather_Conditions': 4},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b7f9'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 7,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 6,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 1,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 3,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 3,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 1,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 8,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 2,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 2,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 8,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '14/01/2012',\n",
- " 'Datetime': datetime.datetime(2012, 1, 14, 15, 0),\n",
- " 'Day_of_Week': 7,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 3,\n",
- " 'LSOA_of_Accident_Location': 'E01016818',\n",
- " 'Latitude': 52.060823,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 478310,\n",
- " 'Location_Northing_OSGR': 240890,\n",
- " 'Longitude': -0.859164,\n",
- " 'Number_of_Casualties': 3,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 40,\n",
+ " '1st_Road_Number': 129,\n",
" 'Time': '15:00',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 3,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': 5,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 7,\n",
- " 'Engine_Capacity_(CC)': 1560,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 154,\n",
+ " 'Location_Northing_OSGR': 240890,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 478310,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 7,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 7,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 8,\n",
- " 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Engine_Capacity_(CC)': 1560,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 3,\n",
- " 'Age_Band_of_Driver': 8,\n",
- " 'Age_of_Vehicle': 4,\n",
- " 'Driver_Home_Area_Type': 2,\n",
- " 'Driver_IMD_Decile': 9,\n",
- " 'Engine_Capacity_(CC)': 998,\n",
+ " 'Age_Band_of_Driver': 7,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 3,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': 5,\n",
+ " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 8,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 998,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 8,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 3,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 2,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 4,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b7f9'),\n",
- " 'loc': {'coordinates': [-0.859164, 52.060823], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 154,\n",
- " '2nd_Road_Class': -1,\n",
- " '2nd_Road_Number': 0,\n",
- " 'Accident_Index': '201243S113112',\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
+ " 'LSOA_of_Accident_Location': 'E01016818',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.060823,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S123012',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
+ " '2nd_Road_Class': 5,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 2,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.859164,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 40,\n",
+ " 'Date': '14/01/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 1, 14, 15, 0),\n",
+ " 'Number_of_Casualties': 3,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.859164, 52.060823]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b7c8'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 3,\n",
- " 'Casualty_Home_Area_Type': -1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 0,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': -1,\n",
" 'Pedestrian_Location': 5,\n",
- " 'Pedestrian_Movement': 4,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 2,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1}],\n",
- " 'Date': '26/11/2012',\n",
- " 'Datetime': datetime.datetime(2012, 11, 26, 16, 1),\n",
- " 'Day_of_Week': 2,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': -1,\n",
- " 'Junction_Detail': 0,\n",
- " 'LSOA_of_Accident_Location': 'E01016818',\n",
- " 'Latitude': 52.05754,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 478640,\n",
- " 'Location_Northing_OSGR': 240530,\n",
- " 'Longitude': -0.854435,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 1,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 4,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 30,\n",
+ " '1st_Road_Number': 154,\n",
" 'Time': '16:01',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 3,\n",
- " 'Age_Band_of_Driver': 9,\n",
- " 'Age_of_Vehicle': 13,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 8,\n",
- " 'Engine_Capacity_(CC)': 1997,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 2,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 0,\n",
+ " 'Location_Northing_OSGR': 240530,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 1,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 478640,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 2,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 8,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1997,\n",
" 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 9,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 3,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 2,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 13,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b7c8'),\n",
- " 'loc': {'coordinates': [-0.854435, 52.05754], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 140,\n",
+ " 'Junction_Detail': 0,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016818',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.05754,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S113112',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
" '2nd_Road_Class': -1,\n",
- " '2nd_Road_Number': 0,\n",
- " 'Accident_Index': '201243S151052',\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 8,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.854435,\n",
+ " 'Junction_Control': -1,\n",
+ " 'Speed_limit': 30,\n",
+ " 'Date': '26/11/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 11, 26, 16, 1),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.854435, 52.05754]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b84d'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 8,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2},\n",
- " {'Age_Band_of_Casualty': 7,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 1,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 1,\n",
+ " 'Age_Band_of_Casualty': 7,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '31/05/2012',\n",
- " 'Datetime': datetime.datetime(2012, 5, 31, 16, 28),\n",
- " 'Day_of_Week': 5,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': -1,\n",
- " 'Junction_Detail': 0,\n",
- " 'LSOA_of_Accident_Location': 'E01016817',\n",
- " 'Latitude': 52.057118,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 479080,\n",
- " 'Location_Northing_OSGR': 240490,\n",
- " 'Longitude': -0.848028,\n",
- " 'Number_of_Casualties': 2,\n",
- " 'Number_of_Vehicles': 4,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 30,\n",
+ " '1st_Road_Number': 140,\n",
" 'Time': '16:28',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 4,\n",
- " 'Age_of_Vehicle': 9,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 8,\n",
- " 'Engine_Capacity_(CC)': 1149,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 0,\n",
+ " 'Location_Northing_OSGR': 240490,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 4,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 479080,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 5,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 8,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1149,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': 8,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 1,\n",
- " 'Engine_Capacity_(CC)': -1,\n",
+ " 'Age_Band_of_Driver': 4,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 9,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 1,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': -1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 3,\n",
+ " 'Engine_Capacity_(CC)': -1,\n",
" 'Vehicle_Reference': 2,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
" 'Age_Band_of_Driver': 8,\n",
- " 'Age_of_Vehicle': 8,\n",
- " 'Driver_Home_Area_Type': 3,\n",
- " 'Driver_IMD_Decile': 9,\n",
- " 'Engine_Capacity_(CC)': 1598,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': -1,\n",
+ " 'Age_of_Vehicle': -1,\n",
+ " 'Vehicle_Manoeuvre': 3,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 2,\n",
+ " 'Engine_Capacity_(CC)': 1598,\n",
" 'Vehicle_Reference': 3,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': -1,\n",
- " 'Age_of_Vehicle': 13,\n",
- " 'Driver_Home_Area_Type': -1,\n",
- " 'Driver_IMD_Decile': -1,\n",
- " 'Engine_Capacity_(CC)': 1840,\n",
+ " 'Age_Band_of_Driver': 8,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 0,\n",
+ " 'Driver_Home_Area_Type': 3,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 3,\n",
+ " 'Age_of_Vehicle': 8,\n",
+ " 'Vehicle_Manoeuvre': 2,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': -1,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 0,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 2,\n",
+ " 'Engine_Capacity_(CC)': 1840,\n",
" 'Vehicle_Reference': 4,\n",
+ " 'Age_Band_of_Driver': -1,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 3,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': -1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 13,\n",
+ " 'Vehicle_Manoeuvre': 2,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b84d'),\n",
- " 'loc': {'coordinates': [-0.848028, 52.057118], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 3,\n",
- " '1st_Road_Number': 5,\n",
+ " 'Junction_Detail': 0,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016817',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.057118,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S151052',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
" '2nd_Road_Class': -1,\n",
- " '2nd_Road_Number': 0,\n",
- " 'Accident_Index': '201243S037032',\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 5,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.848028,\n",
+ " 'Junction_Control': -1,\n",
+ " 'Speed_limit': 30,\n",
+ " 'Date': '31/05/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 5, 31, 16, 28),\n",
+ " 'Number_of_Casualties': 2,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.848028, 52.057118]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b650'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 3,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 3,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 5,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 1}],\n",
- " 'Date': '10/03/2012',\n",
- " 'Datetime': datetime.datetime(2012, 3, 10, 8, 10),\n",
- " 'Day_of_Week': 7,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': -1,\n",
- " 'Junction_Detail': 0,\n",
- " 'LSOA_of_Accident_Location': 'E01016840',\n",
- " 'Latitude': 52.057028,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 479710,\n",
- " 'Location_Northing_OSGR': 240490,\n",
- " 'Longitude': -0.838841,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 1,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 3,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 70,\n",
+ " '1st_Road_Number': 5,\n",
" 'Time': '08:10',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 5,\n",
- " 'Age_of_Vehicle': 4,\n",
- " 'Driver_Home_Area_Type': 3,\n",
- " 'Driver_IMD_Decile': 10,\n",
- " 'Engine_Capacity_(CC)': 999,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 6,\n",
- " 'Journey_Purpose_of_Driver': 2,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': 0,\n",
+ " 'Location_Northing_OSGR': 240490,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 1,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 479710,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 7,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 10,\n",
+ " 'Vehicle_Leaving_Carriageway': 5,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 1,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 5,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 999,\n",
" 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 5,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 6,\n",
+ " '1st_Point_of_Impact': 1,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 2,\n",
+ " 'Driver_Home_Area_Type': 3,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 4,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b650'),\n",
- " 'loc': {'coordinates': [-0.838841, 52.057028], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 140,\n",
- " '2nd_Road_Class': 5,\n",
- " '2nd_Road_Number': 129,\n",
- " 'Accident_Index': '201243S065042',\n",
+ " 'Junction_Detail': 0,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
+ " 'LSOA_of_Accident_Location': 'E01016840',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.057028,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S037032',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 3,\n",
+ " '2nd_Road_Class': -1,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 7,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.838841,\n",
+ " 'Junction_Control': -1,\n",
+ " 'Speed_limit': 70,\n",
+ " 'Date': '10/03/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 3, 10, 8, 10),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.838841, 52.057028]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b6d3'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 5,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 7,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1}],\n",
- " 'Date': '21/04/2012',\n",
- " 'Datetime': datetime.datetime(2012, 4, 21, 20, 32),\n",
- " 'Day_of_Week': 7,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 1,\n",
- " 'LSOA_of_Accident_Location': 'E01016817',\n",
- " 'Latitude': 52.058772,\n",
- " 'Light_Conditions': 4,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 479460,\n",
- " 'Location_Northing_OSGR': 240680,\n",
- " 'Longitude': -0.842442,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 1,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 30,\n",
+ " '1st_Road_Number': 140,\n",
" 'Time': '20:32',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': 5,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 7,\n",
- " 'Engine_Capacity_(CC)': 645,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 1,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 129,\n",
+ " 'Location_Northing_OSGR': 240680,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 1,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 479460,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 7,\n",
+ " 'Light_Conditions': 4,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 7,\n",
+ " 'Vehicle_Leaving_Carriageway': 7,\n",
" 'Junction_Location': 1,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 1,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 7,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 645,\n",
" 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 7,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 1,\n",
+ " '1st_Point_of_Impact': 1,\n",
" 'Vehicle_Type': 5,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 5,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 2,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b6d3'),\n",
- " 'loc': {'coordinates': [-0.842442, 52.058772], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 140,\n",
+ " 'Junction_Detail': 1,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016817',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.058772,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S065042',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
" '2nd_Road_Class': 5,\n",
- " '2nd_Road_Number': 129,\n",
- " 'Accident_Index': '201243S008082',\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 8,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.842442,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 30,\n",
+ " 'Date': '21/04/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 4, 21, 20, 32),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.842442, 52.058772]},\n",
+ " 'Weather_Conditions': 2},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b5d3'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 8,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '03/08/2012',\n",
- " 'Datetime': datetime.datetime(2012, 8, 3, 14, 0),\n",
- " 'Day_of_Week': 6,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 1,\n",
- " 'LSOA_of_Accident_Location': 'E01016817',\n",
- " 'Latitude': 52.059038,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 479480,\n",
- " 'Location_Northing_OSGR': 240710,\n",
- " 'Longitude': -0.842144,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 40,\n",
+ " '1st_Road_Number': 140,\n",
" 'Time': '14:00',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 9,\n",
- " 'Age_of_Vehicle': 3,\n",
- " 'Driver_Home_Area_Type': 3,\n",
- " 'Driver_IMD_Decile': 5,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 129,\n",
+ " 'Location_Northing_OSGR': 240710,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 479480,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 6,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 5,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 1,\n",
+ " 'Skidding_and_Overturning': 0,\n",
+ " 'Towing_and_Articulation': 0,\n",
+ " 'Vehicle_Location-Restricted_Lane': 0,\n",
" 'Engine_Capacity_(CC)': 1461,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 9,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 1,\n",
+ " 'Driver_Home_Area_Type': 3,\n",
" 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 2,\n",
+ " 'Age_of_Vehicle': 3,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 4,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
- " 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': 8,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 4,\n",
" 'Engine_Capacity_(CC)': 1398,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 8,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 1,\n",
- " 'Junction_Location': 1,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 2,\n",
- " 'Skidding_and_Overturning': 0,\n",
- " 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
- " 'Vehicle_Location-Restricted_Lane': 0,\n",
+ " 'Age_of_Vehicle': -1,\n",
" 'Vehicle_Manoeuvre': 3,\n",
- " 'Vehicle_Reference': 2,\n",
- " 'Vehicle_Type': 9,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b5d3'),\n",
- " 'loc': {'coordinates': [-0.842144, 52.059038], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 129,\n",
+ " 'Junction_Detail': 1,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016817',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.059038,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S008082',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
" '2nd_Road_Class': 5,\n",
- " '2nd_Road_Number': 154,\n",
- " 'Accident_Index': '201243S112022',\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 6,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.842144,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 40,\n",
+ " 'Date': '03/08/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 8, 3, 14, 0),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.842144, 52.059038]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b7c1'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 1,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '26/02/2012',\n",
- " 'Datetime': datetime.datetime(2012, 2, 26, 8, 40),\n",
- " 'Day_of_Week': 1,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 3,\n",
- " 'LSOA_of_Accident_Location': 'E01016812',\n",
- " 'Latitude': 52.052394,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 479430,\n",
- " 'Location_Northing_OSGR': 239970,\n",
- " 'Longitude': -0.843045,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 40,\n",
+ " '1st_Road_Number': 129,\n",
" 'Time': '08:40',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': 14,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 8,\n",
- " 'Engine_Capacity_(CC)': 1997,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 154,\n",
+ " 'Location_Northing_OSGR': 239970,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 479430,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 1,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 8,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 6,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 7,\n",
+ " 'Engine_Capacity_(CC)': 1997,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 4,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 8,\n",
- " 'Engine_Capacity_(CC)': -1,\n",
+ " 'Age_Band_of_Driver': 7,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 14,\n",
+ " 'Vehicle_Manoeuvre': 7,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 8,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 2,\n",
- " 'Propulsion_Code': -1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': -1,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 6,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 4,\n",
" 'Vehicle_Type': 1,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': -1,\n",
+ " 'Age_of_Vehicle': -1,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b7c1'),\n",
- " 'loc': {'coordinates': [-0.843045, 52.052394], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 155,\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016812',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.052394,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S112022',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
" '2nd_Road_Class': 5,\n",
- " '2nd_Road_Number': 8001,\n",
- " 'Accident_Index': '201243S009022',\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 6,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.843045,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 40,\n",
+ " 'Date': '26/02/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 2, 26, 8, 40),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.843045, 52.052394]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b5d5'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2},\n",
- " {'Age_Band_of_Casualty': 1,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 2,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 2,\n",
+ " 'Age_Band_of_Casualty': 1,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '02/02/2012',\n",
- " 'Datetime': datetime.datetime(2012, 2, 2, 8, 50),\n",
- " 'Day_of_Week': 5,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 2,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 1,\n",
- " 'LSOA_of_Accident_Location': 'E01016840',\n",
- " 'Latitude': 52.057715,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 480550,\n",
- " 'Location_Northing_OSGR': 240580,\n",
- " 'Longitude': -0.826571,\n",
- " 'Number_of_Casualties': 2,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 4,\n",
- " 'Road_Type': 1,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 60,\n",
+ " '1st_Road_Number': 155,\n",
" 'Time': '08:50',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': -1,\n",
- " 'Age_of_Vehicle': 12,\n",
- " 'Driver_Home_Area_Type': -1,\n",
- " 'Driver_IMD_Decile': -1,\n",
+ " 'Road_Type': 1,\n",
+ " '2nd_Road_Number': 8001,\n",
+ " 'Location_Northing_OSGR': 240580,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 480550,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 5,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': -1,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 1,\n",
+ " 'Skidding_and_Overturning': 0,\n",
+ " 'Towing_and_Articulation': 0,\n",
+ " 'Vehicle_Location-Restricted_Lane': 0,\n",
" 'Engine_Capacity_(CC)': 1796,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': -1,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 1,\n",
+ " 'Driver_Home_Area_Type': -1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
+ " 'Age_of_Vehicle': 12,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 2,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
- " 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 4,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 2,\n",
" 'Engine_Capacity_(CC)': 1086,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 6,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 3,\n",
- " 'Junction_Location': 1,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
- " 'Skidding_and_Overturning': 0,\n",
- " 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
- " 'Vehicle_Location-Restricted_Lane': 0,\n",
+ " 'Age_of_Vehicle': 4,\n",
" 'Vehicle_Manoeuvre': 3,\n",
- " 'Vehicle_Reference': 2,\n",
- " 'Vehicle_Type': 9,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b5d5'),\n",
- " 'loc': {'coordinates': [-0.826571, 52.057715], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 8001,\n",
- " '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1129,\n",
- " 'Accident_Index': '201243S059122',\n",
- " 'Accident_Severity': 2,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 7,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 1,\n",
- " 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 2,\n",
- " 'Casualty_Type': 9,\n",
- " 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
- " 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '15/12/2012',\n",
- " 'Datetime': datetime.datetime(2012, 12, 15, 19, 20),\n",
- " 'Day_of_Week': 7,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 3,\n",
+ " 'Junction_Detail': 1,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
" 'LSOA_of_Accident_Location': 'E01016840',\n",
- " 'Latitude': 52.056019,\n",
- " 'Light_Conditions': 4,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 480410,\n",
- " 'Location_Northing_OSGR': 240389,\n",
- " 'Longitude': -0.828658,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
" 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.057715,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 2,\n",
+ " 'Accident_Index': '201243S009022',\n",
" 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
- " 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 6,\n",
+ " '1st_Road_Class': 5,\n",
+ " '2nd_Road_Class': 5,\n",
+ " 'Accident_Severity': 3,\n",
" 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.826571,\n",
+ " 'Junction_Control': 4,\n",
" 'Speed_limit': 60,\n",
+ " 'Date': '02/02/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 2, 2, 8, 50),\n",
+ " 'Number_of_Casualties': 2,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.826571, 52.057715]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b6b7'),\n",
+ " 'Casualties': [{'Casualty_Severity': 2,\n",
+ " 'Casualty_Class': 2,\n",
+ " 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
+ " 'Pedestrian_Location': 0,\n",
+ " 'Car_Passenger': 1,\n",
+ " 'Age_Band_of_Casualty': 7,\n",
+ " 'Pedestrian_Road_Maintenance_Worker': 0,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
+ " 'Road_Surface_Conditions': 2,\n",
+ " '1st_Road_Number': 8001,\n",
" 'Time': '19:20',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 7,\n",
- " 'Engine_Capacity_(CC)': -1,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 1129,\n",
+ " 'Location_Northing_OSGR': 240389,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 480410,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 7,\n",
+ " 'Light_Conditions': 4,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 7,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 1,\n",
- " 'Propulsion_Code': -1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': -1,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 8,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 7,\n",
- " 'Engine_Capacity_(CC)': 1329,\n",
+ " 'Age_Band_of_Driver': 7,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': -1,\n",
+ " 'Age_of_Vehicle': -1,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 7,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 1,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1329,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 8,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': -1,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b6b7'),\n",
- " 'loc': {'coordinates': [-0.828658, 52.056019], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 6,\n",
- " '1st_Road_Number': 1129,\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016840',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.056019,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S059122',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
" '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1129,\n",
- " 'Accident_Index': '201243S150122',\n",
- " 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 3,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Accident_Severity': 2,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.828658,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 60,\n",
+ " 'Date': '15/12/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 12, 15, 19, 20),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.828658, 52.056019]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b84c'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 1,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 3,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '19/12/2012',\n",
- " 'Datetime': datetime.datetime(2012, 12, 19, 15, 25),\n",
- " 'Day_of_Week': 4,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 3,\n",
- " 'LSOA_of_Accident_Location': 'E01016840',\n",
- " 'Latitude': 52.056389,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 480275,\n",
- " 'Location_Northing_OSGR': 240428,\n",
- " 'Longitude': -0.830617,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 30,\n",
+ " '1st_Road_Number': 1129,\n",
" 'Time': '15:25',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 8,\n",
- " 'Age_of_Vehicle': 14,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 4,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 1129,\n",
+ " 'Location_Northing_OSGR': 240428,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 480275,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 4,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 4,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 1,\n",
+ " 'Skidding_and_Overturning': 0,\n",
+ " 'Towing_and_Articulation': 0,\n",
+ " 'Vehicle_Location-Restricted_Lane': 0,\n",
" 'Engine_Capacity_(CC)': 1998,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 8,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 2,\n",
- " 'Junction_Location': 1,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
+ " 'Age_of_Vehicle': 14,\n",
+ " 'Vehicle_Manoeuvre': 7,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 7,\n",
- " 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 3,\n",
- " 'Age_Band_of_Driver': 3,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 9,\n",
" 'Engine_Capacity_(CC)': -1,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 3,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 3,\n",
+ " 'Vehicle_Type': 1,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 4,\n",
- " 'Junction_Location': 1,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': -1,\n",
- " 'Sex_of_Driver': 1,\n",
- " 'Skidding_and_Overturning': 0,\n",
- " 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
- " 'Vehicle_Location-Restricted_Lane': 0,\n",
+ " 'Age_of_Vehicle': -1,\n",
" 'Vehicle_Manoeuvre': 18,\n",
- " 'Vehicle_Reference': 2,\n",
- " 'Vehicle_Type': 1,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 2,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b84c'),\n",
- " 'loc': {'coordinates': [-0.830617, 52.056389], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 155,\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016840',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.056389,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S150122',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 6,\n",
" '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1129,\n",
- " 'Accident_Index': '201243S037112',\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 5,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.830617,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 30,\n",
+ " 'Date': '19/12/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 12, 19, 15, 25),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.830617, 52.056389]},\n",
+ " 'Weather_Conditions': 2},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b656'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 5,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 1}],\n",
- " 'Date': '09/11/2012',\n",
- " 'Datetime': datetime.datetime(2012, 11, 9, 13, 55),\n",
- " 'Day_of_Week': 6,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 3,\n",
- " 'LSOA_of_Accident_Location': 'E01016840',\n",
- " 'Latitude': 52.055965,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 480840,\n",
- " 'Location_Northing_OSGR': 240390,\n",
- " 'Longitude': -0.822387,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 60,\n",
+ " '1st_Road_Number': 155,\n",
" 'Time': '13:55',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 5,\n",
- " 'Age_of_Vehicle': 16,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 1,\n",
- " 'Engine_Capacity_(CC)': 998,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 1129,\n",
+ " 'Location_Northing_OSGR': 240390,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 480840,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 6,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 1,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 8,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 1,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 998,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': 8,\n",
- " 'Age_of_Vehicle': 4,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 5,\n",
- " 'Engine_Capacity_(CC)': 1896,\n",
+ " 'Age_Band_of_Driver': 5,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 16,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 5,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 5,\n",
- " 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 10,\n",
+ " 'Engine_Capacity_(CC)': 1896,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 8,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
" 'Vehicle_Type': 19,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': 4,\n",
+ " 'Vehicle_Manoeuvre': 10,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b656'),\n",
- " 'loc': {'coordinates': [-0.822387, 52.055965], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 142,\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016840',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.055965,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S037112',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
" '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1129,\n",
- " 'Accident_Index': '201243S077012',\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 6,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.822387,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 60,\n",
+ " 'Date': '09/11/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 11, 9, 13, 55),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.822387, 52.055965]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b70e'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 3,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 0,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 9,\n",
- " 'Pedestrian_Movement': 7,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1}],\n",
- " 'Date': '18/01/2012',\n",
- " 'Datetime': datetime.datetime(2012, 1, 18, 13, 15),\n",
- " 'Day_of_Week': 4,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 3,\n",
- " 'LSOA_of_Accident_Location': 'E01016810',\n",
- " 'Latitude': 52.050642,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 480980,\n",
- " 'Location_Northing_OSGR': 239800,\n",
- " 'Longitude': -0.820485,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 1,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 7,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 60,\n",
+ " '1st_Road_Number': 142,\n",
" 'Time': '13:15',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': 5,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 8,\n",
- " 'Engine_Capacity_(CC)': 1686,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 1129,\n",
+ " 'Location_Northing_OSGR': 239800,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 1,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 480980,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 4,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 8,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 8,\n",
- " 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1686,\n",
" 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 7,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
" 'Vehicle_Type': 19,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': 5,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b70e'),\n",
- " 'loc': {'coordinates': [-0.820485, 52.050642], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 142,\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016810',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.050642,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S077012',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
" '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1129,\n",
- " 'Accident_Index': '201243S142032',\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 4,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.820485,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 60,\n",
+ " 'Date': '18/01/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 1, 18, 13, 15),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.820485, 52.050642]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b83d'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 2,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 4,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '02/03/2012',\n",
- " 'Datetime': datetime.datetime(2012, 3, 2, 19, 6),\n",
- " 'Day_of_Week': 6,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 3,\n",
- " 'LSOA_of_Accident_Location': 'E01016810',\n",
- " 'Latitude': 52.050728,\n",
- " 'Light_Conditions': 4,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 481000,\n",
- " 'Location_Northing_OSGR': 239810,\n",
- " 'Longitude': -0.820192,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 60,\n",
+ " '1st_Road_Number': 142,\n",
" 'Time': '19:06',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 8,\n",
- " 'Age_of_Vehicle': 3,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 7,\n",
- " 'Engine_Capacity_(CC)': 1968,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 1129,\n",
+ " 'Location_Northing_OSGR': 239810,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 481000,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 6,\n",
+ " 'Light_Conditions': 4,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 7,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 6,\n",
- " 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Engine_Capacity_(CC)': 1968,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 4,\n",
- " 'Age_of_Vehicle': 10,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 8,\n",
- " 'Engine_Capacity_(CC)': 49,\n",
+ " 'Age_Band_of_Driver': 8,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': 3,\n",
+ " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 8,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 8,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 49,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 4,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
" 'Vehicle_Type': 2,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 10,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b83d'),\n",
- " 'loc': {'coordinates': [-0.820192, 52.050728], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 142,\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016810',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.050728,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S142032',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
" '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1116,\n",
- " 'Accident_Index': '201243S104032',\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 5,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.820192,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 60,\n",
+ " 'Date': '02/03/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 3, 2, 19, 6),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.820192, 52.050728]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b792'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 5,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 2,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 1,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 3,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 3,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 1,\n",
+ " 'Age_Band_of_Casualty': 2,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 7,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 7,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '22/03/2012',\n",
- " 'Datetime': datetime.datetime(2012, 3, 22, 8, 29),\n",
- " 'Day_of_Week': 5,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 3,\n",
- " 'LSOA_of_Accident_Location': 'E01016811',\n",
- " 'Latitude': 52.047948,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 480340,\n",
- " 'Location_Northing_OSGR': 239490,\n",
- " 'Longitude': -0.829889,\n",
- " 'Number_of_Casualties': 3,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 60,\n",
+ " '1st_Road_Number': 142,\n",
" 'Time': '08:29',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 5,\n",
- " 'Age_of_Vehicle': 10,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 8,\n",
- " 'Engine_Capacity_(CC)': 1360,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 2,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 1116,\n",
+ " 'Location_Northing_OSGR': 239490,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 480340,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 5,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 8,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 1,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1360,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': 6,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 1,\n",
- " 'Engine_Capacity_(CC)': 1753,\n",
+ " 'Age_Band_of_Driver': 5,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 2,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 10,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 1,\n",
+ " 'Vehicle_Leaving_Carriageway': 7,\n",
" 'Junction_Location': 1,\n",
- " 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 7,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 10,\n",
+ " 'Engine_Capacity_(CC)': 1753,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 7,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 2,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': 6,\n",
+ " 'Vehicle_Manoeuvre': 10,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b792'),\n",
- " 'loc': {'coordinates': [-0.829889, 52.047948], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 142,\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016811',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.047948,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S104032',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
" '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1116,\n",
- " 'Accident_Index': '201243S007052',\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 6,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.829889,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 60,\n",
+ " 'Date': '22/03/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 3, 22, 8, 29),\n",
+ " 'Number_of_Casualties': 3,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.829889, 52.047948]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b5cf'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 3,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 2,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 2,\n",
+ " 'Age_Band_of_Casualty': 3,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 1}],\n",
- " 'Date': '03/05/2012',\n",
- " 'Datetime': datetime.datetime(2012, 5, 3, 13, 47),\n",
- " 'Day_of_Week': 5,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 3,\n",
- " 'LSOA_of_Accident_Location': 'E01016811',\n",
- " 'Latitude': 52.04786,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 480330,\n",
- " 'Location_Northing_OSGR': 239480,\n",
- " 'Longitude': -0.830038,\n",
- " 'Number_of_Casualties': 2,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 60,\n",
+ " '1st_Road_Number': 142,\n",
" 'Time': '13:47',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 4,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 15,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 7,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 1116,\n",
+ " 'Location_Northing_OSGR': 239480,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 480330,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 5,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 7,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 8,\n",
+ " 'Skidding_and_Overturning': 0,\n",
+ " 'Towing_and_Articulation': 0,\n",
+ " 'Vehicle_Location-Restricted_Lane': 0,\n",
" 'Engine_Capacity_(CC)': 1781,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 6,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 4,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 8,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
+ " 'Age_of_Vehicle': 15,\n",
+ " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 3,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 9,\n",
- " 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': 2,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 3,\n",
" 'Engine_Capacity_(CC)': 2143,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 7,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 19,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 1,\n",
- " 'Junction_Location': 1,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 1,\n",
- " 'Skidding_and_Overturning': 0,\n",
- " 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
- " 'Vehicle_Location-Restricted_Lane': 0,\n",
+ " 'Age_of_Vehicle': 2,\n",
" 'Vehicle_Manoeuvre': 18,\n",
- " 'Vehicle_Reference': 2,\n",
- " 'Vehicle_Type': 19,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b5cf'),\n",
- " 'loc': {'coordinates': [-0.830038, 52.04786], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 142,\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016811',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.04786,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S007052',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
" '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1116,\n",
- " 'Accident_Index': '201243S047102',\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 5,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.830038,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 60,\n",
+ " 'Date': '03/05/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 5, 3, 13, 47),\n",
+ " 'Number_of_Casualties': 2,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.830038, 52.04786]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b681'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': -1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': -1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 5,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 8,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 8,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '11/10/2012',\n",
- " 'Datetime': datetime.datetime(2012, 10, 11, 8, 20),\n",
- " 'Day_of_Week': 5,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 3,\n",
- " 'LSOA_of_Accident_Location': 'E01016816',\n",
- " 'Latitude': 52.048474,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 480430,\n",
- " 'Location_Northing_OSGR': 239550,\n",
- " 'Longitude': -0.828563,\n",
- " 'Number_of_Casualties': 2,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 60,\n",
+ " '1st_Road_Number': 142,\n",
" 'Time': '08:20',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 5,\n",
- " 'Age_of_Vehicle': 8,\n",
- " 'Driver_Home_Area_Type': -1,\n",
- " 'Driver_IMD_Decile': -1,\n",
- " 'Engine_Capacity_(CC)': 1587,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 1116,\n",
+ " 'Location_Northing_OSGR': 239550,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 480430,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 5,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': -1,\n",
+ " 'Vehicle_Leaving_Carriageway': 7,\n",
" 'Junction_Location': 1,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 7,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1587,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': 8,\n",
- " 'Age_of_Vehicle': 6,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 8,\n",
- " 'Engine_Capacity_(CC)': 1598,\n",
+ " 'Age_Band_of_Driver': 5,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 1,\n",
+ " 'Driver_Home_Area_Type': -1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
+ " 'Age_of_Vehicle': 8,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 8,\n",
+ " 'Vehicle_Leaving_Carriageway': 1,\n",
+ " 'Junction_Location': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 1,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 10,\n",
+ " 'Engine_Capacity_(CC)': 1598,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 8,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 6,\n",
+ " 'Vehicle_Manoeuvre': 10,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b681'),\n",
- " 'loc': {'coordinates': [-0.828563, 52.048474], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 142,\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016816',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.048474,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S047102',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
" '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1116,\n",
- " 'Accident_Index': '201243S138122',\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 8,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.828563,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 60,\n",
+ " 'Date': '11/10/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 10, 11, 8, 20),\n",
+ " 'Number_of_Casualties': 2,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.828563, 52.048474]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b837'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 8,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2},\n",
- " {'Age_Band_of_Casualty': 2,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 2,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 2,\n",
+ " 'Age_Band_of_Casualty': 2,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '27/12/2012',\n",
- " 'Datetime': datetime.datetime(2012, 12, 27, 15, 10),\n",
- " 'Day_of_Week': 5,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 3,\n",
- " 'LSOA_of_Accident_Location': 'E01016811',\n",
- " 'Latitude': 52.047965,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 480346,\n",
- " 'Location_Northing_OSGR': 239492,\n",
- " 'Longitude': -0.829801,\n",
- " 'Number_of_Casualties': 2,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 60,\n",
+ " '1st_Road_Number': 142,\n",
" 'Time': '15:10',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 5,\n",
- " 'Age_of_Vehicle': 12,\n",
- " 'Driver_Home_Area_Type': 3,\n",
- " 'Driver_IMD_Decile': 4,\n",
- " 'Engine_Capacity_(CC)': 1598,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 5,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 1116,\n",
+ " 'Location_Northing_OSGR': 239492,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 480346,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 5,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 4,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 1,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 1,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1598,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': 8,\n",
- " 'Age_of_Vehicle': 10,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 8,\n",
- " 'Engine_Capacity_(CC)': 1871,\n",
+ " 'Age_Band_of_Driver': 5,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 5,\n",
+ " 'Driver_Home_Area_Type': 3,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 12,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 8,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 1,\n",
- " 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 3,\n",
+ " 'Engine_Capacity_(CC)': 1871,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 8,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 5,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': 10,\n",
+ " 'Vehicle_Manoeuvre': 3,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b837'),\n",
- " 'loc': {'coordinates': [-0.829801, 52.047965], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 17,\n",
- " '2nd_Road_Class': -1,\n",
- " '2nd_Road_Number': 0,\n",
- " 'Accident_Index': '201243N231012',\n",
- " 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 4,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
- " 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 3,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
- " 'Casualty_Type': 9,\n",
- " 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
- " 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1}],\n",
- " 'Date': '21/01/2012',\n",
- " 'Datetime': datetime.datetime(2012, 1, 21, 3, 45),\n",
- " 'Day_of_Week': 7,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': -1,\n",
- " 'Junction_Detail': 0,\n",
- " 'LSOA_of_Accident_Location': 'E01017671',\n",
- " 'Latitude': 52.018693,\n",
- " 'Light_Conditions': 6,\n",
- " 'Local_Authority_(District)': 476,\n",
- " 'Local_Authority_(Highway)': 'E10000002',\n",
- " 'Location_Easting_OSGR': 480000,\n",
- " 'Location_Northing_OSGR': 236230,\n",
- " 'Longitude': -0.835608,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 1,\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016811',\n",
" 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.047965,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S138122',\n",
" 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
- " 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 6,\n",
+ " '1st_Road_Class': 5,\n",
+ " '2nd_Road_Class': 6,\n",
+ " 'Accident_Severity': 3,\n",
" 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.829801,\n",
+ " 'Junction_Control': 4,\n",
" 'Speed_limit': 60,\n",
+ " 'Date': '27/12/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 12, 27, 15, 10),\n",
+ " 'Number_of_Casualties': 2,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.829801, 52.047965]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2aa96'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
+ " 'Casualty_Class': 1,\n",
+ " 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 3,\n",
+ " 'Pedestrian_Location': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 4,\n",
+ " 'Pedestrian_Road_Maintenance_Worker': 0,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
+ " 'Road_Surface_Conditions': 2,\n",
+ " '1st_Road_Number': 17,\n",
" 'Time': '03:45',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 4,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': 3,\n",
- " 'Driver_IMD_Decile': 9,\n",
- " 'Engine_Capacity_(CC)': -1,\n",
- " 'Hit_Object_in_Carriageway': 10,\n",
- " 'Hit_Object_off_Carriageway': 1,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 0,\n",
+ " 'Location_Northing_OSGR': 236230,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 1,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 480000,\n",
+ " 'Local_Authority_(Highway)': 'E10000002',\n",
+ " 'Day_of_Week': 7,\n",
+ " 'Light_Conditions': 6,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 1,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': -1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 2,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 1,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 17,\n",
+ " 'Engine_Capacity_(CC)': -1,\n",
" 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 4,\n",
+ " 'Hit_Object_in_Carriageway': 10,\n",
+ " 'Hit_Object_off_Carriageway': 1,\n",
+ " '1st_Point_of_Impact': 1,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 3,\n",
+ " 'Propulsion_Code': -1,\n",
+ " 'Age_of_Vehicle': -1,\n",
+ " 'Vehicle_Manoeuvre': 17,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2aa96'),\n",
- " 'loc': {'coordinates': [-0.835608, 52.018693], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 144,\n",
- " '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1158,\n",
- " 'Accident_Index': '201243S132102',\n",
+ " 'Junction_Detail': 0,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
+ " 'LSOA_of_Accident_Location': 'E01017671',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.018693,\n",
+ " 'Local_Authority_(District)': 476,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243N231012',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
+ " '2nd_Road_Class': -1,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 7,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.835608,\n",
+ " 'Junction_Control': -1,\n",
+ " 'Speed_limit': 60,\n",
+ " 'Date': '21/01/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 1, 21, 3, 45),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.835608, 52.018693]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b823'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 3,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 3,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 7,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '29/10/2012',\n",
- " 'Datetime': datetime.datetime(2012, 10, 29, 13, 56),\n",
- " 'Day_of_Week': 2,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 3,\n",
- " 'LSOA_of_Accident_Location': 'E01016769',\n",
- " 'Latitude': 52.065047,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 487340,\n",
- " 'Location_Northing_OSGR': 241510,\n",
- " 'Longitude': -0.727324,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 60,\n",
+ " '1st_Road_Number': 144,\n",
" 'Time': '13:56',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 4,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': -1,\n",
- " 'Driver_IMD_Decile': -1,\n",
- " 'Engine_Capacity_(CC)': -1,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 1,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 1158,\n",
+ " 'Location_Northing_OSGR': 241510,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 487340,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 2,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': -1,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 8,\n",
- " 'Propulsion_Code': -1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Engine_Capacity_(CC)': -1,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': 2,\n",
- " 'Driver_Home_Area_Type': 3,\n",
- " 'Driver_IMD_Decile': 8,\n",
- " 'Engine_Capacity_(CC)': 4163,\n",
+ " 'Age_Band_of_Driver': 6,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 4,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 1,\n",
+ " 'Driver_Home_Area_Type': -1,\n",
+ " 'Propulsion_Code': -1,\n",
+ " 'Age_of_Vehicle': -1,\n",
+ " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 8,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 1,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 4163,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 7,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 1,\n",
+ " 'Driver_Home_Area_Type': 3,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 2,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b823'),\n",
- " 'loc': {'coordinates': [-0.727324, 52.065047], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 144,\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016769',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.065047,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S132102',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
" '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1158,\n",
- " 'Accident_Index': '201243S091112',\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 8,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.727324,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 60,\n",
+ " 'Date': '29/10/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 10, 29, 13, 56),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.727324, 52.065047]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b756'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 8,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 8,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 1,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 3,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 3,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 1,\n",
+ " 'Age_Band_of_Casualty': 8,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 4,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 4,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '22/11/2012',\n",
- " 'Datetime': datetime.datetime(2012, 11, 22, 17, 9),\n",
- " 'Day_of_Week': 5,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 3,\n",
- " 'LSOA_of_Accident_Location': 'E01016769',\n",
- " 'Latitude': 52.065552,\n",
- " 'Light_Conditions': 4,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 487560,\n",
- " 'Location_Northing_OSGR': 241570,\n",
- " 'Longitude': -0.7241,\n",
- " 'Number_of_Casualties': 3,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 60,\n",
+ " '1st_Road_Number': 144,\n",
" 'Time': '17:09',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 3,\n",
- " 'Age_Band_of_Driver': 8,\n",
- " 'Age_of_Vehicle': 5,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 10,\n",
- " 'Engine_Capacity_(CC)': 1598,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 1,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 1158,\n",
+ " 'Location_Northing_OSGR': 241570,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 487560,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 5,\n",
+ " 'Light_Conditions': 4,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 10,\n",
+ " 'Vehicle_Leaving_Carriageway': 1,\n",
" 'Junction_Location': 6,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 1,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Engine_Capacity_(CC)': 1598,\n",
" 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 8,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 1,\n",
+ " '1st_Point_of_Impact': 3,\n",
" 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 4,\n",
- " 'Age_of_Vehicle': -1,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
" 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 8,\n",
- " 'Engine_Capacity_(CC)': 1598,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 2,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 5,\n",
+ " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 8,\n",
+ " 'Vehicle_Leaving_Carriageway': 7,\n",
" 'Junction_Location': 1,\n",
- " 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 1,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 7,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1598,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 4,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 2,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': -1,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 4,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b756'),\n",
- " 'loc': {'coordinates': [-0.7241, 52.065552], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 144,\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016769',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.065552,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S091112',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
" '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1158,\n",
- " 'Accident_Index': '201243S031122',\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 9,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.7241,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 60,\n",
+ " 'Date': '22/11/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 11, 22, 17, 9),\n",
+ " 'Number_of_Casualties': 3,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.7241, 52.065552]},\n",
+ " 'Weather_Conditions': 4},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b634'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 3,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 3,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 9,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2},\n",
- " {'Age_Band_of_Casualty': 2,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 1,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 1,\n",
+ " 'Age_Band_of_Casualty': 2,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '07/12/2012',\n",
- " 'Datetime': datetime.datetime(2012, 12, 7, 18, 40),\n",
- " 'Day_of_Week': 6,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 3,\n",
- " 'LSOA_of_Accident_Location': 'E01016763',\n",
- " 'Latitude': 52.065614,\n",
- " 'Light_Conditions': 4,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 487564,\n",
- " 'Location_Northing_OSGR': 241577,\n",
- " 'Longitude': -0.72404,\n",
- " 'Number_of_Casualties': 2,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 60,\n",
+ " '1st_Road_Number': 144,\n",
" 'Time': '18:40',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 8,\n",
- " 'Age_of_Vehicle': 2,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 6,\n",
- " 'Engine_Capacity_(CC)': 1198,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 1158,\n",
+ " 'Location_Northing_OSGR': 241577,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 487564,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 6,\n",
+ " 'Light_Conditions': 4,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 6,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 8,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Engine_Capacity_(CC)': 1198,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 9,\n",
- " 'Age_of_Vehicle': 4,\n",
- " 'Driver_Home_Area_Type': 3,\n",
- " 'Driver_IMD_Decile': 9,\n",
- " 'Engine_Capacity_(CC)': 1296,\n",
+ " 'Age_Band_of_Driver': 8,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 8,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
+ " 'Age_of_Vehicle': 2,\n",
+ " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 8,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1296,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 9,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 3,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 4,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b634'),\n",
- " 'loc': {'coordinates': [-0.72404, 52.065614], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 144,\n",
- " '2nd_Road_Class': 5,\n",
- " '2nd_Road_Number': 9010,\n",
- " 'Accident_Index': '201243S070042',\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016763',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.065614,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S031122',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
+ " '2nd_Road_Class': 6,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 8,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.72404,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 60,\n",
+ " 'Date': '07/12/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 12, 7, 18, 40),\n",
+ " 'Number_of_Casualties': 2,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.72404, 52.065614]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b6eb'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 1,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 8,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '20/04/2012',\n",
- " 'Datetime': datetime.datetime(2012, 4, 20, 11, 38),\n",
- " 'Day_of_Week': 6,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 1,\n",
- " 'LSOA_of_Accident_Location': 'E01016770',\n",
- " 'Latitude': 52.062505,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 486930,\n",
- " 'Location_Northing_OSGR': 241220,\n",
- " 'Longitude': -0.733377,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 1,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 60,\n",
+ " '1st_Road_Number': 144,\n",
" 'Time': '11:38',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 3,\n",
- " 'Age_Band_of_Driver': 5,\n",
- " 'Age_of_Vehicle': 4,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 9,\n",
- " 'Engine_Capacity_(CC)': 1998,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 1,\n",
+ " '2nd_Road_Number': 9010,\n",
+ " 'Location_Northing_OSGR': 241220,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 486930,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 6,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 4,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1998,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 8,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 10,\n",
- " 'Engine_Capacity_(CC)': -1,\n",
+ " 'Age_Band_of_Driver': 5,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 3,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 4,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 10,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 8,\n",
- " 'Propulsion_Code': -1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': -1,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 8,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
" 'Vehicle_Type': 1,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': -1,\n",
+ " 'Age_of_Vehicle': -1,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b6eb'),\n",
- " 'loc': {'coordinates': [-0.733377, 52.062505], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 144,\n",
+ " 'Junction_Detail': 1,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016770',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.062505,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S070042',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
" '2nd_Road_Class': 5,\n",
- " '2nd_Road_Number': 160,\n",
- " 'Accident_Index': '201243S060082',\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 6,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.733377,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 60,\n",
+ " 'Date': '20/04/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 4, 20, 11, 38),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.733377, 52.062505]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b6bc'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 2,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 1,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 2,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '19/08/2012',\n",
- " 'Datetime': datetime.datetime(2012, 8, 19, 9, 45),\n",
- " 'Day_of_Week': 1,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 1,\n",
- " 'LSOA_of_Accident_Location': 'E01016763',\n",
- " 'Latitude': 52.062781,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 486890,\n",
- " 'Location_Northing_OSGR': 241250,\n",
- " 'Longitude': -0.733953,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 60,\n",
+ " '1st_Road_Number': 144,\n",
" 'Time': '09:45',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 9,\n",
- " 'Age_of_Vehicle': 2,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 9,\n",
- " 'Engine_Capacity_(CC)': 2993,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 160,\n",
+ " 'Location_Northing_OSGR': 241250,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 486890,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 1,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 4,\n",
- " 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 2993,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 4,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': 2,\n",
- " 'Driver_IMD_Decile': 9,\n",
- " 'Engine_Capacity_(CC)': -1,\n",
+ " 'Age_Band_of_Driver': 9,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': 2,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 8,\n",
- " 'Propulsion_Code': -1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': -1,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 6,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 4,\n",
" 'Vehicle_Type': 1,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 2,\n",
+ " 'Propulsion_Code': -1,\n",
+ " 'Age_of_Vehicle': -1,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b6bc'),\n",
- " 'loc': {'coordinates': [-0.733953, 52.062781], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 144,\n",
+ " 'Junction_Detail': 1,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016763',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.062781,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S060082',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
" '2nd_Road_Class': 5,\n",
- " '2nd_Road_Number': 160,\n",
- " 'Accident_Index': '201243S009102',\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 8,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.733953,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 60,\n",
+ " 'Date': '19/08/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 8, 19, 9, 45),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.733953, 52.062781]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b5d9'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 4,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 8,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '02/10/2012',\n",
- " 'Datetime': datetime.datetime(2012, 10, 2, 20, 20),\n",
- " 'Day_of_Week': 3,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 2,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 1,\n",
- " 'LSOA_of_Accident_Location': 'E01016763',\n",
- " 'Latitude': 52.062866,\n",
- " 'Light_Conditions': 4,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 486920,\n",
- " 'Location_Northing_OSGR': 241260,\n",
- " 'Longitude': -0.733513,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 1,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 60,\n",
+ " '1st_Road_Number': 144,\n",
" 'Time': '20:20',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 3,\n",
- " 'Age_Band_of_Driver': -1,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': -1,\n",
- " 'Driver_IMD_Decile': -1,\n",
- " 'Engine_Capacity_(CC)': 2987,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 1,\n",
+ " '2nd_Road_Number': 160,\n",
+ " 'Location_Northing_OSGR': 241260,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 486920,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 3,\n",
+ " 'Light_Conditions': 4,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': -1,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 8,\n",
- " 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 2987,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 4,\n",
- " 'Age_Band_of_Driver': 8,\n",
- " 'Age_of_Vehicle': 2,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 9,\n",
- " 'Engine_Capacity_(CC)': 1255,\n",
+ " 'Age_Band_of_Driver': -1,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 3,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': -1,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': -1,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 8,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1255,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 8,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 4,\n",
" 'Vehicle_Type': 4,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 2,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 2,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b5d9'),\n",
- " 'loc': {'coordinates': [-0.733513, 52.062866], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 6,\n",
- " '1st_Road_Number': 1158,\n",
- " '2nd_Road_Class': -1,\n",
- " '2nd_Road_Number': 0,\n",
- " 'Accident_Index': '201243S055022',\n",
+ " 'Junction_Detail': 1,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016763',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.062866,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 2,\n",
+ " 'Accident_Index': '201243S009102',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
+ " '2nd_Road_Class': 5,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 4,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.733513,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 60,\n",
+ " 'Date': '02/10/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 10, 2, 20, 20),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.733513, 52.062866]},\n",
+ " 'Weather_Conditions': 2},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b69e'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 3,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 19,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 3,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 4,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2},\n",
- " {'Age_Band_of_Casualty': 6,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 3,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 19,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 3,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '17/02/2012',\n",
- " 'Datetime': datetime.datetime(2012, 2, 17, 13, 30),\n",
- " 'Day_of_Week': 6,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 2,\n",
- " 'Junction_Control': -1,\n",
- " 'Junction_Detail': 0,\n",
- " 'LSOA_of_Accident_Location': 'E01016763',\n",
- " 'Latitude': 52.062738,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 486590,\n",
- " 'Location_Northing_OSGR': 241240,\n",
- " 'Longitude': -0.73833,\n",
- " 'Number_of_Casualties': 2,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 30,\n",
+ " '1st_Road_Number': 1158,\n",
" 'Time': '13:30',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': -1,\n",
- " 'Age_of_Vehicle': 9,\n",
- " 'Driver_Home_Area_Type': 3,\n",
- " 'Driver_IMD_Decile': 9,\n",
- " 'Engine_Capacity_(CC)': 2295,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 0,\n",
+ " 'Location_Northing_OSGR': 241240,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 486590,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 6,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 2295,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': 4,\n",
- " 'Age_of_Vehicle': 2,\n",
- " 'Driver_Home_Area_Type': 3,\n",
- " 'Driver_IMD_Decile': 6,\n",
- " 'Engine_Capacity_(CC)': 2198,\n",
+ " 'Age_Band_of_Driver': -1,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 3,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 9,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 6,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 2,\n",
+ " 'Engine_Capacity_(CC)': 2198,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 4,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
" 'Vehicle_Type': 19,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 3,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': 2,\n",
+ " 'Vehicle_Manoeuvre': 2,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b69e'),\n",
- " 'loc': {'coordinates': [-0.73833, 52.062738], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 160,\n",
- " '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1158,\n",
- " 'Accident_Index': '201243S026062',\n",
+ " 'Junction_Detail': 0,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016763',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.062738,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 2,\n",
+ " 'Accident_Index': '201243S055022',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 6,\n",
+ " '2nd_Road_Class': -1,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 10,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.73833,\n",
+ " 'Junction_Control': -1,\n",
+ " 'Speed_limit': 30,\n",
+ " 'Date': '17/02/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 2, 17, 13, 30),\n",
+ " 'Number_of_Casualties': 2,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.73833, 52.062738]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b619'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 10,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 6,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '08/06/2012',\n",
- " 'Datetime': datetime.datetime(2012, 6, 8, 17, 50),\n",
- " 'Day_of_Week': 6,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 3,\n",
- " 'LSOA_of_Accident_Location': 'E01016763',\n",
- " 'Latitude': 52.065058,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 486700,\n",
- " 'Location_Northing_OSGR': 241500,\n",
- " 'Longitude': -0.73666,\n",
- " 'Number_of_Casualties': 2,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 60,\n",
+ " '1st_Road_Number': 160,\n",
" 'Time': '17:50',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 3,\n",
- " 'Age_Band_of_Driver': 10,\n",
- " 'Age_of_Vehicle': 8,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 4,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 1158,\n",
+ " 'Location_Northing_OSGR': 241500,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 486700,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 6,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 4,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 6,\n",
+ " 'Skidding_and_Overturning': 0,\n",
+ " 'Towing_and_Articulation': 0,\n",
+ " 'Vehicle_Location-Restricted_Lane': 0,\n",
" 'Engine_Capacity_(CC)': 1997,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 10,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 3,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 2,\n",
- " 'Junction_Location': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 2,\n",
+ " 'Age_of_Vehicle': 8,\n",
+ " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 10,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 9,\n",
- " 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 12,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 10,\n",
" 'Engine_Capacity_(CC)': 1596,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 6,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 1,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
- " 'Skidding_and_Overturning': 0,\n",
- " 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
- " 'Vehicle_Location-Restricted_Lane': 0,\n",
+ " 'Age_of_Vehicle': 12,\n",
" 'Vehicle_Manoeuvre': 18,\n",
- " 'Vehicle_Reference': 2,\n",
- " 'Vehicle_Type': 9,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b619'),\n",
- " 'loc': {'coordinates': [-0.73666, 52.065058], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 160,\n",
- " '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1158,\n",
- " 'Accident_Index': '201243S118102',\n",
- " 'Accident_Severity': 2,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 9,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
- " 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': -1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 2,\n",
- " 'Casualty_Type': 9,\n",
- " 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
- " 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '24/10/2012',\n",
- " 'Datetime': datetime.datetime(2012, 10, 24, 6, 50),\n",
- " 'Day_of_Week': 4,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
" 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
" 'LSOA_of_Accident_Location': 'E01016763',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
" 'Latitude': 52.065058,\n",
- " 'Light_Conditions': 4,\n",
" 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 486700,\n",
- " 'Location_Northing_OSGR': 241500,\n",
- " 'Longitude': -0.73666,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S026062',\n",
" 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
- " 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 6,\n",
+ " '1st_Road_Class': 5,\n",
+ " '2nd_Road_Class': 6,\n",
+ " 'Accident_Severity': 3,\n",
" 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.73666,\n",
+ " 'Junction_Control': 4,\n",
" 'Speed_limit': 60,\n",
+ " 'Date': '08/06/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 6, 8, 17, 50),\n",
+ " 'Number_of_Casualties': 2,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.73666, 52.065058]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b7e3'),\n",
+ " 'Casualties': [{'Casualty_Severity': 2,\n",
+ " 'Casualty_Class': 1,\n",
+ " 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': -1,\n",
+ " 'Pedestrian_Location': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 9,\n",
+ " 'Pedestrian_Road_Maintenance_Worker': 0,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
+ " 'Road_Surface_Conditions': 2,\n",
+ " '1st_Road_Number': 160,\n",
" 'Time': '06:50',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 5,\n",
- " 'Age_of_Vehicle': 12,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 10,\n",
- " 'Engine_Capacity_(CC)': 1390,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 2,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 1158,\n",
+ " 'Location_Northing_OSGR': 241500,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 486700,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 4,\n",
+ " 'Light_Conditions': 4,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 10,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 8,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Engine_Capacity_(CC)': 1390,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 9,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': -1,\n",
- " 'Driver_IMD_Decile': -1,\n",
- " 'Engine_Capacity_(CC)': 998,\n",
+ " 'Age_Band_of_Driver': 5,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 2,\n",
- " 'Junction_Location': 1,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
+ " 'Age_of_Vehicle': 12,\n",
+ " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': -1,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 998,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 9,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 2,\n",
+ " 'Driver_Home_Area_Type': -1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': -1,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 2,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b7e3'),\n",
- " 'loc': {'coordinates': [-0.73666, 52.065058], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 160,\n",
- " '2nd_Road_Class': -1,\n",
- " '2nd_Road_Number': 0,\n",
- " 'Accident_Index': '201243S145112',\n",
- " 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 7,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016763',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.065058,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S118102',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
+ " '2nd_Road_Class': 6,\n",
+ " 'Accident_Severity': 2,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.73666,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 60,\n",
+ " 'Date': '24/10/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 10, 24, 6, 50),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.73666, 52.065058]},\n",
+ " 'Weather_Conditions': 2},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b846'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': -1,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': -1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 7,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 5,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 5,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2},\n",
- " {'Age_Band_of_Casualty': 8,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 1,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 4,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 4,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 1,\n",
+ " 'Age_Band_of_Casualty': 8,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2},\n",
- " {'Age_Band_of_Casualty': 7,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 3,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 3,\n",
+ " 'Casualty_Reference': 3,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 7,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 3},\n",
- " {'Age_Band_of_Casualty': 7,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 1,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': -1,\n",
- " 'Casualty_Reference': 5,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 3,\n",
+ " 'Casualty_Reference': 5,\n",
+ " 'Casualty_Home_Area_Type': -1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 1,\n",
+ " 'Age_Band_of_Casualty': 7,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 3}],\n",
- " 'Date': '29/11/2012',\n",
- " 'Datetime': datetime.datetime(2012, 11, 29, 18, 0),\n",
- " 'Day_of_Week': 5,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': -1,\n",
- " 'Junction_Detail': 0,\n",
- " 'LSOA_of_Accident_Location': 'E01016763',\n",
- " 'Latitude': 52.0657,\n",
- " 'Light_Conditions': 4,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 486620,\n",
- " 'Location_Northing_OSGR': 241570,\n",
- " 'Longitude': -0.737809,\n",
- " 'Number_of_Casualties': 5,\n",
- " 'Number_of_Vehicles': 3,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 60,\n",
+ " '1st_Road_Number': 160,\n",
" 'Time': '18:00',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': 11,\n",
- " 'Driver_Home_Area_Type': -1,\n",
- " 'Driver_IMD_Decile': -1,\n",
- " 'Engine_Capacity_(CC)': 1896,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 0,\n",
+ " 'Location_Northing_OSGR': 241570,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 3,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 486620,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 5,\n",
+ " 'Light_Conditions': 4,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': -1,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1896,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': 5,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 9,\n",
- " 'Engine_Capacity_(CC)': 1390,\n",
+ " 'Age_Band_of_Driver': 7,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': -1,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': 11,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 3,\n",
- " 'Vehicle_Reference': 2,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': 9,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 3,\n",
" 'Engine_Capacity_(CC)': 1390,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 5,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 0,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
+ " 'Age_of_Vehicle': -1,\n",
+ " 'Vehicle_Manoeuvre': 3,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 3,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 0,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 3,\n",
+ " 'Engine_Capacity_(CC)': 1390,\n",
" 'Vehicle_Reference': 3,\n",
+ " 'Age_Band_of_Driver': 7,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 9,\n",
+ " 'Vehicle_Manoeuvre': 3,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b846'),\n",
- " 'loc': {'coordinates': [-0.737809, 52.0657], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 3,\n",
- " '1st_Road_Number': 422,\n",
+ " 'Junction_Detail': 0,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016763',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.0657,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S145112',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
" '2nd_Road_Class': -1,\n",
- " '2nd_Road_Number': 0,\n",
- " 'Accident_Index': '201243S095032',\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 4,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.737809,\n",
+ " 'Junction_Control': -1,\n",
+ " 'Speed_limit': 60,\n",
+ " 'Date': '29/11/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 11, 29, 18, 0),\n",
+ " 'Number_of_Casualties': 5,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.737809, 52.0657]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b76b'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 4,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1}],\n",
- " 'Date': '20/03/2012',\n",
- " 'Datetime': datetime.datetime(2012, 3, 20, 8, 45),\n",
- " 'Day_of_Week': 3,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': -1,\n",
- " 'Junction_Detail': 0,\n",
- " 'LSOA_of_Accident_Location': 'E01016766',\n",
- " 'Latitude': 52.064257,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 486070,\n",
- " 'Location_Northing_OSGR': 241400,\n",
- " 'Longitude': -0.745873,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 1,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 3,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 70,\n",
+ " '1st_Road_Number': 422,\n",
" 'Time': '08:45',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 4,\n",
- " 'Age_of_Vehicle': 11,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 8,\n",
- " 'Engine_Capacity_(CC)': 1149,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 2,\n",
- " 'Journey_Purpose_of_Driver': 2,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': 0,\n",
+ " 'Location_Northing_OSGR': 241400,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 1,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 486070,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 3,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 8,\n",
+ " 'Vehicle_Leaving_Carriageway': 1,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 1,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1149,\n",
" 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 4,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 2,\n",
+ " '1st_Point_of_Impact': 1,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 2,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 11,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b76b'),\n",
- " 'loc': {'coordinates': [-0.745873, 52.064257], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 3,\n",
- " '1st_Road_Number': 422,\n",
- " '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1145,\n",
- " 'Accident_Index': '201243S094032',\n",
+ " 'Junction_Detail': 0,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016766',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.064257,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S095032',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 3,\n",
+ " '2nd_Road_Class': -1,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 7,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.745873,\n",
+ " 'Junction_Control': -1,\n",
+ " 'Speed_limit': 70,\n",
+ " 'Date': '20/03/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 3, 20, 8, 45),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.745873, 52.064257]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b761'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 3,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 7,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 3}],\n",
- " 'Date': '20/03/2012',\n",
- " 'Datetime': datetime.datetime(2012, 3, 20, 9, 40),\n",
- " 'Day_of_Week': 3,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 1,\n",
- " 'LSOA_of_Accident_Location': 'E01016764',\n",
- " 'Latitude': 52.063829,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 485930,\n",
- " 'Location_Northing_OSGR': 241350,\n",
- " 'Longitude': -0.747928,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 3,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 1,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 70,\n",
+ " '1st_Road_Number': 422,\n",
" 'Time': '09:40',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 0,\n",
- " 'Age_Band_of_Driver': -1,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': -1,\n",
- " 'Driver_IMD_Decile': -1,\n",
- " 'Engine_Capacity_(CC)': -1,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 1,\n",
+ " '2nd_Road_Number': 1145,\n",
+ " 'Location_Northing_OSGR': 241350,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 3,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 485930,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 3,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': -1,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 3,\n",
- " 'Propulsion_Code': -1,\n",
- " 'Sex_of_Driver': 3,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 1,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': -1,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 21,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': -1},\n",
- " {'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': 11,\n",
- " 'Driver_Home_Area_Type': 2,\n",
- " 'Driver_IMD_Decile': 10,\n",
- " 'Engine_Capacity_(CC)': 1718,\n",
+ " 'Age_Band_of_Driver': -1,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 1,\n",
+ " '1st_Point_of_Impact': 0,\n",
+ " 'Vehicle_Type': 21,\n",
+ " 'Sex_of_Driver': 3,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': -1,\n",
+ " 'Propulsion_Code': -1,\n",
+ " 'Age_of_Vehicle': -1,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': -1},\n",
+ " {'Driver_IMD_Decile': 10,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 3,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1718,\n",
" 'Vehicle_Reference': 2,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 1,\n",
" 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 7,\n",
- " 'Engine_Capacity_(CC)': 1995,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 3,\n",
- " 'Propulsion_Code': 2,\n",
+ " '1st_Point_of_Impact': 2,\n",
+ " 'Vehicle_Type': 9,\n",
" 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 1,\n",
+ " 'Driver_Home_Area_Type': 2,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 11,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 7,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 3,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1995,\n",
" 'Vehicle_Reference': 3,\n",
+ " 'Age_Band_of_Driver': 7,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': -1,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b761'),\n",
- " 'loc': {'coordinates': [-0.747928, 52.063829], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 158,\n",
- " '2nd_Road_Class': -1,\n",
- " '2nd_Road_Number': 0,\n",
- " 'Accident_Index': '201243S143032',\n",
+ " 'Junction_Detail': 1,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016764',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.063829,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S094032',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 3,\n",
+ " '2nd_Road_Class': 6,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 7,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 6,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.747928,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 70,\n",
+ " 'Date': '20/03/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 3, 20, 9, 40),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.747928, 52.063829]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b83f'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1}],\n",
- " 'Date': '08/03/2012',\n",
- " 'Datetime': datetime.datetime(2012, 3, 8, 20, 30),\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
+ " 'Road_Surface_Conditions': 1,\n",
+ " '1st_Road_Number': 158,\n",
+ " 'Time': '20:30',\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 0,\n",
+ " 'Location_Northing_OSGR': 241270,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 1,\n",
+ " 'Carriageway_Hazards': 7,\n",
+ " 'Location_Easting_OSGR': 485180,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
" 'Day_of_Week': 5,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 2,\n",
- " 'Junction_Control': -1,\n",
- " 'Junction_Detail': 0,\n",
- " 'LSOA_of_Accident_Location': 'E01016804',\n",
- " 'Latitude': 52.063226,\n",
" 'Light_Conditions': 5,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 485180,\n",
- " 'Location_Northing_OSGR': 241270,\n",
- " 'Longitude': -0.758885,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 1,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
- " 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 60,\n",
- " 'Time': '20:30',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 1,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 5,\n",
- " 'Engine_Capacity_(CC)': 1968,\n",
- " 'Hit_Object_in_Carriageway': 12,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 5,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1968,\n",
" 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 6,\n",
+ " 'Hit_Object_in_Carriageway': 12,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': 1,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b83f'),\n",
- " 'loc': {'coordinates': [-0.758885, 52.063226], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 3,\n",
- " '1st_Road_Number': 422,\n",
- " '2nd_Road_Class': 5,\n",
- " '2nd_Road_Number': 158,\n",
- " 'Accident_Index': '201243S106042',\n",
+ " 'Junction_Detail': 0,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016804',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.063226,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 2,\n",
+ " 'Accident_Index': '201243S143032',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
+ " '2nd_Road_Class': -1,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 5,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.758885,\n",
+ " 'Junction_Control': -1,\n",
+ " 'Speed_limit': 60,\n",
+ " 'Date': '08/03/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 3, 8, 20, 30),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.758885, 52.063226]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b79f'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 5,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 1}],\n",
- " 'Date': '29/04/2012',\n",
- " 'Datetime': datetime.datetime(2012, 4, 29, 20, 5),\n",
- " 'Day_of_Week': 1,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 1,\n",
- " 'LSOA_of_Accident_Location': 'E01016804',\n",
- " 'Latitude': 52.061514,\n",
- " 'Light_Conditions': 7,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 485210,\n",
- " 'Location_Northing_OSGR': 241080,\n",
- " 'Longitude': -0.758495,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 1,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 3,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 70,\n",
+ " '1st_Road_Number': 422,\n",
" 'Time': '20:05',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 4,\n",
- " 'Age_Band_of_Driver': 5,\n",
- " 'Age_of_Vehicle': 8,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 9,\n",
- " 'Engine_Capacity_(CC)': 1598,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 10,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': 158,\n",
+ " 'Location_Northing_OSGR': 241080,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 1,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 485210,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 1,\n",
+ " 'Light_Conditions': 7,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 4,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 1,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1598,\n",
" 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 5,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 10,\n",
+ " '1st_Point_of_Impact': 4,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 8,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 5,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b79f'),\n",
- " 'loc': {'coordinates': [-0.758495, 52.061514], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 3,\n",
- " '1st_Road_Number': 422,\n",
- " '2nd_Road_Class': -1,\n",
- " '2nd_Road_Number': 0,\n",
- " 'Accident_Index': '201243S089062',\n",
+ " 'Junction_Detail': 1,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016804',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.061514,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S106042',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 3,\n",
+ " '2nd_Road_Class': 5,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 6,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.758495,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 70,\n",
+ " 'Date': '29/04/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 4, 29, 20, 5),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.758495, 52.061514]},\n",
+ " 'Weather_Conditions': 5},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b74a'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': -1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': -1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 1}],\n",
- " 'Date': '22/06/2012',\n",
- " 'Datetime': datetime.datetime(2012, 6, 22, 9, 40),\n",
- " 'Day_of_Week': 6,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': -1,\n",
- " 'Junction_Detail': 0,\n",
- " 'LSOA_of_Accident_Location': 'E01016771',\n",
- " 'Latitude': 52.06176,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 485360,\n",
- " 'Location_Northing_OSGR': 241110,\n",
- " 'Longitude': -0.7563,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 3,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 3,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 70,\n",
+ " '1st_Road_Number': 422,\n",
" 'Time': '09:40',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': -1,\n",
- " 'Driver_IMD_Decile': -1,\n",
- " 'Engine_Capacity_(CC)': -1,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 2,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': 0,\n",
+ " 'Location_Northing_OSGR': 241110,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 3,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 485360,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 6,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': -1,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': -1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': -1,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': -1,\n",
- " 'Age_of_Vehicle': 1,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 9,\n",
- " 'Engine_Capacity_(CC)': 1390,\n",
+ " 'Age_Band_of_Driver': 6,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 2,\n",
+ " 'Driver_Home_Area_Type': -1,\n",
+ " 'Propulsion_Code': -1,\n",
+ " 'Age_of_Vehicle': -1,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 3,\n",
+ " 'Engine_Capacity_(CC)': 1390,\n",
" 'Vehicle_Reference': 2,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
" 'Age_Band_of_Driver': -1,\n",
- " 'Age_of_Vehicle': 8,\n",
- " 'Driver_Home_Area_Type': 3,\n",
- " 'Driver_IMD_Decile': 9,\n",
- " 'Engine_Capacity_(CC)': 1796,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 2,\n",
- " 'Junction_Location': 0,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
+ " 'Age_of_Vehicle': 1,\n",
+ " 'Vehicle_Manoeuvre': 3,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 0,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 2,\n",
+ " 'Engine_Capacity_(CC)': 1796,\n",
" 'Vehicle_Reference': 3,\n",
+ " 'Age_Band_of_Driver': -1,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 2,\n",
+ " 'Driver_Home_Area_Type': 3,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 8,\n",
+ " 'Vehicle_Manoeuvre': 2,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 2,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b74a'),\n",
- " 'loc': {'coordinates': [-0.7563, 52.06176], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 3,\n",
- " '1st_Road_Number': 422,\n",
- " '2nd_Road_Class': 5,\n",
- " '2nd_Road_Number': 158,\n",
- " 'Accident_Index': '201243S034102',\n",
+ " 'Junction_Detail': 0,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016771',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.06176,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S089062',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 3,\n",
+ " '2nd_Road_Class': -1,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 5,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.7563,\n",
+ " 'Junction_Control': -1,\n",
+ " 'Speed_limit': 70,\n",
+ " 'Date': '22/06/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 6, 22, 9, 40),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.7563, 52.06176]},\n",
+ " 'Weather_Conditions': 2},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b644'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 5,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 5,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1}],\n",
- " 'Date': '08/10/2012',\n",
- " 'Datetime': datetime.datetime(2012, 10, 8, 17, 13),\n",
- " 'Day_of_Week': 2,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 1,\n",
- " 'LSOA_of_Accident_Location': 'E01016765',\n",
- " 'Latitude': 52.061689,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 485240,\n",
- " 'Location_Northing_OSGR': 241100,\n",
- " 'Longitude': -0.758053,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 1,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 1,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 70,\n",
+ " '1st_Road_Number': 422,\n",
" 'Time': '17:13',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 3,\n",
- " 'Age_Band_of_Driver': 5,\n",
- " 'Age_of_Vehicle': 12,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 9,\n",
- " 'Engine_Capacity_(CC)': 599,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 1,\n",
+ " '2nd_Road_Number': 158,\n",
+ " 'Location_Northing_OSGR': 241100,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 1,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 485240,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 2,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 8,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Engine_Capacity_(CC)': 599,\n",
" 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 5,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 3,\n",
" 'Vehicle_Type': 5,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 12,\n",
+ " 'Vehicle_Manoeuvre': 9,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 2,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b644'),\n",
- " 'loc': {'coordinates': [-0.758053, 52.061689], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 158,\n",
- " '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1145,\n",
- " 'Accident_Index': '201243S097022',\n",
+ " 'Junction_Detail': 1,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016765',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.061689,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S034102',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 3,\n",
+ " '2nd_Road_Class': 5,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 5,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.758053,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 70,\n",
+ " 'Date': '08/10/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 10, 8, 17, 13),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.758053, 52.061689]},\n",
+ " 'Weather_Conditions': 2},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b777'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 3,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 3,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 5,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 5,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 5,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '22/02/2012',\n",
- " 'Datetime': datetime.datetime(2012, 2, 22, 17, 40),\n",
- " 'Day_of_Week': 4,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 3,\n",
- " 'LSOA_of_Accident_Location': 'E01016809',\n",
- " 'Latitude': 52.066581,\n",
- " 'Light_Conditions': 4,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 484990,\n",
- " 'Location_Northing_OSGR': 241640,\n",
- " 'Longitude': -0.761564,\n",
- " 'Number_of_Casualties': 2,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 60,\n",
+ " '1st_Road_Number': 158,\n",
" 'Time': '17:40',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 5,\n",
- " 'Age_of_Vehicle': 13,\n",
- " 'Driver_Home_Area_Type': 3,\n",
- " 'Driver_IMD_Decile': 9,\n",
- " 'Engine_Capacity_(CC)': 1242,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 1145,\n",
+ " 'Location_Northing_OSGR': 241640,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 484990,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 4,\n",
+ " 'Light_Conditions': 4,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 8,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Engine_Capacity_(CC)': 1242,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 1,\n",
" 'Age_Band_of_Driver': 5,\n",
- " 'Age_of_Vehicle': 12,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 5,\n",
- " 'Engine_Capacity_(CC)': 1390,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 1,\n",
+ " 'Driver_Home_Area_Type': 3,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
+ " 'Age_of_Vehicle': 13,\n",
+ " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 5,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1390,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 5,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 12,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b777'),\n",
- " 'loc': {'coordinates': [-0.761564, 52.066581], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 158,\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016809',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.066581,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S097022',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
" '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1145,\n",
- " 'Accident_Index': '201243S058082',\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 7,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.761564,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 60,\n",
+ " 'Date': '22/02/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 2, 22, 17, 40),\n",
+ " 'Number_of_Casualties': 2,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.761564, 52.066581]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b6af'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 7,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '19/08/2012',\n",
- " 'Datetime': datetime.datetime(2012, 8, 19, 12, 30),\n",
- " 'Day_of_Week': 1,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 2,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 3,\n",
- " 'LSOA_of_Accident_Location': 'E01016804',\n",
- " 'Latitude': 52.066217,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 485020,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
+ " 'Road_Surface_Conditions': 1,\n",
+ " '1st_Road_Number': 158,\n",
+ " 'Time': '12:30',\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 1145,\n",
" 'Location_Northing_OSGR': 241600,\n",
- " 'Longitude': -0.761137,\n",
- " 'Number_of_Casualties': 1,\n",
+ " 'Police_Force': 43,\n",
" 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
- " 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 60,\n",
- " 'Time': '12:30',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': -1,\n",
- " 'Driver_IMD_Decile': -1,\n",
- " 'Engine_Capacity_(CC)': -1,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 485020,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 1,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': -1,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 1,\n",
- " 'Propulsion_Code': -1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': -1,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': 10,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 2,\n",
- " 'Engine_Capacity_(CC)': 1598,\n",
+ " 'Age_Band_of_Driver': 6,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': -1,\n",
+ " 'Propulsion_Code': -1,\n",
+ " 'Age_of_Vehicle': -1,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 2,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 1,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 10,\n",
+ " 'Engine_Capacity_(CC)': 1598,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 7,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 10,\n",
+ " 'Vehicle_Manoeuvre': 10,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b6af'),\n",
- " 'loc': {'coordinates': [-0.761137, 52.066217], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 158,\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016804',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.066217,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 2,\n",
+ " 'Accident_Index': '201243S058082',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
" '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1145,\n",
- " 'Accident_Index': '201243S022102',\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 9,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.761137,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 60,\n",
+ " 'Date': '19/08/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 8, 19, 12, 30),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.761137, 52.066217]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b60a'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 9,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 6,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 2,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 2,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '06/10/2012',\n",
- " 'Datetime': datetime.datetime(2012, 10, 6, 15, 5),\n",
- " 'Day_of_Week': 7,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 3,\n",
- " 'LSOA_of_Accident_Location': 'E01016804',\n",
- " 'Latitude': 52.066127,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 485020,\n",
- " 'Location_Northing_OSGR': 241590,\n",
- " 'Longitude': -0.761139,\n",
- " 'Number_of_Casualties': 2,\n",
- " 'Number_of_Vehicles': 3,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 60,\n",
+ " '1st_Road_Number': 158,\n",
" 'Time': '15:05',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 9,\n",
- " 'Age_of_Vehicle': 16,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 5,\n",
- " 'Engine_Capacity_(CC)': 1796,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 1145,\n",
+ " 'Location_Northing_OSGR': 241590,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 3,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 485020,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 7,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 5,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 1,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 1,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1796,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 3,\n",
- " 'Driver_Home_Area_Type': 2,\n",
- " 'Driver_IMD_Decile': 10,\n",
- " 'Engine_Capacity_(CC)': 1997,\n",
+ " 'Age_Band_of_Driver': 9,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 16,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 10,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 1,\n",
- " 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1997,\n",
" 'Vehicle_Reference': 2,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': 8,\n",
- " 'Age_of_Vehicle': 2,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 10,\n",
- " 'Engine_Capacity_(CC)': 2993,\n",
+ " 'Age_Band_of_Driver': 6,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 1,\n",
+ " 'Driver_Home_Area_Type': 2,\n",
" 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 1,\n",
+ " 'Age_of_Vehicle': 3,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 10,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 2993,\n",
" 'Vehicle_Reference': 3,\n",
+ " 'Age_Band_of_Driver': 8,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': 2,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b60a'),\n",
- " 'loc': {'coordinates': [-0.761139, 52.066127], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 6,\n",
- " '1st_Road_Number': 1145,\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016804',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.066127,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S022102',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
" '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1145,\n",
- " 'Accident_Index': '201243S060052',\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 8,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 1,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.761139,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 60,\n",
+ " 'Date': '06/10/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 10, 6, 15, 5),\n",
+ " 'Number_of_Casualties': 2,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.761139, 52.066127]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b6bb'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': -1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': -1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 1,\n",
+ " 'Age_Band_of_Casualty': 8,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '08/05/2012',\n",
- " 'Datetime': datetime.datetime(2012, 5, 8, 10, 24),\n",
- " 'Day_of_Week': 3,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 3,\n",
- " 'LSOA_of_Accident_Location': 'E01016809',\n",
- " 'Latitude': 52.066231,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 484340,\n",
- " 'Location_Northing_OSGR': 241590,\n",
- " 'Longitude': -0.771057,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 30,\n",
+ " '1st_Road_Number': 1145,\n",
" 'Time': '10:24',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 8,\n",
- " 'Age_of_Vehicle': 4,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 4,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 1145,\n",
+ " 'Location_Northing_OSGR': 241590,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 484340,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 3,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 4,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 6,\n",
+ " 'Skidding_and_Overturning': 0,\n",
+ " 'Towing_and_Articulation': 0,\n",
+ " 'Vehicle_Location-Restricted_Lane': 0,\n",
" 'Engine_Capacity_(CC)': 1598,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 8,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 1,\n",
- " 'Junction_Location': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
+ " 'Age_of_Vehicle': 4,\n",
+ " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 4,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 9,\n",
- " 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 4,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 4,\n",
" 'Engine_Capacity_(CC)': -1,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 6,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 4,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 1,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': -1,\n",
- " 'Sex_of_Driver': 1,\n",
- " 'Skidding_and_Overturning': 0,\n",
- " 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
- " 'Vehicle_Location-Restricted_Lane': 0,\n",
+ " 'Age_of_Vehicle': -1,\n",
" 'Vehicle_Manoeuvre': 18,\n",
- " 'Vehicle_Reference': 2,\n",
- " 'Vehicle_Type': 9,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b6bb'),\n",
- " 'loc': {'coordinates': [-0.771057, 52.066231], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 3,\n",
- " '1st_Road_Number': 422,\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016809',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.066231,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S060052',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 6,\n",
" '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1145,\n",
- " 'Accident_Index': '201243S040012',\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 8,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.771057,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 30,\n",
+ " 'Date': '08/05/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 5, 8, 10, 24),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.771057, 52.066231]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b65f'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 8,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 1}],\n",
- " 'Date': '14/01/2012',\n",
- " 'Datetime': datetime.datetime(2012, 1, 14, 13, 5),\n",
- " 'Day_of_Week': 7,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 3,\n",
- " 'LSOA_of_Accident_Location': 'E01016804',\n",
- " 'Latitude': 52.058834,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 484510,\n",
- " 'Location_Northing_OSGR': 240770,\n",
- " 'Longitude': -0.76878,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 1,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 3,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 70,\n",
+ " '1st_Road_Number': 422,\n",
" 'Time': '13:05',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 3,\n",
- " 'Age_Band_of_Driver': 8,\n",
- " 'Age_of_Vehicle': 12,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 5,\n",
- " 'Engine_Capacity_(CC)': 1998,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 6,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': 1145,\n",
+ " 'Location_Northing_OSGR': 240770,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 1,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 484510,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 7,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 5,\n",
+ " 'Vehicle_Leaving_Carriageway': 4,\n",
" 'Junction_Location': 8,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 4,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1998,\n",
" 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 8,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 6,\n",
+ " '1st_Point_of_Impact': 3,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 12,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b65f'),\n",
- " 'loc': {'coordinates': [-0.76878, 52.058834], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 3,\n",
- " '1st_Road_Number': 422,\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016804',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.058834,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S040012',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 3,\n",
" '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1145,\n",
- " 'Accident_Index': '201243S061012',\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 6,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.76878,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 70,\n",
+ " 'Date': '14/01/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 1, 14, 13, 5),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.76878, 52.058834]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b6be'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 3,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 3,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 9,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 9,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2},\n",
- " {'Age_Band_of_Casualty': 7,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 1,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': -1,\n",
- " 'Casualty_Reference': 3,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 3,\n",
+ " 'Casualty_Home_Area_Type': -1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 1,\n",
+ " 'Age_Band_of_Casualty': 7,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '17/01/2012',\n",
- " 'Datetime': datetime.datetime(2012, 1, 17, 16, 15),\n",
- " 'Day_of_Week': 3,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 3,\n",
- " 'LSOA_of_Accident_Location': 'E01016804',\n",
- " 'Latitude': 52.059363,\n",
- " 'Light_Conditions': 4,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 484580,\n",
- " 'Location_Northing_OSGR': 240830,\n",
- " 'Longitude': -0.767744,\n",
- " 'Number_of_Casualties': 3,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 3,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 70,\n",
+ " '1st_Road_Number': 422,\n",
" 'Time': '16:15',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 3,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 11,\n",
- " 'Driver_Home_Area_Type': 3,\n",
- " 'Driver_IMD_Decile': 9,\n",
- " 'Engine_Capacity_(CC)': 1598,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': 1145,\n",
+ " 'Location_Northing_OSGR': 240830,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 484580,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 3,\n",
+ " 'Light_Conditions': 4,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 6,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Engine_Capacity_(CC)': 1598,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 9,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 5,\n",
- " 'Engine_Capacity_(CC)': -1,\n",
+ " 'Age_Band_of_Driver': 6,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 3,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 3,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 11,\n",
+ " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 5,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 8,\n",
- " 'Propulsion_Code': -1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': -1,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 9,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': -1,\n",
+ " 'Age_of_Vehicle': -1,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b6be'),\n",
- " 'loc': {'coordinates': [-0.767744, 52.059363], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 3,\n",
- " '1st_Road_Number': 422,\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016804',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.059363,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S061012',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 3,\n",
" '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1145,\n",
- " 'Accident_Index': '201243S117022',\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 8,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.767744,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 70,\n",
+ " 'Date': '17/01/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 1, 17, 16, 15),\n",
+ " 'Number_of_Casualties': 3,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.767744, 52.059363]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b7da'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 8,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 6,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '29/02/2012',\n",
- " 'Datetime': datetime.datetime(2012, 2, 29, 17, 5),\n",
- " 'Day_of_Week': 4,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 3,\n",
- " 'LSOA_of_Accident_Location': 'E01016804',\n",
- " 'Latitude': 52.058921,\n",
- " 'Light_Conditions': 4,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 484530,\n",
- " 'Location_Northing_OSGR': 240780,\n",
- " 'Longitude': -0.768486,\n",
- " 'Number_of_Casualties': 2,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 3,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 70,\n",
+ " '1st_Road_Number': 422,\n",
" 'Time': '17:05',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 8,\n",
- " 'Age_of_Vehicle': 12,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 9,\n",
- " 'Engine_Capacity_(CC)': 1796,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 1,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': 1145,\n",
+ " 'Location_Northing_OSGR': 240780,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 484530,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 4,\n",
+ " 'Light_Conditions': 4,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 6,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Engine_Capacity_(CC)': 1796,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 4,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 8,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 8,\n",
- " 'Engine_Capacity_(CC)': 1598,\n",
+ " 'Age_Band_of_Driver': 8,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 1,\n",
- " 'Junction_Location': 8,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
+ " 'Age_of_Vehicle': 12,\n",
+ " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 8,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 8,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1598,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 6,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 4,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 1,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 8,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b7da'),\n",
- " 'loc': {'coordinates': [-0.768486, 52.058921], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 3,\n",
- " '1st_Road_Number': 422,\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016804',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.058921,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S117022',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 3,\n",
" '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1145,\n",
- " 'Accident_Index': '201243S057062',\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 7,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.768486,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 70,\n",
+ " 'Date': '29/02/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 2, 29, 17, 5),\n",
+ " 'Number_of_Casualties': 2,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.768486, 52.058921]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b6aa'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 2,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 2,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 7,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '14/06/2012',\n",
- " 'Datetime': datetime.datetime(2012, 6, 14, 17, 15),\n",
- " 'Day_of_Week': 5,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 3,\n",
- " 'LSOA_of_Accident_Location': 'E01016804',\n",
- " 'Latitude': 52.059095,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 484570,\n",
- " 'Location_Northing_OSGR': 240800,\n",
- " 'Longitude': -0.767898,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 3,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 70,\n",
+ " '1st_Road_Number': 422,\n",
" 'Time': '17:15',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': 1,\n",
- " 'Driver_Home_Area_Type': -1,\n",
- " 'Driver_IMD_Decile': -1,\n",
- " 'Engine_Capacity_(CC)': 1560,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 1,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': 1145,\n",
+ " 'Location_Northing_OSGR': 240800,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 484570,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 5,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': -1,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 8,\n",
- " 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 5,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Engine_Capacity_(CC)': 1560,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 1,\n",
" 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': 17,\n",
- " 'Driver_Home_Area_Type': 2,\n",
- " 'Driver_IMD_Decile': 3,\n",
- " 'Engine_Capacity_(CC)': 1396,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " '1st_Point_of_Impact': 2,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 1,\n",
+ " 'Driver_Home_Area_Type': -1,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': 1,\n",
+ " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 3,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 1,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1396,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 7,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 2,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 17,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b6aa'),\n",
- " 'loc': {'coordinates': [-0.767898, 52.059095], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 3,\n",
- " '1st_Road_Number': 422,\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016804',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.059095,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S057062',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 3,\n",
" '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1145,\n",
- " 'Accident_Index': '201243S055062',\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 5,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.767898,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 70,\n",
+ " 'Date': '14/06/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 6, 14, 17, 15),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.767898, 52.059095]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b6a2'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 5,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '14/06/2012',\n",
- " 'Datetime': datetime.datetime(2012, 6, 14, 18, 24),\n",
- " 'Day_of_Week': 5,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 3,\n",
- " 'LSOA_of_Accident_Location': 'E01016804',\n",
- " 'Latitude': 52.059102,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 484520,\n",
- " 'Location_Northing_OSGR': 240800,\n",
- " 'Longitude': -0.768627,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 3,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 3,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 70,\n",
+ " '1st_Road_Number': 422,\n",
" 'Time': '18:24',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 12,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 7,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': 1145,\n",
+ " 'Location_Northing_OSGR': 240800,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 3,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 484520,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 5,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 7,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 1,\n",
+ " 'Skidding_and_Overturning': 0,\n",
+ " 'Towing_and_Articulation': 0,\n",
+ " 'Vehicle_Location-Restricted_Lane': 0,\n",
" 'Engine_Capacity_(CC)': 1796,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 6,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 2,\n",
- " 'Junction_Location': 1,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
+ " 'Age_of_Vehicle': 12,\n",
+ " 'Vehicle_Manoeuvre': 15,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 15,\n",
- " 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': 5,\n",
- " 'Age_of_Vehicle': 11,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 9,\n",
" 'Engine_Capacity_(CC)': 1149,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 5,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 1,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
- " 'Skidding_and_Overturning': 0,\n",
- " 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
- " 'Vehicle_Location-Restricted_Lane': 0,\n",
+ " 'Age_of_Vehicle': 11,\n",
" 'Vehicle_Manoeuvre': 7,\n",
- " 'Vehicle_Reference': 2,\n",
- " 'Vehicle_Type': 9,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 4,\n",
- " 'Age_Band_of_Driver': 8,\n",
- " 'Age_of_Vehicle': 10,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 9,\n",
- " 'Engine_Capacity_(CC)': 4196,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 2,\n",
+ " {'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 1,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 2,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 4196,\n",
" 'Vehicle_Reference': 3,\n",
+ " 'Age_Band_of_Driver': 8,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 4,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 2,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 10,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b6a2'),\n",
- " 'loc': {'coordinates': [-0.768627, 52.059102], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 3,\n",
- " '1st_Road_Number': 422,\n",
- " '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1145,\n",
- " 'Accident_Index': '201243S109112',\n",
- " 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 7,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
- " 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
- " 'Casualty_Type': 9,\n",
- " 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
- " 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 1}],\n",
- " 'Date': '21/11/2012',\n",
- " 'Datetime': datetime.datetime(2012, 11, 21, 16, 45),\n",
- " 'Day_of_Week': 4,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
" 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
" 'LSOA_of_Accident_Location': 'E01016804',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
" 'Latitude': 52.059102,\n",
- " 'Light_Conditions': 4,\n",
" 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 484520,\n",
- " 'Location_Northing_OSGR': 240800,\n",
- " 'Longitude': -0.768627,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S055062',\n",
" 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
- " 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 3,\n",
+ " '1st_Road_Class': 3,\n",
+ " '2nd_Road_Class': 6,\n",
+ " 'Accident_Severity': 3,\n",
" 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.768627,\n",
+ " 'Junction_Control': 4,\n",
" 'Speed_limit': 70,\n",
+ " 'Date': '14/06/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 6, 14, 18, 24),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.768627, 52.059102]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b7b0'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
+ " 'Casualty_Class': 1,\n",
+ " 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
+ " 'Pedestrian_Location': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 7,\n",
+ " 'Pedestrian_Road_Maintenance_Worker': 0,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
+ " 'Road_Surface_Conditions': 2,\n",
+ " '1st_Road_Number': 422,\n",
" 'Time': '16:45',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': 8,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 10,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': 1145,\n",
+ " 'Location_Northing_OSGR': 240800,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 484520,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 4,\n",
+ " 'Light_Conditions': 4,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 10,\n",
+ " 'Vehicle_Leaving_Carriageway': 4,\n",
+ " 'Junction_Location': 6,\n",
+ " 'Skidding_and_Overturning': 0,\n",
+ " 'Towing_and_Articulation': 0,\n",
+ " 'Vehicle_Location-Restricted_Lane': 0,\n",
" 'Engine_Capacity_(CC)': 1590,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 7,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
+ " 'Age_of_Vehicle': 8,\n",
+ " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 6,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 8,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 4,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 9,\n",
- " 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 3,\n",
- " 'Age_Band_of_Driver': 8,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 6,\n",
" 'Engine_Capacity_(CC)': 4461,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 8,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 3,\n",
+ " 'Vehicle_Type': 20,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 1,\n",
- " 'Junction_Location': 8,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 1,\n",
- " 'Skidding_and_Overturning': 0,\n",
- " 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
- " 'Vehicle_Location-Restricted_Lane': 0,\n",
+ " 'Age_of_Vehicle': -1,\n",
" 'Vehicle_Manoeuvre': 18,\n",
- " 'Vehicle_Reference': 2,\n",
- " 'Vehicle_Type': 20,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b7b0'),\n",
- " 'loc': {'coordinates': [-0.768627, 52.059102], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 157,\n",
- " '2nd_Road_Class': -1,\n",
- " '2nd_Road_Number': 0,\n",
- " 'Accident_Index': '201243S062072',\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016804',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.059102,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S109112',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 3,\n",
+ " '2nd_Road_Class': 6,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 6,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.768627,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 70,\n",
+ " 'Date': '21/11/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 11, 21, 16, 45),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.768627, 52.059102]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b6c6'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '02/07/2012',\n",
- " 'Datetime': datetime.datetime(2012, 7, 2, 11, 30),\n",
- " 'Day_of_Week': 2,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 2,\n",
- " 'Junction_Control': -1,\n",
- " 'Junction_Detail': 0,\n",
- " 'LSOA_of_Accident_Location': 'E01016717',\n",
- " 'Latitude': 52.054364,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 484350,\n",
- " 'Location_Northing_OSGR': 240270,\n",
- " 'Longitude': -0.771236,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 1,\n",
+ " '1st_Road_Number': 157,\n",
+ " 'Time': '11:30',\n",
" 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 60,\n",
- " 'Time': '11:30',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 4,\n",
- " 'Age_Band_of_Driver': -1,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': -1,\n",
- " 'Driver_IMD_Decile': -1,\n",
- " 'Engine_Capacity_(CC)': -1,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " '2nd_Road_Number': 0,\n",
+ " 'Location_Northing_OSGR': 240270,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 484350,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 2,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': -1,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': -1,\n",
- " 'Sex_of_Driver': 3,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': -1,\n",
" 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': -1,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 4,\n",
" 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 12,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 2,\n",
- " 'Engine_Capacity_(CC)': 1242,\n",
- " 'Hit_Object_in_Carriageway': 10,\n",
- " 'Hit_Object_off_Carriageway': 10,\n",
+ " 'Sex_of_Driver': 3,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': -1,\n",
+ " 'Propulsion_Code': -1,\n",
+ " 'Age_of_Vehicle': -1,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 2,\n",
+ " 'Vehicle_Leaving_Carriageway': 1,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 1,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 1,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1242,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 6,\n",
+ " 'Hit_Object_in_Carriageway': 10,\n",
+ " 'Hit_Object_off_Carriageway': 10,\n",
+ " '1st_Point_of_Impact': 1,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 12,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b6c6'),\n",
- " 'loc': {'coordinates': [-0.771236, 52.054364], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 6,\n",
- " '1st_Road_Number': 1145,\n",
- " '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1145,\n",
- " 'Accident_Index': '201243S017092',\n",
+ " 'Junction_Detail': 0,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016717',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.054364,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 2,\n",
+ " 'Accident_Index': '201243S062072',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
+ " '2nd_Road_Class': -1,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 7,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 1,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.771236,\n",
+ " 'Junction_Control': -1,\n",
+ " 'Speed_limit': 60,\n",
+ " 'Date': '02/07/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 7, 2, 11, 30),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.771236, 52.054364]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b5f5'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 8,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 1,\n",
+ " 'Age_Band_of_Casualty': 7,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '04/09/2012',\n",
- " 'Datetime': datetime.datetime(2012, 9, 4, 7, 20),\n",
- " 'Day_of_Week': 3,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 3,\n",
- " 'LSOA_of_Accident_Location': 'E01016804',\n",
- " 'Latitude': 52.058901,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 485250,\n",
- " 'Location_Northing_OSGR': 240790,\n",
- " 'Longitude': -0.757984,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 30,\n",
+ " '1st_Road_Number': 1145,\n",
" 'Time': '07:20',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 9,\n",
- " 'Age_of_Vehicle': 10,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 5,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 1145,\n",
+ " 'Location_Northing_OSGR': 240790,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 485250,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 3,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 5,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 6,\n",
+ " 'Skidding_and_Overturning': 0,\n",
+ " 'Towing_and_Articulation': 0,\n",
+ " 'Vehicle_Location-Restricted_Lane': 0,\n",
" 'Engine_Capacity_(CC)': 1397,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 9,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 2,\n",
- " 'Junction_Location': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
+ " 'Age_of_Vehicle': 10,\n",
+ " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 5,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 9,\n",
- " 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 4,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': 8,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 5,\n",
" 'Engine_Capacity_(CC)': 1686,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 7,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 4,\n",
+ " 'Vehicle_Type': 8,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 1,\n",
- " 'Junction_Location': 1,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 1,\n",
- " 'Skidding_and_Overturning': 0,\n",
- " 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
- " 'Vehicle_Location-Restricted_Lane': 0,\n",
+ " 'Age_of_Vehicle': 8,\n",
" 'Vehicle_Manoeuvre': 18,\n",
- " 'Vehicle_Reference': 2,\n",
- " 'Vehicle_Type': 8,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b5f5'),\n",
- " 'loc': {'coordinates': [-0.757984, 52.058901], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 3,\n",
- " '1st_Road_Number': 422,\n",
- " '2nd_Road_Class': 4,\n",
- " '2nd_Road_Number': 4034,\n",
- " 'Accident_Index': '201243S063112',\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016804',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.058901,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S017092',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 6,\n",
+ " '2nd_Road_Class': 6,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 5,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.757984,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 30,\n",
+ " 'Date': '04/09/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 9, 4, 7, 20),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.757984, 52.058901]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b6ce'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 2,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 2,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 5,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1}],\n",
- " 'Date': '02/11/2012',\n",
- " 'Datetime': datetime.datetime(2012, 11, 2, 21, 37),\n",
- " 'Day_of_Week': 6,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 1,\n",
- " 'LSOA_of_Accident_Location': 'E01016804',\n",
- " 'Latitude': 52.061331,\n",
- " 'Light_Conditions': 4,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 485230,\n",
- " 'Location_Northing_OSGR': 241060,\n",
- " 'Longitude': -0.758209,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 1,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 3,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 70,\n",
+ " '1st_Road_Number': 422,\n",
" 'Time': '21:37',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 5,\n",
- " 'Age_of_Vehicle': 15,\n",
- " 'Driver_Home_Area_Type': 2,\n",
- " 'Driver_IMD_Decile': 7,\n",
- " 'Engine_Capacity_(CC)': 1389,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 1,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': 4034,\n",
+ " 'Location_Northing_OSGR': 241060,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 1,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 485230,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 6,\n",
+ " 'Light_Conditions': 4,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 7,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 4,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1389,\n",
" 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 5,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 1,\n",
+ " '1st_Point_of_Impact': 1,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 2,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 15,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b6ce'),\n",
- " 'loc': {'coordinates': [-0.758209, 52.061331], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 4,\n",
- " '1st_Road_Number': 4034,\n",
- " '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1145,\n",
- " 'Accident_Index': '201243S015072',\n",
+ " 'Junction_Detail': 1,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016804',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.061331,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S063112',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 3,\n",
+ " '2nd_Road_Class': 4,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 7,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.758209,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 70,\n",
+ " 'Date': '02/11/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 11, 2, 21, 37),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.758209, 52.061331]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b5ee'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 2,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 1,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 2,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 7,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '03/07/2012',\n",
- " 'Datetime': datetime.datetime(2012, 7, 3, 8, 8),\n",
- " 'Day_of_Week': 3,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 3,\n",
- " 'LSOA_of_Accident_Location': 'E01016768',\n",
- " 'Latitude': 52.051025,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 485610,\n",
- " 'Location_Northing_OSGR': 239920,\n",
- " 'Longitude': -0.752952,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 3,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 70,\n",
+ " '1st_Road_Number': 4034,\n",
" 'Time': '08:08',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 3,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 6,\n",
- " 'Driver_Home_Area_Type': 2,\n",
- " 'Driver_IMD_Decile': 8,\n",
- " 'Engine_Capacity_(CC)': 1598,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': 1145,\n",
+ " 'Location_Northing_OSGR': 239920,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 485610,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 3,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 8,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 6,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 7,\n",
+ " 'Engine_Capacity_(CC)': 1598,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 4,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': 2,\n",
- " 'Driver_IMD_Decile': 10,\n",
- " 'Engine_Capacity_(CC)': -1,\n",
+ " 'Age_Band_of_Driver': 6,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 3,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 2,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 6,\n",
+ " 'Vehicle_Manoeuvre': 7,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 10,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 8,\n",
- " 'Propulsion_Code': -1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': -1,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 7,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 4,\n",
" 'Vehicle_Type': 1,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 2,\n",
+ " 'Propulsion_Code': -1,\n",
+ " 'Age_of_Vehicle': -1,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b5ee'),\n",
- " 'loc': {'coordinates': [-0.752952, 52.051025], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 144,\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016768',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.051025,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S015072',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 4,\n",
" '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1145,\n",
- " 'Accident_Index': '201243S112122',\n",
- " 'Accident_Severity': 2,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 9,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Accident_Severity': 3,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.752952,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 70,\n",
+ " 'Date': '03/07/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 7, 3, 8, 8),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.752952, 52.051025]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b7c4'),\n",
+ " 'Casualties': [{'Casualty_Severity': 2,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 2,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 9,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '21/12/2012',\n",
- " 'Datetime': datetime.datetime(2012, 12, 21, 13, 45),\n",
- " 'Day_of_Week': 6,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 3,\n",
- " 'LSOA_of_Accident_Location': 'E01016768',\n",
- " 'Latitude': 52.056111,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 485915,\n",
- " 'Location_Northing_OSGR': 240491,\n",
- " 'Longitude': -0.748362,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 60,\n",
+ " '1st_Road_Number': 144,\n",
" 'Time': '13:45',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 5,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 1145,\n",
+ " 'Location_Northing_OSGR': 240491,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 485915,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 6,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 5,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 6,\n",
+ " 'Skidding_and_Overturning': 0,\n",
+ " 'Towing_and_Articulation': 0,\n",
+ " 'Vehicle_Location-Restricted_Lane': 0,\n",
" 'Engine_Capacity_(CC)': 2198,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 6,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 19,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 1,\n",
- " 'Junction_Location': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 1,\n",
+ " 'Age_of_Vehicle': -1,\n",
+ " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 8,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 9,\n",
- " 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 19,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 4,\n",
- " 'Age_Band_of_Driver': 9,\n",
- " 'Age_of_Vehicle': 10,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 9,\n",
" 'Engine_Capacity_(CC)': 1598,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 9,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 4,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 8,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
- " 'Skidding_and_Overturning': 0,\n",
- " 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
- " 'Vehicle_Location-Restricted_Lane': 0,\n",
+ " 'Age_of_Vehicle': 10,\n",
" 'Vehicle_Manoeuvre': 18,\n",
- " 'Vehicle_Reference': 2,\n",
- " 'Vehicle_Type': 9,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b7c4'),\n",
- " 'loc': {'coordinates': [-0.748362, 52.056111], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 144,\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016768',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.056111,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S112122',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
" '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1145,\n",
- " 'Accident_Index': '201243S012082',\n",
- " 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 6,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Accident_Severity': 2,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.748362,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 60,\n",
+ " 'Date': '21/12/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 12, 21, 13, 45),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.748362, 52.056111]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b5e3'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 8,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 8,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2},\n",
- " {'Age_Band_of_Casualty': 3,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 1,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 3,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 3,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 1,\n",
+ " 'Age_Band_of_Casualty': 3,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2},\n",
- " {'Age_Band_of_Casualty': 2,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 2,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 4,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 4,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 2,\n",
+ " 'Age_Band_of_Casualty': 2,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '02/08/2012',\n",
- " 'Datetime': datetime.datetime(2012, 8, 2, 16, 35),\n",
- " 'Day_of_Week': 5,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 3,\n",
- " 'LSOA_of_Accident_Location': 'E01016804',\n",
- " 'Latitude': 52.053867,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 485250,\n",
- " 'Location_Northing_OSGR': 240230,\n",
- " 'Longitude': -0.758124,\n",
- " 'Number_of_Casualties': 4,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 60,\n",
+ " '1st_Road_Number': 144,\n",
" 'Time': '16:35',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 3,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 7,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 3,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 1145,\n",
+ " 'Location_Northing_OSGR': 240230,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 485250,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 5,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 3,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 6,\n",
+ " 'Skidding_and_Overturning': 0,\n",
+ " 'Towing_and_Articulation': 0,\n",
+ " 'Vehicle_Location-Restricted_Lane': 0,\n",
" 'Engine_Capacity_(CC)': 1984,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 6,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 3,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 1,\n",
- " 'Junction_Location': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
+ " 'Age_of_Vehicle': 7,\n",
+ " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 9,\n",
- " 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 8,\n",
- " 'Age_of_Vehicle': 10,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 9,\n",
" 'Engine_Capacity_(CC)': 1242,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 8,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 1,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
- " 'Skidding_and_Overturning': 0,\n",
- " 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
- " 'Vehicle_Location-Restricted_Lane': 0,\n",
+ " 'Age_of_Vehicle': 10,\n",
" 'Vehicle_Manoeuvre': 18,\n",
- " 'Vehicle_Reference': 2,\n",
- " 'Vehicle_Type': 9,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 2,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b5e3'),\n",
- " 'loc': {'coordinates': [-0.758124, 52.053867], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 6,\n",
- " '1st_Road_Number': 1145,\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016804',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.053867,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S012082',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
" '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1145,\n",
- " 'Accident_Index': '201243S082082',\n",
- " 'Accident_Severity': 2,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 9,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Accident_Severity': 3,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.758124,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 60,\n",
+ " 'Date': '02/08/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 8, 2, 16, 35),\n",
+ " 'Number_of_Casualties': 4,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.758124, 52.053867]},\n",
+ " 'Weather_Conditions': 2},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b727'),\n",
+ " 'Casualties': [{'Casualty_Severity': 2,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 2,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 9,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 1}],\n",
- " 'Date': '13/08/2012',\n",
- " 'Datetime': datetime.datetime(2012, 8, 13, 15, 30),\n",
- " 'Day_of_Week': 2,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 1,\n",
- " 'LSOA_of_Accident_Location': 'E01016721',\n",
- " 'Latitude': 52.051228,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 485460,\n",
- " 'Location_Northing_OSGR': 239940,\n",
- " 'Longitude': -0.755134,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 1,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 30,\n",
+ " '1st_Road_Number': 1145,\n",
" 'Time': '15:30',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 9,\n",
- " 'Age_of_Vehicle': 4,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 4,\n",
- " 'Engine_Capacity_(CC)': 1399,\n",
- " 'Hit_Object_in_Carriageway': 10,\n",
- " 'Hit_Object_off_Carriageway': 10,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 1145,\n",
+ " 'Location_Northing_OSGR': 239940,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 1,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 485460,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 2,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 4,\n",
+ " 'Vehicle_Leaving_Carriageway': 1,\n",
" 'Junction_Location': 3,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 1,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1399,\n",
" 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 9,\n",
+ " 'Hit_Object_in_Carriageway': 10,\n",
+ " 'Hit_Object_off_Carriageway': 10,\n",
+ " '1st_Point_of_Impact': 1,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 4,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b727'),\n",
- " 'loc': {'coordinates': [-0.755134, 52.051228], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 4,\n",
- " '1st_Road_Number': 4034,\n",
- " '2nd_Road_Class': 5,\n",
- " '2nd_Road_Number': 144,\n",
- " 'Accident_Index': '201243S114112',\n",
- " 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 6,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Junction_Detail': 1,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016721',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.051228,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S082082',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 6,\n",
+ " '2nd_Road_Class': 6,\n",
+ " 'Accident_Severity': 2,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.755134,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 30,\n",
+ " 'Date': '13/08/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 8, 13, 15, 30),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.755134, 52.051228]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b7cd'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '26/11/2012',\n",
- " 'Datetime': datetime.datetime(2012, 11, 26, 8, 30),\n",
- " 'Day_of_Week': 2,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 1,\n",
- " 'LSOA_of_Accident_Location': 'E01016772',\n",
- " 'Latitude': 52.054898,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 485560,\n",
- " 'Location_Northing_OSGR': 240350,\n",
- " 'Longitude': -0.753574,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 1,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 70,\n",
+ " '1st_Road_Number': 4034,\n",
" 'Time': '08:30',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': 13,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 2,\n",
+ " 'Road_Type': 1,\n",
+ " '2nd_Road_Number': 144,\n",
+ " 'Location_Northing_OSGR': 240350,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 485560,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 2,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 2,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 1,\n",
+ " 'Skidding_and_Overturning': 0,\n",
+ " 'Towing_and_Articulation': 0,\n",
+ " 'Vehicle_Location-Restricted_Lane': 0,\n",
" 'Engine_Capacity_(CC)': 1998,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 7,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 3,\n",
- " 'Junction_Location': 1,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 1,\n",
+ " 'Age_of_Vehicle': 13,\n",
+ " 'Vehicle_Manoeuvre': 3,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 3,\n",
- " 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 6,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 9,\n",
" 'Engine_Capacity_(CC)': 2198,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 6,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 2,\n",
- " 'Junction_Location': 1,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 2,\n",
- " 'Skidding_and_Overturning': 0,\n",
- " 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
- " 'Vehicle_Location-Restricted_Lane': 0,\n",
+ " 'Age_of_Vehicle': 6,\n",
" 'Vehicle_Manoeuvre': 18,\n",
- " 'Vehicle_Reference': 2,\n",
- " 'Vehicle_Type': 9,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 2,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b7cd'),\n",
- " 'loc': {'coordinates': [-0.753574, 52.054898], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 3,\n",
- " '1st_Road_Number': 509,\n",
- " '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 9097,\n",
- " 'Accident_Index': '201243S069012',\n",
+ " 'Junction_Detail': 1,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016772',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.054898,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S114112',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 4,\n",
+ " '2nd_Road_Class': 5,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 7,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.753574,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 70,\n",
+ " 'Date': '26/11/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 11, 26, 8, 30),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.753574, 52.054898]},\n",
+ " 'Weather_Conditions': 2},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b6e5'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 2,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 5,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 2,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 7,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1}],\n",
- " 'Date': '22/01/2012',\n",
- " 'Datetime': datetime.datetime(2012, 1, 22, 11, 30),\n",
- " 'Day_of_Week': 1,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 1,\n",
- " 'LSOA_of_Accident_Location': 'E01016730',\n",
- " 'Latitude': 52.046671,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 485280,\n",
- " 'Location_Northing_OSGR': 239430,\n",
- " 'Longitude': -0.757886,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 1,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 1,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 70,\n",
+ " '1st_Road_Number': 509,\n",
" 'Time': '11:30',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 3,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': 11,\n",
- " 'Driver_Home_Area_Type': 2,\n",
- " 'Driver_IMD_Decile': 5,\n",
- " 'Engine_Capacity_(CC)': 996,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 1,\n",
+ " '2nd_Road_Number': 9097,\n",
+ " 'Location_Northing_OSGR': 239430,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 1,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 485280,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 1,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 5,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 1,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 1,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 996,\n",
" 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 7,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 3,\n",
" 'Vehicle_Type': 5,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 2,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 11,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b6e5'),\n",
- " 'loc': {'coordinates': [-0.757886, 52.046671], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 4,\n",
- " '1st_Road_Number': 4034,\n",
- " '2nd_Road_Class': 3,\n",
- " '2nd_Road_Number': 509,\n",
- " 'Accident_Index': '201243S033012',\n",
+ " 'Junction_Detail': 1,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016730',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.046671,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S069012',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 3,\n",
+ " '2nd_Road_Class': 6,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 6,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.757886,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 70,\n",
+ " 'Date': '22/01/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 1, 22, 11, 30),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.757886, 52.046671]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b63a'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '12/01/2012',\n",
- " 'Datetime': datetime.datetime(2012, 1, 12, 15, 45),\n",
- " 'Day_of_Week': 5,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 2,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 1,\n",
- " 'LSOA_of_Accident_Location': 'E01016768',\n",
- " 'Latitude': 52.049392,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 485710,\n",
- " 'Location_Northing_OSGR': 239740,\n",
- " 'Longitude': -0.75154,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 1,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 70,\n",
+ " '1st_Road_Number': 4034,\n",
" 'Time': '15:45',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': -1,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 3,\n",
- " 'Engine_Capacity_(CC)': -1,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 1,\n",
+ " '2nd_Road_Number': 509,\n",
+ " 'Location_Northing_OSGR': 239740,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 485710,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 5,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 3,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 8,\n",
- " 'Propulsion_Code': -1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
- " 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 10,\n",
" 'Engine_Capacity_(CC)': -1,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': -1,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 8,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': -1,\n",
- " 'Sex_of_Driver': 1,\n",
+ " 'Age_of_Vehicle': -1,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 10,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 8,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': -1,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 6,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': -1,\n",
+ " 'Age_of_Vehicle': -1,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b63a'),\n",
- " 'loc': {'coordinates': [-0.75154, 52.049392], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 6,\n",
- " '1st_Road_Number': 8106,\n",
- " '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1098,\n",
- " 'Accident_Index': '201243S040022',\n",
+ " 'Junction_Detail': 1,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
+ " 'LSOA_of_Accident_Location': 'E01016768',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.049392,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 2,\n",
+ " 'Accident_Index': '201243S033012',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 4,\n",
+ " '2nd_Road_Class': 3,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 4,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.75154,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 70,\n",
+ " 'Date': '12/01/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 1, 12, 15, 45),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.75154, 52.049392]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b660'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 3,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 4,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1}],\n",
- " 'Date': '11/02/2012',\n",
- " 'Datetime': datetime.datetime(2012, 2, 11, 8, 0),\n",
- " 'Day_of_Week': 7,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 1,\n",
- " 'LSOA_of_Accident_Location': 'E01016730',\n",
- " 'Latitude': 52.046859,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 485810,\n",
- " 'Location_Northing_OSGR': 239460,\n",
- " 'Longitude': -0.750152,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 1,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 4,\n",
- " 'Road_Type': 1,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 30,\n",
+ " '1st_Road_Number': 8106,\n",
" 'Time': '08:00',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 3,\n",
- " 'Age_Band_of_Driver': 4,\n",
- " 'Age_of_Vehicle': 1,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 8,\n",
- " 'Engine_Capacity_(CC)': 124,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 2,\n",
+ " 'Road_Type': 1,\n",
+ " '2nd_Road_Number': 1098,\n",
+ " 'Location_Northing_OSGR': 239460,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 1,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 485810,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 7,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 8,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 8,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 1,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 7,\n",
+ " 'Engine_Capacity_(CC)': 124,\n",
" 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 4,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 3,\n",
" 'Vehicle_Type': 3,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 2,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 1,\n",
+ " 'Vehicle_Manoeuvre': 7,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b660'),\n",
- " 'loc': {'coordinates': [-0.750152, 52.046859], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 4,\n",
- " '1st_Road_Number': 4034,\n",
- " '2nd_Road_Class': -1,\n",
- " '2nd_Road_Number': 0,\n",
- " 'Accident_Index': '201243S058042',\n",
+ " 'Junction_Detail': 1,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
+ " 'LSOA_of_Accident_Location': 'E01016730',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.046859,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S040022',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 6,\n",
+ " '2nd_Road_Class': 6,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 6,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.750152,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 30,\n",
+ " 'Date': '11/02/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 2, 11, 8, 0),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.750152, 52.046859]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b6ad'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '19/04/2012',\n",
- " 'Datetime': datetime.datetime(2012, 4, 19, 8, 0),\n",
- " 'Day_of_Week': 5,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': -1,\n",
- " 'Junction_Detail': 0,\n",
- " 'LSOA_of_Accident_Location': 'E01016730',\n",
- " 'Latitude': 52.04867,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 485730,\n",
- " 'Location_Northing_OSGR': 239660,\n",
- " 'Longitude': -0.751268,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 3,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 70,\n",
+ " '1st_Road_Number': 4034,\n",
" 'Time': '08:00',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 5,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 8,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': 0,\n",
+ " 'Location_Northing_OSGR': 239660,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 485730,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 5,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 8,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 0,\n",
+ " 'Skidding_and_Overturning': 0,\n",
+ " 'Towing_and_Articulation': 0,\n",
+ " 'Vehicle_Location-Restricted_Lane': 0,\n",
" 'Engine_Capacity_(CC)': 1598,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 5,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 2,\n",
- " 'Junction_Location': 0,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 2,\n",
+ " 'Age_of_Vehicle': -1,\n",
+ " 'Vehicle_Manoeuvre': 4,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 0,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 4,\n",
- " 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 7,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 9,\n",
" 'Engine_Capacity_(CC)': 1598,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 6,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 0,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
- " 'Skidding_and_Overturning': 0,\n",
- " 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
- " 'Vehicle_Location-Restricted_Lane': 0,\n",
+ " 'Age_of_Vehicle': 7,\n",
" 'Vehicle_Manoeuvre': 4,\n",
- " 'Vehicle_Reference': 2,\n",
- " 'Vehicle_Type': 9,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 2,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b6ad'),\n",
- " 'loc': {'coordinates': [-0.751268, 52.04867], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 4,\n",
- " '1st_Road_Number': 4034,\n",
- " '2nd_Road_Class': 3,\n",
- " '2nd_Road_Number': 509,\n",
- " 'Accident_Index': '201243S118042',\n",
+ " 'Junction_Detail': 0,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
+ " 'LSOA_of_Accident_Location': 'E01016730',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.04867,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S058042',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 4,\n",
+ " '2nd_Road_Class': -1,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 4,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 2,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.751268,\n",
+ " 'Junction_Control': -1,\n",
+ " 'Speed_limit': 70,\n",
+ " 'Date': '19/04/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 4, 19, 8, 0),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.751268, 52.04867]},\n",
+ " 'Weather_Conditions': 2},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b7e1'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 8,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 2,\n",
+ " 'Age_Band_of_Casualty': 4,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 1}],\n",
- " 'Date': '29/04/2012',\n",
- " 'Datetime': datetime.datetime(2012, 4, 29, 1, 45),\n",
- " 'Day_of_Week': 1,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 2,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 1,\n",
- " 'LSOA_of_Accident_Location': 'E01016730',\n",
- " 'Latitude': 52.049124,\n",
- " 'Light_Conditions': 7,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 485700,\n",
- " 'Location_Northing_OSGR': 239710,\n",
- " 'Longitude': -0.751693,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 1,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 3,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 70,\n",
+ " '1st_Road_Number': 4034,\n",
" 'Time': '01:45',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': -1,\n",
- " 'Age_Band_of_Driver': -1,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': -1,\n",
- " 'Driver_IMD_Decile': -1,\n",
- " 'Engine_Capacity_(CC)': -1,\n",
- " 'Hit_Object_in_Carriageway': 10,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': 509,\n",
+ " 'Location_Northing_OSGR': 239710,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 1,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 485700,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 1,\n",
+ " 'Light_Conditions': 7,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': -1,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 1,\n",
- " 'Propulsion_Code': -1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 1,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': -1,\n",
" 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': -1,\n",
+ " 'Hit_Object_in_Carriageway': 10,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': -1,\n",
" 'Vehicle_Type': 8,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': -1,\n",
+ " 'Propulsion_Code': -1,\n",
+ " 'Age_of_Vehicle': -1,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 5,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b7e1'),\n",
- " 'loc': {'coordinates': [-0.751693, 52.049124], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 6,\n",
- " '1st_Road_Number': 1098,\n",
- " '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1098,\n",
- " 'Accident_Index': '201243S030062',\n",
+ " 'Junction_Detail': 1,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
+ " 'LSOA_of_Accident_Location': 'E01016730',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.049124,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 2,\n",
+ " 'Accident_Index': '201243S118042',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 4,\n",
+ " '2nd_Road_Class': 3,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 7,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.751693,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 70,\n",
+ " 'Date': '29/04/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 4, 29, 1, 45),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.751693, 52.049124]},\n",
+ " 'Weather_Conditions': 5},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b62a'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 7,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '07/06/2012',\n",
- " 'Datetime': datetime.datetime(2012, 6, 7, 17, 30),\n",
- " 'Day_of_Week': 5,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 2,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 3,\n",
- " 'LSOA_of_Accident_Location': 'E01016730',\n",
- " 'Latitude': 52.046134,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 485850,\n",
- " 'Location_Northing_OSGR': 239380,\n",
- " 'Longitude': -0.749589,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 30,\n",
+ " '1st_Road_Number': 1098,\n",
" 'Time': '17:30',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 4,\n",
- " 'Age_Band_of_Driver': -1,\n",
- " 'Age_of_Vehicle': 7,\n",
- " 'Driver_Home_Area_Type': -1,\n",
- " 'Driver_IMD_Decile': -1,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 1098,\n",
+ " 'Location_Northing_OSGR': 239380,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 485850,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 5,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': -1,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 1,\n",
+ " 'Skidding_and_Overturning': 0,\n",
+ " 'Towing_and_Articulation': 0,\n",
+ " 'Vehicle_Location-Restricted_Lane': 0,\n",
" 'Engine_Capacity_(CC)': 11967,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': -1,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 4,\n",
+ " 'Vehicle_Type': 11,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 1,\n",
- " 'Junction_Location': 1,\n",
+ " 'Driver_Home_Area_Type': -1,\n",
" 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 1,\n",
+ " 'Age_of_Vehicle': 7,\n",
+ " 'Vehicle_Manoeuvre': 7,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 7,\n",
- " 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 11,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 3,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 9,\n",
" 'Engine_Capacity_(CC)': -1,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 7,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 3,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 1,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': -1,\n",
- " 'Sex_of_Driver': 2,\n",
- " 'Skidding_and_Overturning': 0,\n",
- " 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
- " 'Vehicle_Location-Restricted_Lane': 0,\n",
+ " 'Age_of_Vehicle': -1,\n",
" 'Vehicle_Manoeuvre': 7,\n",
- " 'Vehicle_Reference': 2,\n",
- " 'Vehicle_Type': 9,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b62a'),\n",
- " 'loc': {'coordinates': [-0.749589, 52.046134], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 6,\n",
- " '1st_Road_Number': 1098,\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
+ " 'LSOA_of_Accident_Location': 'E01016730',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.046134,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 2,\n",
+ " 'Accident_Index': '201243S030062',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 6,\n",
" '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1098,\n",
- " 'Accident_Index': '201243S124062',\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 4,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.749589,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 30,\n",
+ " 'Date': '07/06/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 6, 7, 17, 30),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.749589, 52.046134]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b803'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 2,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 4,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 1}],\n",
- " 'Date': '19/06/2012',\n",
- " 'Datetime': datetime.datetime(2012, 6, 19, 0, 5),\n",
- " 'Day_of_Week': 3,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 2,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 6,\n",
- " 'LSOA_of_Accident_Location': 'E01016730',\n",
- " 'Latitude': 52.045979,\n",
- " 'Light_Conditions': 4,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 485690,\n",
- " 'Location_Northing_OSGR': 239360,\n",
- " 'Longitude': -0.751926,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 30,\n",
+ " '1st_Road_Number': 1098,\n",
" 'Time': '00:05',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 4,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 5,\n",
- " 'Engine_Capacity_(CC)': -1,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 1098,\n",
+ " 'Location_Northing_OSGR': 239360,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 485690,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 3,\n",
+ " 'Light_Conditions': 4,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 5,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 8,\n",
- " 'Propulsion_Code': -1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': -1,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 2,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 3,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': -1,\n",
- " 'Engine_Capacity_(CC)': 1560,\n",
+ " 'Age_Band_of_Driver': 4,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 2,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': -1,\n",
+ " 'Age_of_Vehicle': -1,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': -1,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 6,\n",
- " 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1560,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 7,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 3,\n",
" 'Vehicle_Type': 19,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': -1,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b803'),\n",
- " 'loc': {'coordinates': [-0.751926, 52.045979], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 6,\n",
- " '1st_Road_Number': 1098,\n",
+ " 'Junction_Detail': 6,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016730',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.045979,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 2,\n",
+ " 'Accident_Index': '201243S124062',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 6,\n",
" '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1098,\n",
- " 'Accident_Index': '201243S009082',\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 7,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.751926,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 30,\n",
+ " 'Date': '19/06/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 6, 19, 0, 5),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.751926, 52.045979]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b5d8'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
- " 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
+ " 'Pedestrian_Location': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 7,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1}],\n",
- " 'Date': '04/08/2012',\n",
- " 'Datetime': datetime.datetime(2012, 8, 4, 18, 35),\n",
- " 'Day_of_Week': 7,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 3,\n",
- " 'LSOA_of_Accident_Location': 'E01016730',\n",
- " 'Latitude': 52.046134,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 485850,\n",
- " 'Location_Northing_OSGR': 239380,\n",
- " 'Longitude': -0.749589,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 30,\n",
+ " '1st_Road_Number': 1098,\n",
" 'Time': '18:35',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': 5,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 8,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 1098,\n",
+ " 'Location_Northing_OSGR': 239380,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 485850,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 7,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 8,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 6,\n",
+ " 'Skidding_and_Overturning': 0,\n",
+ " 'Towing_and_Articulation': 0,\n",
+ " 'Vehicle_Location-Restricted_Lane': 0,\n",
" 'Engine_Capacity_(CC)': 1796,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 7,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
+ " 'Age_of_Vehicle': 5,\n",
+ " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 10,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 9,\n",
- " 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 4,\n",
- " 'Age_Band_of_Driver': 8,\n",
- " 'Age_of_Vehicle': 6,\n",
- " 'Driver_Home_Area_Type': 2,\n",
- " 'Driver_IMD_Decile': 10,\n",
" 'Engine_Capacity_(CC)': 2198,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 8,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 4,\n",
+ " 'Vehicle_Type': 19,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 2,\n",
- " 'Junction_Location': 1,\n",
+ " 'Driver_Home_Area_Type': 2,\n",
" 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 1,\n",
- " 'Skidding_and_Overturning': 0,\n",
- " 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
- " 'Vehicle_Location-Restricted_Lane': 0,\n",
+ " 'Age_of_Vehicle': 6,\n",
" 'Vehicle_Manoeuvre': 18,\n",
- " 'Vehicle_Reference': 2,\n",
- " 'Vehicle_Type': 19,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b5d8'),\n",
- " 'loc': {'coordinates': [-0.749589, 52.046134], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 3,\n",
- " '1st_Road_Number': 509,\n",
- " '2nd_Road_Class': -1,\n",
- " '2nd_Road_Number': 0,\n",
- " 'Accident_Index': '201243S107122',\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
+ " 'LSOA_of_Accident_Location': 'E01016730',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.046134,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S009082',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 6,\n",
+ " '2nd_Road_Class': 6,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 5,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.749589,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 30,\n",
+ " 'Date': '04/08/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 8, 4, 18, 35),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.749589, 52.046134]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b7a7'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 5,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 1}],\n",
- " 'Date': '05/12/2012',\n",
- " 'Datetime': datetime.datetime(2012, 12, 5, 10, 20),\n",
- " 'Day_of_Week': 4,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': -1,\n",
- " 'Junction_Detail': 0,\n",
- " 'LSOA_of_Accident_Location': 'E01016768',\n",
- " 'Latitude': 52.05046,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 486012,\n",
- " 'Location_Northing_OSGR': 239864,\n",
- " 'Longitude': -0.747106,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 3,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 70,\n",
+ " '1st_Road_Number': 509,\n",
" 'Time': '10:20',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 5,\n",
- " 'Age_of_Vehicle': 2,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 7,\n",
- " 'Engine_Capacity_(CC)': 1388,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': 0,\n",
+ " 'Location_Northing_OSGR': 239864,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 486012,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 4,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 7,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1388,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': 6,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 7,\n",
- " 'Engine_Capacity_(CC)': 1995,\n",
+ " 'Age_Band_of_Driver': 5,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 2,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 7,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 4,\n",
+ " 'Engine_Capacity_(CC)': 1995,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 7,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': 6,\n",
+ " 'Vehicle_Manoeuvre': 4,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b7a7'),\n",
- " 'loc': {'coordinates': [-0.747106, 52.05046], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 6,\n",
- " '1st_Road_Number': 8206,\n",
- " '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1098,\n",
- " 'Accident_Index': '201243S044012',\n",
- " 'Accident_Severity': 2,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 10,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Junction_Detail': 0,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
+ " 'LSOA_of_Accident_Location': 'E01016768',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.05046,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S107122',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 3,\n",
+ " '2nd_Road_Class': -1,\n",
+ " 'Accident_Severity': 3,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.747106,\n",
+ " 'Junction_Control': -1,\n",
+ " 'Speed_limit': 70,\n",
+ " 'Date': '05/12/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 12, 5, 10, 20),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.747106, 52.05046]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b671'),\n",
+ " 'Casualties': [{'Casualty_Severity': 2,\n",
" 'Casualty_Class': 3,\n",
- " 'Casualty_Home_Area_Type': -1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 2,\n",
" 'Casualty_Type': 0,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': -1,\n",
" 'Pedestrian_Location': 9,\n",
- " 'Pedestrian_Movement': 5,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 10,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2},\n",
- " {'Age_Band_of_Casualty': 10,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 5,\n",
+ " 'Sex_of_Casualty': 2},\n",
+ " {'Casualty_Severity': 2,\n",
" 'Casualty_Class': 3,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 2,\n",
" 'Casualty_Type': 0,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 9,\n",
- " 'Pedestrian_Movement': 5,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 10,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2},\n",
- " {'Age_Band_of_Casualty': 10,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 5,\n",
+ " 'Sex_of_Casualty': 2},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 3,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 3,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 0,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 3,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 9,\n",
- " 'Pedestrian_Movement': 5,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 10,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '12/01/2012',\n",
- " 'Datetime': datetime.datetime(2012, 1, 12, 13, 25),\n",
- " 'Day_of_Week': 5,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 3,\n",
- " 'LSOA_of_Accident_Location': 'E01016730',\n",
- " 'Latitude': 52.042102,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 485770,\n",
- " 'Location_Northing_OSGR': 238930,\n",
- " 'Longitude': -0.750868,\n",
- " 'Number_of_Casualties': 3,\n",
- " 'Number_of_Vehicles': 5,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 5,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 30,\n",
+ " '1st_Road_Number': 8206,\n",
" 'Time': '13:25',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 4,\n",
- " 'Age_Band_of_Driver': 8,\n",
- " 'Age_of_Vehicle': 13,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 6,\n",
- " 'Engine_Capacity_(CC)': 1796,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 1098,\n",
+ " 'Location_Northing_OSGR': 238930,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 5,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 485770,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 5,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 6,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 8,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1796,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 3,\n",
- " 'Age_Band_of_Driver': 10,\n",
- " 'Age_of_Vehicle': 11,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 7,\n",
- " 'Engine_Capacity_(CC)': 1390,\n",
+ " 'Age_Band_of_Driver': 8,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 4,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 8,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
+ " 'Age_of_Vehicle': 13,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 7,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 8,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 7,\n",
+ " 'Engine_Capacity_(CC)': 1390,\n",
" 'Vehicle_Reference': 2,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
" 'Age_Band_of_Driver': 10,\n",
- " 'Age_of_Vehicle': 8,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 9,\n",
- " 'Engine_Capacity_(CC)': 1998,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 3,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 2,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
+ " 'Age_of_Vehicle': 11,\n",
+ " 'Vehicle_Manoeuvre': 7,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 2,\n",
+ " 'Engine_Capacity_(CC)': 1998,\n",
" 'Vehicle_Reference': 3,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 4,\n",
- " 'Age_Band_of_Driver': -1,\n",
- " 'Age_of_Vehicle': 1,\n",
- " 'Driver_Home_Area_Type': -1,\n",
- " 'Driver_IMD_Decile': -1,\n",
- " 'Engine_Capacity_(CC)': 1248,\n",
+ " 'Age_Band_of_Driver': 10,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 8,\n",
+ " 'Vehicle_Manoeuvre': 2,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': -1,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 2,\n",
- " 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 2,\n",
+ " 'Engine_Capacity_(CC)': 1248,\n",
" 'Vehicle_Reference': 4,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
" 'Age_Band_of_Driver': -1,\n",
- " 'Age_of_Vehicle': 14,\n",
- " 'Driver_Home_Area_Type': -1,\n",
- " 'Driver_IMD_Decile': -1,\n",
- " 'Engine_Capacity_(CC)': 1799,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 4,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': -1,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': 1,\n",
+ " 'Vehicle_Manoeuvre': 2,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': -1,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 2,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 3,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 2,\n",
+ " 'Engine_Capacity_(CC)': 1799,\n",
" 'Vehicle_Reference': 5,\n",
+ " 'Age_Band_of_Driver': -1,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 3,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': -1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 14,\n",
+ " 'Vehicle_Manoeuvre': 2,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b671'),\n",
- " 'loc': {'coordinates': [-0.750868, 52.042102], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 6,\n",
- " '1st_Road_Number': 9097,\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016730',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.042102,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S044012',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 6,\n",
" '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 8206,\n",
- " 'Accident_Index': '201243S055032',\n",
- " 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 7,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Accident_Severity': 2,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.750868,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 30,\n",
+ " 'Date': '12/01/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 1, 12, 13, 25),\n",
+ " 'Number_of_Casualties': 3,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.750868, 52.042102]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b69f'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 2,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 2,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 7,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '07/03/2012',\n",
- " 'Datetime': datetime.datetime(2012, 3, 7, 15, 0),\n",
- " 'Day_of_Week': 4,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 2,\n",
- " 'Junction_Control': 2,\n",
- " 'Junction_Detail': 6,\n",
- " 'LSOA_of_Accident_Location': 'E01016730',\n",
- " 'Latitude': 52.041035,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 485690,\n",
- " 'Location_Northing_OSGR': 238810,\n",
- " 'Longitude': -0.752064,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 3,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 30,\n",
+ " '1st_Road_Number': 9097,\n",
" 'Time': '15:00',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 4,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 12,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 9,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': 8206,\n",
+ " 'Location_Northing_OSGR': 238810,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 485690,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 4,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 1,\n",
+ " 'Skidding_and_Overturning': 0,\n",
+ " 'Towing_and_Articulation': 0,\n",
+ " 'Vehicle_Location-Restricted_Lane': 0,\n",
" 'Engine_Capacity_(CC)': 1396,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 6,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 4,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 1,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
+ " 'Age_of_Vehicle': 12,\n",
+ " 'Vehicle_Manoeuvre': 4,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 1,\n",
+ " 'Junction_Location': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 4,\n",
- " 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 3,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': 6,\n",
- " 'Driver_Home_Area_Type': 2,\n",
- " 'Driver_IMD_Decile': 9,\n",
" 'Engine_Capacity_(CC)': 1242,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 7,\n",
" 'Hit_Object_in_Carriageway': 10,\n",
" 'Hit_Object_off_Carriageway': 10,\n",
+ " '1st_Point_of_Impact': 3,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 1,\n",
+ " 'Driver_Home_Area_Type': 2,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
- " 'Skidding_and_Overturning': 0,\n",
- " 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 1,\n",
- " 'Vehicle_Location-Restricted_Lane': 0,\n",
+ " 'Age_of_Vehicle': 6,\n",
" 'Vehicle_Manoeuvre': 4,\n",
- " 'Vehicle_Reference': 2,\n",
- " 'Vehicle_Type': 9,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b69f'),\n",
- " 'loc': {'coordinates': [-0.752064, 52.041035], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 6,\n",
- " '1st_Road_Number': 8096,\n",
+ " 'Junction_Detail': 6,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016730',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.041035,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 2,\n",
+ " 'Accident_Index': '201243S055032',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 6,\n",
" '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1098,\n",
- " 'Accident_Index': '201243S025042',\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 1,\n",
- " 'Bus_or_Coach_Passenger': 4,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.752064,\n",
+ " 'Junction_Control': 2,\n",
+ " 'Speed_limit': 30,\n",
+ " 'Date': '07/03/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 3, 7, 15, 0),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.752064, 52.041035]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b615'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 11,\n",
- " 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
+ " 'Pedestrian_Location': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 1,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '10/04/2012',\n",
- " 'Datetime': datetime.datetime(2012, 4, 10, 18, 40),\n",
- " 'Day_of_Week': 3,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 3,\n",
- " 'LSOA_of_Accident_Location': 'E01016730',\n",
- " 'Latitude': 52.045228,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 485900,\n",
- " 'Location_Northing_OSGR': 239280,\n",
- " 'Longitude': -0.748885,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 4,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 3,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 30,\n",
+ " '1st_Road_Number': 8096,\n",
" 'Time': '18:40',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 4,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 8,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 2,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': 1098,\n",
+ " 'Location_Northing_OSGR': 239280,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 485900,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 3,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 2,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 1,\n",
+ " 'Skidding_and_Overturning': 0,\n",
+ " 'Towing_and_Articulation': 0,\n",
+ " 'Vehicle_Location-Restricted_Lane': 0,\n",
" 'Engine_Capacity_(CC)': 1061,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 6,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 4,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 1,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
+ " 'Age_of_Vehicle': 8,\n",
+ " 'Vehicle_Manoeuvre': 11,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 4,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 11,\n",
- " 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 3,\n",
- " 'Age_Band_of_Driver': 5,\n",
- " 'Age_of_Vehicle': 4,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 4,\n",
" 'Engine_Capacity_(CC)': 4250,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 5,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 3,\n",
+ " 'Vehicle_Type': 11,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 1,\n",
- " 'Junction_Location': 1,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 2,\n",
- " 'Skidding_and_Overturning': 0,\n",
- " 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
- " 'Vehicle_Location-Restricted_Lane': 0,\n",
+ " 'Age_of_Vehicle': 4,\n",
" 'Vehicle_Manoeuvre': 18,\n",
- " 'Vehicle_Reference': 2,\n",
- " 'Vehicle_Type': 11,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b615'),\n",
- " 'loc': {'coordinates': [-0.748885, 52.045228], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 6,\n",
- " '1st_Road_Number': 8206,\n",
- " '2nd_Road_Class': -1,\n",
- " '2nd_Road_Number': 0,\n",
- " 'Accident_Index': '201243S105042',\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
+ " 'LSOA_of_Accident_Location': 'E01016730',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.045228,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S025042',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 6,\n",
+ " '2nd_Road_Class': 6,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 5,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.748885,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 30,\n",
+ " 'Date': '10/04/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 4, 10, 18, 40),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.748885, 52.045228]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b79b'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 5,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 4,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 1,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 1,\n",
+ " 'Age_Band_of_Casualty': 4,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 1}],\n",
- " 'Date': '29/04/2012',\n",
- " 'Datetime': datetime.datetime(2012, 4, 29, 0, 58),\n",
- " 'Day_of_Week': 1,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': -1,\n",
- " 'Junction_Detail': 0,\n",
- " 'LSOA_of_Accident_Location': 'E01016730',\n",
- " 'Latitude': 52.042531,\n",
- " 'Light_Conditions': 4,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 485900,\n",
- " 'Location_Northing_OSGR': 238980,\n",
- " 'Longitude': -0.74896,\n",
- " 'Number_of_Casualties': 2,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 3,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 30,\n",
+ " '1st_Road_Number': 8206,\n",
" 'Time': '00:58',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 5,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 2,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': 0,\n",
+ " 'Location_Northing_OSGR': 238980,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 485900,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 1,\n",
+ " 'Light_Conditions': 4,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 2,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 0,\n",
+ " 'Skidding_and_Overturning': 0,\n",
+ " 'Towing_and_Articulation': 0,\n",
+ " 'Vehicle_Location-Restricted_Lane': 0,\n",
" 'Engine_Capacity_(CC)': -1,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 5,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 0,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': -1,\n",
- " 'Sex_of_Driver': 1,\n",
+ " 'Age_of_Vehicle': -1,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 2,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 0,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
- " 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 2,\n",
" 'Engine_Capacity_(CC)': -1,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 6,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
+ " 'Vehicle_Type': 8,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 1,\n",
- " 'Junction_Location': 0,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': -1,\n",
- " 'Sex_of_Driver': 1,\n",
- " 'Skidding_and_Overturning': 0,\n",
- " 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
- " 'Vehicle_Location-Restricted_Lane': 0,\n",
+ " 'Age_of_Vehicle': -1,\n",
" 'Vehicle_Manoeuvre': 2,\n",
- " 'Vehicle_Reference': 2,\n",
- " 'Vehicle_Type': 8,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 5,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b79b'),\n",
- " 'loc': {'coordinates': [-0.74896, 52.042531], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 6,\n",
- " '1st_Road_Number': 8206,\n",
- " '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1098,\n",
- " 'Accident_Index': '201243S128042',\n",
+ " 'Junction_Detail': 0,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016730',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.042531,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S105042',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 6,\n",
+ " '2nd_Road_Class': -1,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 4,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 1,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.74896,\n",
+ " 'Junction_Control': -1,\n",
+ " 'Speed_limit': 30,\n",
+ " 'Date': '29/04/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 4, 29, 0, 58),\n",
+ " 'Number_of_Casualties': 2,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.74896, 52.042531]},\n",
+ " 'Weather_Conditions': 5},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b811'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': -1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': -1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 1,\n",
+ " 'Age_Band_of_Casualty': 4,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 2,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 2,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 2,\n",
+ " 'Age_Band_of_Casualty': 2,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '29/04/2012',\n",
- " 'Datetime': datetime.datetime(2012, 4, 29, 13, 19),\n",
- " 'Day_of_Week': 1,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 6,\n",
- " 'LSOA_of_Accident_Location': 'E01016730',\n",
- " 'Latitude': 52.041827,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 485800,\n",
- " 'Location_Northing_OSGR': 238900,\n",
- " 'Longitude': -0.750438,\n",
- " 'Number_of_Casualties': 2,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 3,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 30,\n",
+ " '1st_Road_Number': 8206,\n",
" 'Time': '13:19',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 4,\n",
- " 'Age_Band_of_Driver': 10,\n",
- " 'Age_of_Vehicle': 3,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 4,\n",
- " 'Engine_Capacity_(CC)': 1991,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': 1098,\n",
+ " 'Location_Northing_OSGR': 238900,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 485800,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 1,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 4,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 8,\n",
- " 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1991,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': 1,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 9,\n",
- " 'Engine_Capacity_(CC)': 1797,\n",
+ " 'Age_Band_of_Driver': 10,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 4,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': 3,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 1,\n",
- " 'Propulsion_Code': 8,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1797,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 7,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 8,\n",
+ " 'Age_of_Vehicle': 1,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 2,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b811'),\n",
- " 'loc': {'coordinates': [-0.750438, 52.041827], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 6,\n",
- " '1st_Road_Number': 8096,\n",
+ " 'Junction_Detail': 6,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016730',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.041827,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S128042',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 6,\n",
" '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1098,\n",
- " 'Accident_Index': '201243S015062',\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 8,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.750438,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 30,\n",
+ " 'Date': '29/04/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 4, 29, 13, 19),\n",
+ " 'Number_of_Casualties': 2,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.750438, 52.041827]},\n",
+ " 'Weather_Conditions': 2},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b5ed'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 8,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '03/06/2012',\n",
- " 'Datetime': datetime.datetime(2012, 6, 3, 17, 25),\n",
- " 'Day_of_Week': 1,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 3,\n",
- " 'LSOA_of_Accident_Location': 'E01016730',\n",
- " 'Latitude': 52.045135,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 485920,\n",
- " 'Location_Northing_OSGR': 239270,\n",
- " 'Longitude': -0.748596,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 3,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 30,\n",
+ " '1st_Road_Number': 8096,\n",
" 'Time': '17:25',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 5,\n",
- " 'Age_of_Vehicle': 15,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 5,\n",
- " 'Engine_Capacity_(CC)': 1389,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': 1098,\n",
+ " 'Location_Northing_OSGR': 239270,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 485920,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 1,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 5,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 8,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Engine_Capacity_(CC)': 1389,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 8,\n",
- " 'Age_of_Vehicle': 10,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 10,\n",
- " 'Engine_Capacity_(CC)': 1422,\n",
+ " 'Age_Band_of_Driver': 5,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 15,\n",
+ " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 10,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 1,\n",
- " 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 1,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1422,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 8,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': 10,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 2,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b5ed'),\n",
- " 'loc': {'coordinates': [-0.748596, 52.045135], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 6,\n",
- " '1st_Road_Number': 8206,\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
+ " 'LSOA_of_Accident_Location': 'E01016730',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.045135,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S015062',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 6,\n",
" '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1098,\n",
- " 'Accident_Index': '201243S031062',\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 5,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 2,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.748596,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 30,\n",
+ " 'Date': '03/06/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 6, 3, 17, 25),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.748596, 52.045135]},\n",
+ " 'Weather_Conditions': 2},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b630'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 8,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 2,\n",
+ " 'Age_Band_of_Casualty': 5,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 4,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 2,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 3,\n",
- " 'Casualty_Reference': 3,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 8,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 3,\n",
+ " 'Casualty_Home_Area_Type': 3,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 2,\n",
+ " 'Age_Band_of_Casualty': 4,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 4,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 1,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 4,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 8,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 4,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 1,\n",
+ " 'Age_Band_of_Casualty': 4,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 5,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 5,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '07/06/2012',\n",
- " 'Datetime': datetime.datetime(2012, 6, 7, 17, 45),\n",
- " 'Day_of_Week': 5,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 6,\n",
- " 'LSOA_of_Accident_Location': 'E01016730',\n",
- " 'Latitude': 52.042447,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 485860,\n",
- " 'Location_Northing_OSGR': 238970,\n",
- " 'Longitude': -0.749546,\n",
- " 'Number_of_Casualties': 4,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 3,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 30,\n",
+ " '1st_Road_Number': 8206,\n",
" 'Time': '17:45',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 4,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 7,\n",
- " 'Driver_Home_Area_Type': -1,\n",
- " 'Driver_IMD_Decile': -1,\n",
- " 'Engine_Capacity_(CC)': 1896,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 1,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': 1098,\n",
+ " 'Location_Northing_OSGR': 238970,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 485860,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 5,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': -1,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 8,\n",
- " 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1896,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 8,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 5,\n",
- " 'Age_of_Vehicle': 13,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 9,\n",
- " 'Engine_Capacity_(CC)': 1360,\n",
+ " 'Age_Band_of_Driver': 6,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 1,\n",
- " 'Propulsion_Code': 1,\n",
+ " '1st_Point_of_Impact': 4,\n",
+ " 'Vehicle_Type': 8,\n",
" 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 1,\n",
+ " 'Driver_Home_Area_Type': -1,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': 7,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 1,\n",
" 'Skidding_and_Overturning': 1,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1360,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 5,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 13,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 2,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b630'),\n",
- " 'loc': {'coordinates': [-0.749546, 52.042447], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 6,\n",
- " '1st_Road_Number': 9097,\n",
- " '2nd_Road_Class': -1,\n",
- " '2nd_Road_Number': 0,\n",
- " 'Accident_Index': '201243S005072',\n",
+ " 'Junction_Detail': 6,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016730',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.042447,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S031062',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 6,\n",
+ " '2nd_Road_Class': 6,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 9,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.749546,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 30,\n",
+ " 'Date': '07/06/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 6, 7, 17, 45),\n",
+ " 'Number_of_Casualties': 4,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.749546, 52.042447]},\n",
+ " 'Weather_Conditions': 2},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b5c8'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 9,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '03/07/2012',\n",
- " 'Datetime': datetime.datetime(2012, 7, 3, 18, 30),\n",
- " 'Day_of_Week': 3,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': -1,\n",
- " 'Junction_Detail': 0,\n",
- " 'LSOA_of_Accident_Location': 'E01016730',\n",
- " 'Latitude': 52.040671,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 485720,\n",
- " 'Location_Northing_OSGR': 238770,\n",
- " 'Longitude': -0.751637,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 3,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 3,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 30,\n",
+ " '1st_Road_Number': 9097,\n",
" 'Time': '18:30',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 8,\n",
- " 'Driver_Home_Area_Type': 2,\n",
- " 'Driver_IMD_Decile': 8,\n",
- " 'Engine_Capacity_(CC)': 1149,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': 0,\n",
+ " 'Location_Northing_OSGR': 238770,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 3,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 485720,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 3,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 8,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 5,\n",
+ " 'Engine_Capacity_(CC)': 1149,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': 9,\n",
- " 'Age_of_Vehicle': 10,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 3,\n",
- " 'Engine_Capacity_(CC)': 1199,\n",
+ " 'Age_Band_of_Driver': 6,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 0,\n",
+ " 'Driver_Home_Area_Type': 2,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
+ " 'Age_of_Vehicle': 8,\n",
+ " 'Vehicle_Manoeuvre': 5,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 3,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 0,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 3,\n",
+ " 'Engine_Capacity_(CC)': 1199,\n",
" 'Vehicle_Reference': 2,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': 2,\n",
- " 'Driver_Home_Area_Type': 2,\n",
- " 'Driver_IMD_Decile': 5,\n",
- " 'Engine_Capacity_(CC)': 2696,\n",
+ " 'Age_Band_of_Driver': 9,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 10,\n",
+ " 'Vehicle_Manoeuvre': 3,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 5,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 3,\n",
+ " 'Engine_Capacity_(CC)': 2696,\n",
" 'Vehicle_Reference': 3,\n",
+ " 'Age_Band_of_Driver': 7,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 2,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': 2,\n",
+ " 'Vehicle_Manoeuvre': 3,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 2,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b5c8'),\n",
- " 'loc': {'coordinates': [-0.751637, 52.040671], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 6,\n",
- " '1st_Road_Number': 9097,\n",
- " '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 8206,\n",
- " 'Accident_Index': '201243S125102',\n",
+ " 'Junction_Detail': 0,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016730',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.040671,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S005072',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 6,\n",
+ " '2nd_Road_Class': -1,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 6,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.751637,\n",
+ " 'Junction_Control': -1,\n",
+ " 'Speed_limit': 30,\n",
+ " 'Date': '03/07/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 7, 3, 18, 30),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.751637, 52.040671]},\n",
+ " 'Weather_Conditions': 2},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b806'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 3,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 5,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 3,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '04/10/2012',\n",
- " 'Datetime': datetime.datetime(2012, 10, 4, 15, 29),\n",
- " 'Day_of_Week': 5,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 2,\n",
- " 'Junction_Detail': 6,\n",
- " 'LSOA_of_Accident_Location': 'E01016730',\n",
- " 'Latitude': 52.041307,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 485680,\n",
- " 'Location_Northing_OSGR': 238840,\n",
- " 'Longitude': -0.752202,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 3,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 30,\n",
+ " '1st_Road_Number': 9097,\n",
" 'Time': '15:29',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 7,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 5,\n",
- " 'Engine_Capacity_(CC)': 1596,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': 8206,\n",
+ " 'Location_Northing_OSGR': 238840,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 485680,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 5,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 5,\n",
+ " 'Vehicle_Leaving_Carriageway': 4,\n",
" 'Junction_Location': 8,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 4,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1596,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 1,\n",
" 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 6,\n",
- " 'Driver_Home_Area_Type': 3,\n",
- " 'Driver_IMD_Decile': 9,\n",
- " 'Engine_Capacity_(CC)': 599,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 8,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
+ " 'Age_of_Vehicle': 7,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 8,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 5,\n",
+ " 'Engine_Capacity_(CC)': 599,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 6,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
" 'Vehicle_Type': 5,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 3,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 6,\n",
+ " 'Vehicle_Manoeuvre': 5,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b806'),\n",
- " 'loc': {'coordinates': [-0.752202, 52.041307], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 6,\n",
- " '1st_Road_Number': 8096,\n",
+ " 'Junction_Detail': 6,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016730',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.041307,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S125102',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 6,\n",
" '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1098,\n",
- " 'Accident_Index': '201243S010112',\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 7,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.752202,\n",
+ " 'Junction_Control': 2,\n",
+ " 'Speed_limit': 30,\n",
+ " 'Date': '04/10/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 10, 4, 15, 29),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.752202, 52.041307]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b5db'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 7,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 7,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 7,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '04/11/2012',\n",
- " 'Datetime': datetime.datetime(2012, 11, 4, 16, 10),\n",
- " 'Day_of_Week': 1,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 6,\n",
- " 'LSOA_of_Accident_Location': 'E01016730',\n",
- " 'Latitude': 52.044433,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 485810,\n",
- " 'Location_Northing_OSGR': 239190,\n",
- " 'Longitude': -0.75022,\n",
- " 'Number_of_Casualties': 2,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 3,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 30,\n",
+ " '1st_Road_Number': 8096,\n",
" 'Time': '16:10',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': 9,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 8,\n",
- " 'Engine_Capacity_(CC)': 1587,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': 1098,\n",
+ " 'Location_Northing_OSGR': 239190,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 485810,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 1,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 8,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 6,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Engine_Capacity_(CC)': 1587,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 4,\n",
" 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': 7,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 2,\n",
- " 'Engine_Capacity_(CC)': 1796,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 8,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
+ " 'Age_of_Vehicle': 9,\n",
+ " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 2,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 8,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1796,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 7,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 4,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 7,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b5db'),\n",
- " 'loc': {'coordinates': [-0.75022, 52.044433], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 6,\n",
- " '1st_Road_Number': 9097,\n",
+ " 'Junction_Detail': 6,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016730',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.044433,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S010112',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 6,\n",
" '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 8206,\n",
- " 'Accident_Index': '201243S006122',\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 7,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.75022,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 30,\n",
+ " 'Date': '04/11/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 11, 4, 16, 10),\n",
+ " 'Number_of_Casualties': 2,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.75022, 52.044433]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b5ce'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 7,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '01/12/2012',\n",
- " 'Datetime': datetime.datetime(2012, 12, 1, 10, 45),\n",
- " 'Day_of_Week': 7,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 2,\n",
- " 'Junction_Detail': 6,\n",
- " 'LSOA_of_Accident_Location': 'E01016730',\n",
- " 'Latitude': 52.041106,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 485696,\n",
- " 'Location_Northing_OSGR': 238818,\n",
- " 'Longitude': -0.751975,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 3,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 30,\n",
+ " '1st_Road_Number': 9097,\n",
" 'Time': '10:45',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 5,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 6,\n",
- " 'Engine_Capacity_(CC)': 1896,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 1,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': 8206,\n",
+ " 'Location_Northing_OSGR': 238818,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 485696,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 7,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 6,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 1,\n",
- " 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 1,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 4,\n",
+ " 'Engine_Capacity_(CC)': 1896,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 8,\n",
- " 'Engine_Capacity_(CC)': 998,\n",
+ " 'Age_Band_of_Driver': 6,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 1,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': 5,\n",
+ " 'Vehicle_Manoeuvre': 4,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 8,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 1,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 4,\n",
+ " 'Engine_Capacity_(CC)': 998,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 7,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': -1,\n",
+ " 'Vehicle_Manoeuvre': 4,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b5ce'),\n",
- " 'loc': {'coordinates': [-0.751975, 52.041106], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 6,\n",
- " '1st_Road_Number': 1098,\n",
- " '2nd_Road_Class': -1,\n",
- " '2nd_Road_Number': 0,\n",
- " 'Accident_Index': '201243S132062',\n",
+ " 'Junction_Detail': 6,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016730',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.041106,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S006122',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 6,\n",
+ " '2nd_Road_Class': 6,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 4,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.751975,\n",
+ " 'Junction_Control': 2,\n",
+ " 'Speed_limit': 30,\n",
+ " 'Date': '01/12/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 12, 1, 10, 45),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.751975, 52.041106]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b821'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 3,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 0,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 5,\n",
- " 'Pedestrian_Movement': 9,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 4,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1}],\n",
- " 'Date': '21/06/2012',\n",
- " 'Datetime': datetime.datetime(2012, 6, 21, 18, 25),\n",
- " 'Day_of_Week': 5,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': -1,\n",
- " 'Junction_Detail': 0,\n",
- " 'LSOA_of_Accident_Location': 'E01016730',\n",
- " 'Latitude': 52.044838,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 485510,\n",
- " 'Location_Northing_OSGR': 239230,\n",
- " 'Longitude': -0.754583,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 1,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 9,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 30,\n",
+ " '1st_Road_Number': 1098,\n",
" 'Time': '18:25',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': 3,\n",
- " 'Driver_Home_Area_Type': 2,\n",
- " 'Driver_IMD_Decile': 8,\n",
- " 'Engine_Capacity_(CC)': 1968,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 0,\n",
+ " 'Location_Northing_OSGR': 239230,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 1,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 485510,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 5,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 8,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 1,\n",
+ " 'Engine_Capacity_(CC)': 1968,\n",
" 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 7,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 2,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': 3,\n",
+ " 'Vehicle_Manoeuvre': 1,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b821'),\n",
- " 'loc': {'coordinates': [-0.754583, 52.044838], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 6,\n",
- " '1st_Road_Number': 1098,\n",
- " '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1098,\n",
- " 'Accident_Index': '201243S123062',\n",
+ " 'Junction_Detail': 0,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016730',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.044838,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S132062',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 6,\n",
+ " '2nd_Road_Class': -1,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 4,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 1,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.754583,\n",
+ " 'Junction_Control': -1,\n",
+ " 'Speed_limit': 30,\n",
+ " 'Date': '21/06/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 6, 21, 18, 25),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.754583, 52.044838]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b7fd'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 1,\n",
+ " 'Age_Band_of_Casualty': 4,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 7,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 3,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 3,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 7,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '29/06/2012',\n",
- " 'Datetime': datetime.datetime(2012, 6, 29, 12, 40),\n",
- " 'Day_of_Week': 6,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 6,\n",
- " 'LSOA_of_Accident_Location': 'E01016730',\n",
- " 'Latitude': 52.041861,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 485580,\n",
- " 'Location_Northing_OSGR': 238900,\n",
- " 'Longitude': -0.753645,\n",
- " 'Number_of_Casualties': 2,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 30,\n",
+ " '1st_Road_Number': 1098,\n",
" 'Time': '12:40',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': -1,\n",
- " 'Age_of_Vehicle': 9,\n",
- " 'Driver_Home_Area_Type': -1,\n",
- " 'Driver_IMD_Decile': -1,\n",
- " 'Engine_Capacity_(CC)': 2198,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 1098,\n",
+ " 'Location_Northing_OSGR': 238900,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 485580,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 6,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': -1,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 1,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 3,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 2198,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': 9,\n",
- " 'Driver_Home_Area_Type': 3,\n",
- " 'Driver_IMD_Decile': 10,\n",
- " 'Engine_Capacity_(CC)': 1596,\n",
+ " 'Age_Band_of_Driver': -1,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 3,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 8,\n",
+ " 'Driver_Home_Area_Type': -1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
+ " 'Age_of_Vehicle': 9,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 10,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 8,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1596,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 7,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 3,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 9,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b7fd'),\n",
- " 'loc': {'coordinates': [-0.753645, 52.041861], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 6,\n",
- " '1st_Road_Number': 8106,\n",
+ " 'Junction_Detail': 6,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016730',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.041861,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S123062',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 6,\n",
" '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1098,\n",
- " 'Accident_Index': '201243S137072',\n",
- " 'Accident_Severity': 2,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 6,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Accident_Severity': 3,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.753645,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 30,\n",
+ " 'Date': '29/06/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 6, 29, 12, 40),\n",
+ " 'Number_of_Casualties': 2,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.753645, 52.041861]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b834'),\n",
+ " 'Casualties': [{'Casualty_Severity': 2,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 2,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 5,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 5,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '16/07/2012',\n",
- " 'Datetime': datetime.datetime(2012, 7, 16, 12, 46),\n",
- " 'Day_of_Week': 2,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 6,\n",
- " 'LSOA_of_Accident_Location': 'E01016730',\n",
- " 'Latitude': 52.043882,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 485300,\n",
- " 'Location_Northing_OSGR': 239120,\n",
- " 'Longitude': -0.757672,\n",
- " 'Number_of_Casualties': 2,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 3,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 30,\n",
+ " '1st_Road_Number': 8106,\n",
" 'Time': '12:46',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 8,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 6,\n",
- " 'Engine_Capacity_(CC)': 2378,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': 1098,\n",
+ " 'Location_Northing_OSGR': 239120,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 485300,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 2,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 6,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 8,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 2378,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 3,\n",
- " 'Age_Band_of_Driver': 5,\n",
- " 'Age_of_Vehicle': 1,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 3,\n",
- " 'Engine_Capacity_(CC)': 1149,\n",
+ " 'Age_Band_of_Driver': 6,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 1,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
+ " 'Age_of_Vehicle': 8,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 3,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1149,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 5,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 3,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 1,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b834'),\n",
- " 'loc': {'coordinates': [-0.757672, 52.043882], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 6,\n",
- " '1st_Road_Number': 8106,\n",
- " '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1098,\n",
- " 'Accident_Index': '201243S111072',\n",
- " 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 8,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
- " 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
- " 'Casualty_Type': 9,\n",
- " 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
- " 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 1}],\n",
- " 'Date': '27/07/2012',\n",
- " 'Datetime': datetime.datetime(2012, 7, 27, 16, 34),\n",
- " 'Day_of_Week': 6,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
" 'Junction_Detail': 6,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
" 'LSOA_of_Accident_Location': 'E01016730',\n",
- " 'Latitude': 52.043352,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 485240,\n",
- " 'Location_Northing_OSGR': 239060,\n",
- " 'Longitude': -0.758561,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
" 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.043882,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S137072',\n",
" 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
- " 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 3,\n",
+ " '1st_Road_Class': 6,\n",
+ " '2nd_Road_Class': 6,\n",
+ " 'Accident_Severity': 2,\n",
" 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.757672,\n",
+ " 'Junction_Control': 4,\n",
" 'Speed_limit': 30,\n",
+ " 'Date': '16/07/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 7, 16, 12, 46),\n",
+ " 'Number_of_Casualties': 2,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.757672, 52.043882]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b7bc'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
+ " 'Casualty_Class': 1,\n",
+ " 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
+ " 'Pedestrian_Location': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 8,\n",
+ " 'Pedestrian_Road_Maintenance_Worker': 0,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
+ " 'Road_Surface_Conditions': 1,\n",
+ " '1st_Road_Number': 8106,\n",
" 'Time': '16:34',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 4,\n",
- " 'Age_Band_of_Driver': 8,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 9,\n",
- " 'Engine_Capacity_(CC)': 1596,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': 1098,\n",
+ " 'Location_Northing_OSGR': 239060,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 485240,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 6,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 8,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Engine_Capacity_(CC)': 1596,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 3,\n",
" 'Age_Band_of_Driver': 8,\n",
- " 'Age_of_Vehicle': 12,\n",
- " 'Driver_Home_Area_Type': 2,\n",
- " 'Driver_IMD_Decile': 6,\n",
- " 'Engine_Capacity_(CC)': 2151,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 1,\n",
+ " '1st_Point_of_Impact': 4,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': -1,\n",
+ " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 6,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 1,\n",
- " 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 2151,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 8,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 3,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 1,\n",
+ " 'Driver_Home_Area_Type': 2,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': 12,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b7bc'),\n",
- " 'loc': {'coordinates': [-0.758561, 52.043352], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 6,\n",
- " '1st_Road_Number': 1098,\n",
- " '2nd_Road_Class': -1,\n",
- " '2nd_Road_Number': 0,\n",
- " 'Accident_Index': '201243S140072',\n",
+ " 'Junction_Detail': 6,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016730',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.043352,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S111072',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 6,\n",
+ " '2nd_Road_Class': 6,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 9,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 1,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.758561,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 30,\n",
+ " 'Date': '27/07/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 7, 27, 16, 34),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.758561, 52.043352]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b83a'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 8,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 1,\n",
+ " 'Age_Band_of_Casualty': 9,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '30/07/2012',\n",
- " 'Datetime': datetime.datetime(2012, 7, 30, 13, 35),\n",
- " 'Day_of_Week': 2,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': -1,\n",
- " 'Junction_Detail': 0,\n",
- " 'LSOA_of_Accident_Location': 'E01016730',\n",
- " 'Latitude': 52.044412,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 485360,\n",
- " 'Location_Northing_OSGR': 239180,\n",
- " 'Longitude': -0.756782,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 30,\n",
+ " '1st_Road_Number': 1098,\n",
" 'Time': '13:35',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': -1,\n",
- " 'Age_of_Vehicle': 5,\n",
- " 'Driver_Home_Area_Type': -1,\n",
- " 'Driver_IMD_Decile': -1,\n",
- " 'Engine_Capacity_(CC)': 1995,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 0,\n",
+ " 'Location_Northing_OSGR': 239180,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 485360,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 2,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': -1,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 1,\n",
+ " 'Engine_Capacity_(CC)': 1995,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': 5,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 2,\n",
- " 'Engine_Capacity_(CC)': 1995,\n",
+ " 'Age_Band_of_Driver': -1,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 0,\n",
+ " 'Driver_Home_Area_Type': -1,\n",
" 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 1,\n",
+ " 'Age_of_Vehicle': 5,\n",
+ " 'Vehicle_Manoeuvre': 1,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 2,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 0,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 1,\n",
+ " 'Engine_Capacity_(CC)': 1995,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 7,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
" 'Vehicle_Type': 8,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': 5,\n",
+ " 'Vehicle_Manoeuvre': 1,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b83a'),\n",
- " 'loc': {'coordinates': [-0.756782, 52.044412], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 6,\n",
- " '1st_Road_Number': 8096,\n",
- " '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 9097,\n",
- " 'Accident_Index': '201243S103082',\n",
+ " 'Junction_Detail': 0,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016730',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.044412,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S140072',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 6,\n",
+ " '2nd_Road_Class': -1,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 8,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.756782,\n",
+ " 'Junction_Control': -1,\n",
+ " 'Speed_limit': 30,\n",
+ " 'Date': '30/07/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 7, 30, 13, 35),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.756782, 52.044412]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b790'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 8,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 4,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 4,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '23/08/2012',\n",
- " 'Datetime': datetime.datetime(2012, 8, 23, 14, 41),\n",
- " 'Day_of_Week': 5,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 2,\n",
- " 'Junction_Detail': 6,\n",
- " 'LSOA_of_Accident_Location': 'E01016730',\n",
- " 'Latitude': 52.042673,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 485560,\n",
- " 'Location_Northing_OSGR': 238990,\n",
- " 'Longitude': -0.753914,\n",
- " 'Number_of_Casualties': 2,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 3,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 30,\n",
+ " '1st_Road_Number': 8096,\n",
" 'Time': '14:41',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 8,\n",
- " 'Age_of_Vehicle': 8,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 7,\n",
- " 'Engine_Capacity_(CC)': 1896,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': 9097,\n",
+ " 'Location_Northing_OSGR': 238990,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 485560,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 5,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 7,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 1,\n",
- " 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1896,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': 4,\n",
- " 'Age_of_Vehicle': 12,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 8,\n",
- " 'Engine_Capacity_(CC)': 1299,\n",
+ " 'Age_Band_of_Driver': 8,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': 8,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 8,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 1,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 3,\n",
+ " 'Engine_Capacity_(CC)': 1299,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 4,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 12,\n",
+ " 'Vehicle_Manoeuvre': 3,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b790'),\n",
- " 'loc': {'coordinates': [-0.753914, 52.042673], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 6,\n",
- " '1st_Road_Number': 8096,\n",
- " '2nd_Road_Class': -1,\n",
- " '2nd_Road_Number': 0,\n",
- " 'Accident_Index': '201243S045112',\n",
- " 'Accident_Severity': 2,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 11,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Junction_Detail': 6,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016730',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.042673,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S103082',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 6,\n",
+ " '2nd_Road_Class': 6,\n",
+ " 'Accident_Severity': 3,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.753914,\n",
+ " 'Junction_Control': 2,\n",
+ " 'Speed_limit': 30,\n",
+ " 'Date': '23/08/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 8, 23, 14, 41),\n",
+ " 'Number_of_Casualties': 2,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.753914, 52.042673]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b676'),\n",
+ " 'Casualties': [{'Casualty_Severity': 2,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 2,\n",
" 'Casualty_Type': 90,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 11,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 1}],\n",
- " 'Date': '10/11/2012',\n",
- " 'Datetime': datetime.datetime(2012, 11, 10, 15, 30),\n",
- " 'Day_of_Week': 7,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': -1,\n",
- " 'Junction_Detail': 0,\n",
- " 'LSOA_of_Accident_Location': 'E01016730',\n",
- " 'Latitude': 52.042416,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 485480,\n",
- " 'Location_Northing_OSGR': 238960,\n",
- " 'Longitude': -0.755088,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 8,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 3,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 30,\n",
+ " '1st_Road_Number': 8096,\n",
" 'Time': '15:30',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 4,\n",
- " 'Age_Band_of_Driver': 11,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 5,\n",
- " 'Engine_Capacity_(CC)': -1,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': 0,\n",
+ " 'Location_Northing_OSGR': 238960,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 485480,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 7,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 5,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': -1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 5,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 5,\n",
+ " 'Engine_Capacity_(CC)': -1,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 90,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 3,\n",
- " 'Age_Band_of_Driver': 8,\n",
- " 'Age_of_Vehicle': 6,\n",
- " 'Driver_Home_Area_Type': -1,\n",
- " 'Driver_IMD_Decile': -1,\n",
- " 'Engine_Capacity_(CC)': 9000,\n",
+ " 'Age_Band_of_Driver': 11,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 1,\n",
+ " '1st_Point_of_Impact': 4,\n",
+ " 'Vehicle_Type': 90,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': -1,\n",
+ " 'Age_of_Vehicle': -1,\n",
+ " 'Vehicle_Manoeuvre': 5,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': -1,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 9000,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 8,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 3,\n",
" 'Vehicle_Type': 11,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 1,\n",
+ " 'Driver_Home_Area_Type': -1,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': 6,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b676'),\n",
- " 'loc': {'coordinates': [-0.755088, 52.042416], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 6,\n",
- " '1st_Road_Number': 8106,\n",
+ " 'Junction_Detail': 0,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016730',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.042416,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S045112',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 8,\n",
+ " '1st_Road_Class': 6,\n",
" '2nd_Road_Class': -1,\n",
- " '2nd_Road_Number': 0,\n",
- " 'Accident_Index': '201243S023122',\n",
" 'Accident_Severity': 2,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 2,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.755088,\n",
+ " 'Junction_Control': -1,\n",
+ " 'Speed_limit': 30,\n",
+ " 'Date': '10/11/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 11, 10, 15, 30),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.755088, 52.042416]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b60e'),\n",
+ " 'Casualties': [{'Casualty_Severity': 2,\n",
" 'Casualty_Class': 3,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 2,\n",
" 'Casualty_Type': 0,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 1,\n",
- " 'Pedestrian_Movement': 1,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 2,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1}],\n",
- " 'Date': '08/12/2012',\n",
- " 'Datetime': datetime.datetime(2012, 12, 8, 13, 35),\n",
- " 'Day_of_Week': 7,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': -1,\n",
- " 'Junction_Detail': 0,\n",
- " 'LSOA_of_Accident_Location': 'E01016730',\n",
- " 'Latitude': 52.043724,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 485272,\n",
- " 'Location_Northing_OSGR': 239102,\n",
- " 'Longitude': -0.758084,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 1,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 8,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 1,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 3,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 30,\n",
+ " '1st_Road_Number': 8106,\n",
" 'Time': '13:35',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 4,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': 3,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 10,\n",
- " 'Engine_Capacity_(CC)': 1968,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': 0,\n",
+ " 'Location_Northing_OSGR': 239102,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 1,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 485272,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 7,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 10,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1968,\n",
" 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 7,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 4,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': 3,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b60e'),\n",
- " 'loc': {'coordinates': [-0.758084, 52.043724], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 6,\n",
- " '1st_Road_Number': 1098,\n",
+ " 'Junction_Detail': 0,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016730',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.043724,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S023122',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 8,\n",
+ " '1st_Road_Class': 6,\n",
" '2nd_Road_Class': -1,\n",
- " '2nd_Road_Number': 0,\n",
- " 'Accident_Index': '201243S075012',\n",
- " 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 9,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Accident_Severity': 2,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.758084,\n",
+ " 'Junction_Control': -1,\n",
+ " 'Speed_limit': 30,\n",
+ " 'Date': '08/12/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 12, 8, 13, 35),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.758084, 52.043724]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b701'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 3,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 0,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 5,\n",
- " 'Pedestrian_Movement': 1,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 9,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 1}],\n",
- " 'Date': '18/01/2012',\n",
- " 'Datetime': datetime.datetime(2012, 1, 18, 17, 10),\n",
- " 'Day_of_Week': 4,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': -1,\n",
- " 'Junction_Detail': 0,\n",
- " 'LSOA_of_Accident_Location': 'E01016730',\n",
- " 'Latitude': 52.041592,\n",
- " 'Light_Conditions': 4,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 484990,\n",
- " 'Location_Northing_OSGR': 238860,\n",
- " 'Longitude': -0.762255,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 1,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 1,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 30,\n",
+ " '1st_Road_Number': 1098,\n",
" 'Time': '17:10',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 4,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': 14,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 4,\n",
- " 'Engine_Capacity_(CC)': 1781,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 0,\n",
+ " 'Location_Northing_OSGR': 238860,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 1,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 484990,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 4,\n",
+ " 'Light_Conditions': 4,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 4,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1781,\n",
" 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 7,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 4,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 14,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b701'),\n",
- " 'loc': {'coordinates': [-0.762255, 52.041592], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 6,\n",
- " '1st_Road_Number': 1098,\n",
- " '2nd_Road_Class': -1,\n",
- " '2nd_Road_Number': 0,\n",
- " 'Accident_Index': '201243S008032',\n",
- " 'Accident_Severity': 2,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 7,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
- " 'Casualty_Class': 3,\n",
- " 'Casualty_Home_Area_Type': -1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 2,\n",
- " 'Casualty_Type': 0,\n",
- " 'Pedestrian_Location': 10,\n",
- " 'Pedestrian_Movement': 6,\n",
- " 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1}],\n",
- " 'Date': '01/03/2012',\n",
- " 'Datetime': datetime.datetime(2012, 3, 1, 22, 16),\n",
- " 'Day_of_Week': 5,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': -1,\n",
" 'Junction_Detail': 0,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
" 'LSOA_of_Accident_Location': 'E01016730',\n",
- " 'Latitude': 52.043358,\n",
- " 'Light_Conditions': 4,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 485200,\n",
- " 'Location_Northing_OSGR': 239060,\n",
- " 'Longitude': -0.759144,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 1,\n",
" 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.041592,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S075012',\n",
" 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
- " 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 6,\n",
+ " '1st_Road_Class': 6,\n",
+ " '2nd_Road_Class': -1,\n",
+ " 'Accident_Severity': 3,\n",
" 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.762255,\n",
+ " 'Junction_Control': -1,\n",
" 'Speed_limit': 30,\n",
+ " 'Date': '18/01/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 1, 18, 17, 10),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.762255, 52.041592]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b5d1'),\n",
+ " 'Casualties': [{'Casualty_Severity': 2,\n",
+ " 'Casualty_Class': 3,\n",
+ " 'Casualty_Type': 0,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': -1,\n",
+ " 'Pedestrian_Location': 10,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 7,\n",
+ " 'Pedestrian_Road_Maintenance_Worker': 0,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 6,\n",
+ " 'Sex_of_Casualty': 1}],\n",
+ " 'Road_Surface_Conditions': 1,\n",
+ " '1st_Road_Number': 1098,\n",
" 'Time': '22:16',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': 9,\n",
- " 'Age_of_Vehicle': 1,\n",
- " 'Driver_Home_Area_Type': -1,\n",
- " 'Driver_IMD_Decile': -1,\n",
- " 'Engine_Capacity_(CC)': 2402,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 0,\n",
+ " 'Location_Northing_OSGR': 239060,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 1,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 485200,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 5,\n",
+ " 'Light_Conditions': 4,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': -1,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 1,\n",
+ " 'Engine_Capacity_(CC)': 2402,\n",
" 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 9,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
" 'Vehicle_Type': 19,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': -1,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': 1,\n",
+ " 'Vehicle_Manoeuvre': 1,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 9,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b5d1'),\n",
- " 'loc': {'coordinates': [-0.759144, 52.043358], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 157,\n",
- " '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 8096,\n",
- " 'Accident_Index': '201243S063042',\n",
- " 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 9,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Junction_Detail': 0,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016730',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.043358,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S008032',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 6,\n",
+ " '2nd_Road_Class': -1,\n",
+ " 'Accident_Severity': 2,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.759144,\n",
+ " 'Junction_Control': -1,\n",
+ " 'Speed_limit': 30,\n",
+ " 'Date': '01/03/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 3, 1, 22, 16),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.759144, 52.043358]},\n",
+ " 'Weather_Conditions': 9},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b6ca'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 9,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 5,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 5,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '19/04/2012',\n",
- " 'Datetime': datetime.datetime(2012, 4, 19, 8, 50),\n",
- " 'Day_of_Week': 5,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 2,\n",
- " 'Junction_Detail': 6,\n",
- " 'LSOA_of_Accident_Location': 'E01016730',\n",
- " 'Latitude': 52.040393,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 485190,\n",
- " 'Location_Northing_OSGR': 238730,\n",
- " 'Longitude': -0.759372,\n",
- " 'Number_of_Casualties': 2,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 3,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 30,\n",
+ " '1st_Road_Number': 157,\n",
" 'Time': '08:50',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 9,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 9,\n",
- " 'Engine_Capacity_(CC)': 1598,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': 8096,\n",
+ " 'Location_Northing_OSGR': 238730,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 485190,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 5,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 1,\n",
- " 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1598,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': 5,\n",
- " 'Age_of_Vehicle': 13,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 5,\n",
- " 'Engine_Capacity_(CC)': 1597,\n",
+ " 'Age_Band_of_Driver': 9,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': -1,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 5,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 1,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 3,\n",
+ " 'Engine_Capacity_(CC)': 1597,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 5,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 13,\n",
+ " 'Vehicle_Manoeuvre': 3,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b6ca'),\n",
- " 'loc': {'coordinates': [-0.759372, 52.040393], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 157,\n",
+ " 'Junction_Detail': 6,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016730',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.040393,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S063042',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
" '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 8106,\n",
- " 'Accident_Index': '201243S123042',\n",
- " 'Accident_Severity': 2,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 10,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 2,\n",
+ " 'Accident_Severity': 3,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.759372,\n",
+ " 'Junction_Control': 2,\n",
+ " 'Speed_limit': 30,\n",
+ " 'Date': '19/04/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 4, 19, 8, 50),\n",
+ " 'Number_of_Casualties': 2,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.759372, 52.040393]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b7fb'),\n",
+ " 'Casualties': [{'Casualty_Severity': 2,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 2,\n",
" 'Casualty_Type': 8,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 2,\n",
+ " 'Age_Band_of_Casualty': 10,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 10,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 2,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 3,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 8,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 3,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 2,\n",
+ " 'Age_Band_of_Casualty': 10,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 6,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '28/04/2012',\n",
- " 'Datetime': datetime.datetime(2012, 4, 28, 22, 15),\n",
- " 'Day_of_Week': 7,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 2,\n",
- " 'Junction_Detail': 6,\n",
- " 'LSOA_of_Accident_Location': 'E01016730',\n",
- " 'Latitude': 52.042123,\n",
- " 'Light_Conditions': 4,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 485050,\n",
- " 'Location_Northing_OSGR': 238920,\n",
- " 'Longitude': -0.761366,\n",
- " 'Number_of_Casualties': 3,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 3,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 30,\n",
+ " '1st_Road_Number': 157,\n",
" 'Time': '22:15',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 4,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': 3,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 2,\n",
- " 'Engine_Capacity_(CC)': 1997,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 1,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': 8106,\n",
+ " 'Location_Northing_OSGR': 238920,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 485050,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 7,\n",
+ " 'Light_Conditions': 4,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 2,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 8,\n",
- " 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 2,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1997,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 8,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 10,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 10,\n",
- " 'Engine_Capacity_(CC)': 2198,\n",
+ " 'Age_Band_of_Driver': 7,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 8,\n",
- " 'Propulsion_Code': 1,\n",
+ " '1st_Point_of_Impact': 4,\n",
+ " 'Vehicle_Type': 8,\n",
" 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 1,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': 3,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 10,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 8,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 2198,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 6,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 10,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 5,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b7fb'),\n",
- " 'loc': {'coordinates': [-0.761366, 52.042123], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 157,\n",
+ " 'Junction_Detail': 6,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016730',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.042123,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S123042',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
" '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 8106,\n",
- " 'Accident_Index': '201243S104112',\n",
" 'Accident_Severity': 2,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 10,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.761366,\n",
+ " 'Junction_Control': 2,\n",
+ " 'Speed_limit': 30,\n",
+ " 'Date': '28/04/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 4, 28, 22, 15),\n",
+ " 'Number_of_Casualties': 3,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.761366, 52.042123]},\n",
+ " 'Weather_Conditions': 5},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b798'),\n",
+ " 'Casualties': [{'Casualty_Severity': 2,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 2,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 10,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 1}],\n",
- " 'Date': '24/11/2012',\n",
- " 'Datetime': datetime.datetime(2012, 11, 24, 9, 8),\n",
- " 'Day_of_Week': 7,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 2,\n",
- " 'Junction_Detail': 6,\n",
- " 'LSOA_of_Accident_Location': 'E01016730',\n",
- " 'Latitude': 52.042215,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 485030,\n",
- " 'Location_Northing_OSGR': 238930,\n",
- " 'Longitude': -0.761655,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 1,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 3,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 30,\n",
+ " '1st_Road_Number': 157,\n",
" 'Time': '09:08',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 10,\n",
- " 'Age_of_Vehicle': 8,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 5,\n",
- " 'Engine_Capacity_(CC)': 1299,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 10,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': 8106,\n",
+ " 'Location_Northing_OSGR': 238930,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 1,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 485030,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 7,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 5,\n",
+ " 'Vehicle_Leaving_Carriageway': 1,\n",
" 'Junction_Location': 8,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 1,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 1,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 6,\n",
+ " 'Engine_Capacity_(CC)': 1299,\n",
" 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 10,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 10,\n",
+ " '1st_Point_of_Impact': 1,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 8,\n",
+ " 'Vehicle_Manoeuvre': 6,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b798'),\n",
- " 'loc': {'coordinates': [-0.761655, 52.042215], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 6,\n",
- " '1st_Road_Number': 8106,\n",
+ " 'Junction_Detail': 6,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016730',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.042215,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S104112',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
" '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1098,\n",
- " 'Accident_Index': '201243S027122',\n",
- " 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 7,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Accident_Severity': 2,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.761655,\n",
+ " 'Junction_Control': 2,\n",
+ " 'Speed_limit': 30,\n",
+ " 'Date': '24/11/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 11, 24, 9, 8),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.761655, 52.042215]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b620'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 8,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 7,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 8,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 8,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '07/12/2012',\n",
- " 'Datetime': datetime.datetime(2012, 12, 7, 19, 0),\n",
- " 'Day_of_Week': 6,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 6,\n",
- " 'LSOA_of_Accident_Location': 'E01016730',\n",
- " 'Latitude': 52.042913,\n",
- " 'Light_Conditions': 4,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 485169,\n",
- " 'Location_Northing_OSGR': 239010,\n",
- " 'Longitude': -0.759609,\n",
- " 'Number_of_Casualties': 2,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 3,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 30,\n",
+ " '1st_Road_Number': 8106,\n",
" 'Time': '19:00',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': 4,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 4,\n",
- " 'Engine_Capacity_(CC)': 1998,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': 1098,\n",
+ " 'Location_Northing_OSGR': 239010,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 485169,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 6,\n",
+ " 'Light_Conditions': 4,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 4,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 8,\n",
- " 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Engine_Capacity_(CC)': 1998,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 8,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 8,\n",
- " 'Age_of_Vehicle': 8,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 10,\n",
- " 'Engine_Capacity_(CC)': 1240,\n",
+ " 'Age_Band_of_Driver': 7,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 8,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': 4,\n",
+ " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 10,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 8,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1240,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 8,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 8,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b620'),\n",
- " 'loc': {'coordinates': [-0.759609, 52.042913], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 157,\n",
+ " 'Junction_Detail': 6,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016730',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.042913,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S027122',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 6,\n",
" '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 8106,\n",
- " 'Accident_Index': '201243S137122',\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 9,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.759609,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 30,\n",
+ " 'Date': '07/12/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 12, 7, 19, 0),\n",
+ " 'Number_of_Casualties': 2,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.759609, 52.042913]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b835'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 9,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '28/12/2012',\n",
- " 'Datetime': datetime.datetime(2012, 12, 28, 12, 6),\n",
- " 'Day_of_Week': 6,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 2,\n",
- " 'Junction_Control': 2,\n",
- " 'Junction_Detail': 6,\n",
- " 'LSOA_of_Accident_Location': 'E01016730',\n",
- " 'Latitude': 52.042283,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 485058,\n",
- " 'Location_Northing_OSGR': 238938,\n",
- " 'Longitude': -0.761245,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 3,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 30,\n",
+ " '1st_Road_Number': 157,\n",
" 'Time': '12:06',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 8,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 7,\n",
- " 'Engine_Capacity_(CC)': -1,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 5,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': 8106,\n",
+ " 'Location_Northing_OSGR': 238938,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 485058,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 6,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 7,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 1,\n",
- " 'Propulsion_Code': -1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 5,\n",
+ " 'Engine_Capacity_(CC)': -1,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': 9,\n",
- " 'Age_of_Vehicle': 3,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 7,\n",
- " 'Engine_Capacity_(CC)': 1596,\n",
+ " 'Age_Band_of_Driver': 8,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 5,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': -1,\n",
+ " 'Age_of_Vehicle': -1,\n",
+ " 'Vehicle_Manoeuvre': 5,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 7,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 1,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 5,\n",
+ " 'Engine_Capacity_(CC)': 1596,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 9,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 5,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 3,\n",
+ " 'Vehicle_Manoeuvre': 5,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 2,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b835'),\n",
- " 'loc': {'coordinates': [-0.761245, 52.042283], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 6,\n",
- " '1st_Road_Number': 1145,\n",
+ " 'Junction_Detail': 6,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016730',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.042283,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 2,\n",
+ " 'Accident_Index': '201243S137122',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
" '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1145,\n",
- " 'Accident_Index': '201243S085012',\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 7,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.761245,\n",
+ " 'Junction_Control': 2,\n",
+ " 'Speed_limit': 30,\n",
+ " 'Date': '28/12/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 12, 28, 12, 6),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.761245, 52.042283]},\n",
+ " 'Weather_Conditions': 2},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b731'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 8,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 7,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '25/01/2012',\n",
- " 'Datetime': datetime.datetime(2012, 1, 25, 8, 45),\n",
- " 'Day_of_Week': 4,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 3,\n",
- " 'LSOA_of_Accident_Location': 'E01016721',\n",
- " 'Latitude': 52.047621,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 484950,\n",
- " 'Location_Northing_OSGR': 239530,\n",
- " 'Longitude': -0.762672,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 30,\n",
+ " '1st_Road_Number': 1145,\n",
" 'Time': '08:45',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 3,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 11,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 1,\n",
- " 'Engine_Capacity_(CC)': 1896,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 1145,\n",
+ " 'Location_Northing_OSGR': 239530,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 484950,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 4,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 1,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 6,\n",
- " 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 7,\n",
+ " 'Engine_Capacity_(CC)': 1896,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 3,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': 5,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 5,\n",
- " 'Engine_Capacity_(CC)': 2231,\n",
+ " 'Age_Band_of_Driver': 6,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 1,\n",
- " 'Junction_Location': 1,\n",
- " 'Propulsion_Code': 2,\n",
+ " '1st_Point_of_Impact': 3,\n",
+ " 'Vehicle_Type': 9,\n",
" 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': 11,\n",
+ " 'Vehicle_Manoeuvre': 7,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 5,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 2231,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 7,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 3,\n",
" 'Vehicle_Type': 8,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 1,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': 5,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b731'),\n",
- " 'loc': {'coordinates': [-0.762672, 52.047621], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 6,\n",
- " '1st_Road_Number': 1145,\n",
- " '2nd_Road_Class': -1,\n",
- " '2nd_Road_Number': 0,\n",
- " 'Accident_Index': '201243S113052',\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016721',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.047621,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S085012',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 6,\n",
+ " '2nd_Road_Class': 6,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 6,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.762672,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 30,\n",
+ " 'Date': '25/01/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 1, 25, 8, 45),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.762672, 52.047621]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b7c6'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '23/05/2012',\n",
- " 'Datetime': datetime.datetime(2012, 5, 23, 15, 28),\n",
- " 'Day_of_Week': 4,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': -1,\n",
- " 'Junction_Detail': 0,\n",
- " 'LSOA_of_Accident_Location': 'E01016721',\n",
- " 'Latitude': 52.047444,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 484930,\n",
- " 'Location_Northing_OSGR': 239510,\n",
- " 'Longitude': -0.762968,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 30,\n",
+ " '1st_Road_Number': 1145,\n",
" 'Time': '15:28',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': 11,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 4,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 0,\n",
+ " 'Location_Northing_OSGR': 239510,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 484930,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 4,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 4,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 0,\n",
+ " 'Skidding_and_Overturning': 0,\n",
+ " 'Towing_and_Articulation': 0,\n",
+ " 'Vehicle_Location-Restricted_Lane': 0,\n",
" 'Engine_Capacity_(CC)': 1998,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 7,\n",
" 'Hit_Object_in_Carriageway': 4,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 19,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 0,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 1,\n",
+ " 'Age_of_Vehicle': 11,\n",
+ " 'Vehicle_Manoeuvre': 14,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 4,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 0,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 14,\n",
- " 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 19,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 15,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 4,\n",
" 'Engine_Capacity_(CC)': 1948,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 6,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 0,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
- " 'Skidding_and_Overturning': 0,\n",
- " 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
- " 'Vehicle_Location-Restricted_Lane': 0,\n",
+ " 'Age_of_Vehicle': 15,\n",
" 'Vehicle_Manoeuvre': 2,\n",
- " 'Vehicle_Reference': 2,\n",
- " 'Vehicle_Type': 9,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b7c6'),\n",
- " 'loc': {'coordinates': [-0.762968, 52.047444], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 6,\n",
- " '1st_Road_Number': 1145,\n",
- " '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1145,\n",
- " 'Accident_Index': '201243S168122',\n",
+ " 'Junction_Detail': 0,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016721',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.047444,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S113052',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 6,\n",
+ " '2nd_Road_Class': -1,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 4,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.762968,\n",
+ " 'Junction_Control': -1,\n",
+ " 'Speed_limit': 30,\n",
+ " 'Date': '23/05/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 5, 23, 15, 28),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.762968, 52.047444]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b855'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 3,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 4,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1}],\n",
- " 'Date': '31/12/2012',\n",
- " 'Datetime': datetime.datetime(2012, 12, 31, 11, 50),\n",
- " 'Day_of_Week': 2,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 1,\n",
- " 'LSOA_of_Accident_Location': 'E01016718',\n",
- " 'Latitude': 52.050207,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 485084,\n",
- " 'Location_Northing_OSGR': 239820,\n",
- " 'Longitude': -0.760646,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 1,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 30,\n",
+ " '1st_Road_Number': 1145,\n",
" 'Time': '11:50',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 3,\n",
- " 'Age_Band_of_Driver': 4,\n",
- " 'Age_of_Vehicle': 4,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 4,\n",
- " 'Engine_Capacity_(CC)': 125,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 5,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 1145,\n",
+ " 'Location_Northing_OSGR': 239820,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 1,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 485084,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 2,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 4,\n",
+ " 'Vehicle_Leaving_Carriageway': 1,\n",
" 'Junction_Location': 8,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 1,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 1,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 125,\n",
" 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 4,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 3,\n",
" 'Vehicle_Type': 3,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 5,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 4,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 2,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b855'),\n",
- " 'loc': {'coordinates': [-0.760646, 52.050207], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 6,\n",
- " '1st_Road_Number': 1132,\n",
+ " 'Junction_Detail': 1,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016718',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.050207,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S168122',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 6,\n",
" '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1132,\n",
- " 'Accident_Index': '201243S016022',\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 3,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.760646,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 30,\n",
+ " 'Date': '31/12/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 12, 31, 11, 50),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.760646, 52.050207]},\n",
+ " 'Weather_Conditions': 2},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b5f0'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 1,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 3,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1}],\n",
- " 'Date': '02/02/2012',\n",
- " 'Datetime': datetime.datetime(2012, 2, 2, 8, 5),\n",
- " 'Day_of_Week': 5,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 2,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 3,\n",
- " 'LSOA_of_Accident_Location': 'E01016724',\n",
- " 'Latitude': 52.045886,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 484540,\n",
- " 'Location_Northing_OSGR': 239330,\n",
- " 'Longitude': -0.768698,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 30,\n",
+ " '1st_Road_Number': 1132,\n",
" 'Time': '08:05',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 3,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 4,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 1132,\n",
+ " 'Location_Northing_OSGR': 239330,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 484540,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 5,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 4,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 1,\n",
+ " 'Skidding_and_Overturning': 0,\n",
+ " 'Towing_and_Articulation': 0,\n",
+ " 'Vehicle_Location-Restricted_Lane': 0,\n",
" 'Engine_Capacity_(CC)': -1,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 3,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 1,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 4,\n",
- " 'Junction_Location': 1,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': -1,\n",
- " 'Sex_of_Driver': 1,\n",
+ " 'Age_of_Vehicle': -1,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
- " 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 1,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 9,\n",
- " 'Age_of_Vehicle': 6,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 9,\n",
" 'Engine_Capacity_(CC)': 1798,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 9,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 1,\n",
- " 'Junction_Location': 2,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
- " 'Skidding_and_Overturning': 0,\n",
- " 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
- " 'Vehicle_Location-Restricted_Lane': 0,\n",
+ " 'Age_of_Vehicle': 6,\n",
" 'Vehicle_Manoeuvre': 4,\n",
- " 'Vehicle_Reference': 2,\n",
- " 'Vehicle_Type': 9,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b5f0'),\n",
- " 'loc': {'coordinates': [-0.768698, 52.045886], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 144,\n",
- " '2nd_Road_Class': 5,\n",
- " '2nd_Road_Number': 157,\n",
- " 'Accident_Index': '201243S061072',\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016724',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.045886,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 2,\n",
+ " 'Accident_Index': '201243S016022',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 6,\n",
+ " '2nd_Road_Class': 6,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 4,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 2,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.768698,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 30,\n",
+ " 'Date': '02/02/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 2, 2, 8, 5),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.768698, 52.045886]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b6c3'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': -1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': -1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 2,\n",
+ " 'Age_Band_of_Casualty': 4,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 4,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 1,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 1,\n",
+ " 'Age_Band_of_Casualty': 4,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1}],\n",
- " 'Date': '02/07/2012',\n",
- " 'Datetime': datetime.datetime(2012, 7, 2, 20, 40),\n",
- " 'Day_of_Week': 2,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 1,\n",
- " 'LSOA_of_Accident_Location': 'E01016723',\n",
- " 'Latitude': 52.050185,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 484640,\n",
- " 'Location_Northing_OSGR': 239810,\n",
- " 'Longitude': -0.767122,\n",
- " 'Number_of_Casualties': 2,\n",
- " 'Number_of_Vehicles': 1,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 3,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 70,\n",
+ " '1st_Road_Number': 144,\n",
" 'Time': '20:40',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 4,\n",
- " 'Age_of_Vehicle': 12,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 5,\n",
- " 'Engine_Capacity_(CC)': 1149,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 2,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': 157,\n",
+ " 'Location_Northing_OSGR': 239810,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 1,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 484640,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 2,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 5,\n",
+ " 'Vehicle_Leaving_Carriageway': 1,\n",
" 'Junction_Location': 8,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 1,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Engine_Capacity_(CC)': 1149,\n",
" 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 4,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 2,\n",
+ " '1st_Point_of_Impact': 1,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 12,\n",
+ " 'Vehicle_Manoeuvre': 9,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b6c3'),\n",
- " 'loc': {'coordinates': [-0.767122, 52.050185], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 144,\n",
+ " 'Junction_Detail': 1,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016723',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.050185,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S061072',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
" '2nd_Road_Class': 5,\n",
- " '2nd_Road_Number': 156,\n",
- " 'Accident_Index': '201243S096122',\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 4,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.767122,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 70,\n",
+ " 'Date': '02/07/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 7, 2, 20, 40),\n",
+ " 'Number_of_Casualties': 2,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.767122, 52.050185]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b775'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 3,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 4,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1}],\n",
- " 'Date': '19/12/2012',\n",
- " 'Datetime': datetime.datetime(2012, 12, 19, 8, 26),\n",
- " 'Day_of_Week': 4,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 1,\n",
- " 'LSOA_of_Accident_Location': 'E01016721',\n",
- " 'Latitude': 52.050205,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 484689,\n",
- " 'Location_Northing_OSGR': 239813,\n",
- " 'Longitude': -0.766407,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 1,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 1,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 70,\n",
+ " '1st_Road_Number': 144,\n",
" 'Time': '08:26',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 0,\n",
- " 'Age_Band_of_Driver': 4,\n",
- " 'Age_of_Vehicle': 3,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 2,\n",
- " 'Engine_Capacity_(CC)': 125,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 1,\n",
+ " '2nd_Road_Number': 156,\n",
+ " 'Location_Northing_OSGR': 239813,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 1,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 484689,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 4,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 2,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 1,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 1,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 4,\n",
+ " 'Engine_Capacity_(CC)': 125,\n",
" 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 4,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 0,\n",
" 'Vehicle_Type': 3,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 3,\n",
+ " 'Vehicle_Manoeuvre': 4,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b775'),\n",
- " 'loc': {'coordinates': [-0.766407, 52.050205], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 6,\n",
- " '1st_Road_Number': 1132,\n",
- " '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1132,\n",
- " 'Accident_Index': '201243S050072',\n",
+ " 'Junction_Detail': 1,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016721',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.050205,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S096122',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
+ " '2nd_Road_Class': 5,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 3,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.766407,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 70,\n",
+ " 'Date': '19/12/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 12, 19, 8, 26),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.766407, 52.050205]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b68d'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 3,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 0,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 5,\n",
- " 'Pedestrian_Movement': 1,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 3,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1}],\n",
- " 'Date': '08/07/2012',\n",
- " 'Datetime': datetime.datetime(2012, 7, 8, 20, 20),\n",
- " 'Day_of_Week': 1,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 6,\n",
- " 'LSOA_of_Accident_Location': 'E01016724',\n",
- " 'Latitude': 52.045319,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 484720,\n",
- " 'Location_Northing_OSGR': 239270,\n",
- " 'Longitude': -0.766089,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 1,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 1,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 30,\n",
+ " '1st_Road_Number': 1132,\n",
" 'Time': '20:20',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 9,\n",
- " 'Age_of_Vehicle': 7,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 2,\n",
- " 'Engine_Capacity_(CC)': 1910,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 1,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 1132,\n",
+ " 'Location_Northing_OSGR': 239270,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 1,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 484720,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 1,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 2,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 1,\n",
- " 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1910,\n",
" 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 9,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
" 'Vehicle_Type': 8,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 1,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': 7,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b68d'),\n",
- " 'loc': {'coordinates': [-0.766089, 52.045319], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 6,\n",
- " '1st_Road_Number': 1132,\n",
+ " 'Junction_Detail': 6,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016724',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.045319,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S050072',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 6,\n",
" '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1132,\n",
- " 'Accident_Index': '201243S055112',\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 8,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.766089,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 30,\n",
+ " 'Date': '08/07/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 7, 8, 20, 20),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.766089, 52.045319]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b6a3'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 1,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 8,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '02/11/2012',\n",
- " 'Datetime': datetime.datetime(2012, 11, 2, 8, 30),\n",
- " 'Day_of_Week': 6,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 2,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 3,\n",
- " 'LSOA_of_Accident_Location': 'E01016724',\n",
- " 'Latitude': 52.045084,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 484490,\n",
- " 'Location_Northing_OSGR': 239240,\n",
- " 'Longitude': -0.76945,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 30,\n",
+ " '1st_Road_Number': 1132,\n",
" 'Time': '08:30',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 3,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 5,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 4,\n",
- " 'Engine_Capacity_(CC)': 1598,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 1132,\n",
+ " 'Location_Northing_OSGR': 239240,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 484490,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 6,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 4,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 8,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Engine_Capacity_(CC)': 1598,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 8,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 5,\n",
- " 'Engine_Capacity_(CC)': -1,\n",
+ " 'Age_Band_of_Driver': 6,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 3,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 5,\n",
+ " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 5,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 1,\n",
- " 'Propulsion_Code': -1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 10,\n",
+ " 'Engine_Capacity_(CC)': -1,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 8,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
" 'Vehicle_Type': 1,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': -1,\n",
+ " 'Age_of_Vehicle': -1,\n",
+ " 'Vehicle_Manoeuvre': 10,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b6a3'),\n",
- " 'loc': {'coordinates': [-0.76945, 52.045084], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 6,\n",
- " '1st_Road_Number': 1132,\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016724',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.045084,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 2,\n",
+ " 'Accident_Index': '201243S055112',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 6,\n",
" '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1132,\n",
- " 'Accident_Index': '201243S003122',\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 6,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.76945,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 30,\n",
+ " 'Date': '02/11/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 11, 2, 8, 30),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.76945, 52.045084]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b5c4'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 3,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 0,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 5,\n",
- " 'Pedestrian_Movement': 1,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1}],\n",
- " 'Date': '02/12/2012',\n",
- " 'Datetime': datetime.datetime(2012, 12, 2, 0, 25),\n",
- " 'Day_of_Week': 1,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 1,\n",
- " 'LSOA_of_Accident_Location': 'E01016724',\n",
- " 'Latitude': 52.044647,\n",
- " 'Light_Conditions': 4,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 484413,\n",
- " 'Location_Northing_OSGR': 239190,\n",
- " 'Longitude': -0.770584,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 1,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 1,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 1,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 30,\n",
+ " '1st_Road_Number': 1132,\n",
" 'Time': '00:25',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': -1,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': -1,\n",
- " 'Driver_IMD_Decile': -1,\n",
- " 'Engine_Capacity_(CC)': -1,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 1,\n",
+ " '2nd_Road_Number': 1132,\n",
+ " 'Location_Northing_OSGR': 239190,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 1,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 484413,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 1,\n",
+ " 'Light_Conditions': 4,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': -1,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 3,\n",
- " 'Propulsion_Code': -1,\n",
- " 'Sex_of_Driver': 3,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Engine_Capacity_(CC)': -1,\n",
" 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': -1,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 3,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': -1,\n",
+ " 'Propulsion_Code': -1,\n",
+ " 'Age_of_Vehicle': -1,\n",
+ " 'Vehicle_Manoeuvre': 9,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b5c4'),\n",
- " 'loc': {'coordinates': [-0.770584, 52.044647], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 6,\n",
- " '1st_Road_Number': 1098,\n",
+ " 'Junction_Detail': 1,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016724',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.044647,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S003122',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 6,\n",
" '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1098,\n",
- " 'Accident_Index': '201243S140012',\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 6,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.770584,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 30,\n",
+ " 'Date': '02/12/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 12, 2, 0, 25),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.770584, 52.044647]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b839'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 1,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 1}],\n",
- " 'Date': '25/01/2012',\n",
- " 'Datetime': datetime.datetime(2012, 1, 25, 16, 50),\n",
- " 'Day_of_Week': 4,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 6,\n",
- " 'LSOA_of_Accident_Location': 'E01016730',\n",
- " 'Latitude': 52.037989,\n",
- " 'Light_Conditions': 7,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 484450,\n",
- " 'Location_Northing_OSGR': 238450,\n",
- " 'Longitude': -0.770228,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 30,\n",
+ " '1st_Road_Number': 1098,\n",
" 'Time': '16:50',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 2,\n",
- " 'Engine_Capacity_(CC)': -1,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 1,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 1098,\n",
+ " 'Location_Northing_OSGR': 238450,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 484450,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 4,\n",
+ " 'Light_Conditions': 7,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 2,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 1,\n",
- " 'Propulsion_Code': -1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': -1,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 1,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 3,\n",
- " 'Age_Band_of_Driver': 8,\n",
- " 'Age_of_Vehicle': 4,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 2,\n",
- " 'Engine_Capacity_(CC)': 2204,\n",
+ " 'Age_Band_of_Driver': 6,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 1,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 1,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': -1,\n",
+ " 'Age_of_Vehicle': -1,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 2,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 8,\n",
- " 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 2204,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 8,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 3,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 1,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': 4,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b839'),\n",
- " 'loc': {'coordinates': [-0.770228, 52.037989], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 6,\n",
- " '1st_Road_Number': 8106,\n",
+ " 'Junction_Detail': 6,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016730',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.037989,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S140012',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 6,\n",
" '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1098,\n",
- " 'Accident_Index': '201243S077032',\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 5,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.770228,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 30,\n",
+ " 'Date': '25/01/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 1, 25, 16, 50),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.770228, 52.037989]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b70f'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 5,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 8,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 8,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '14/03/2012',\n",
- " 'Datetime': datetime.datetime(2012, 3, 14, 10, 10),\n",
- " 'Day_of_Week': 4,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 6,\n",
- " 'LSOA_of_Accident_Location': 'E01016730',\n",
- " 'Latitude': 52.038354,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 484420,\n",
- " 'Location_Northing_OSGR': 238490,\n",
- " 'Longitude': -0.770655,\n",
- " 'Number_of_Casualties': 2,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 3,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 30,\n",
+ " '1st_Road_Number': 8106,\n",
" 'Time': '10:10',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 5,\n",
- " 'Age_of_Vehicle': 5,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 8,\n",
- " 'Engine_Capacity_(CC)': 1995,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 2,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': 1098,\n",
+ " 'Location_Northing_OSGR': 238490,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 484420,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 4,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 8,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 8,\n",
- " 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1995,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 3,\n",
- " 'Age_Band_of_Driver': 8,\n",
- " 'Age_of_Vehicle': 16,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 5,\n",
- " 'Engine_Capacity_(CC)': 1589,\n",
+ " 'Age_Band_of_Driver': 5,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 1,\n",
- " 'Junction_Location': 1,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
- " 'Skidding_and_Overturning': 0,\n",
- " 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
- " 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
- " 'Vehicle_Reference': 2,\n",
+ " '1st_Point_of_Impact': 1,\n",
" 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b70f'),\n",
- " 'loc': {'coordinates': [-0.770655, 52.038354], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 6,\n",
- " '1st_Road_Number': 8106,\n",
- " '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1098,\n",
- " 'Accident_Index': '201243S031042',\n",
- " 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 6,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
- " 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
- " 'Casualty_Type': 9,\n",
- " 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
- " 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '10/04/2012',\n",
- " 'Datetime': datetime.datetime(2012, 4, 10, 8, 27),\n",
- " 'Day_of_Week': 3,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 2,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': 5,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 5,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 1,\n",
+ " 'Skidding_and_Overturning': 0,\n",
+ " 'Towing_and_Articulation': 0,\n",
+ " 'Vehicle_Location-Restricted_Lane': 0,\n",
+ " 'Engine_Capacity_(CC)': 1589,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 8,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 3,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 1,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 16,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
" 'Junction_Detail': 6,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
" 'LSOA_of_Accident_Location': 'E01016730',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
" 'Latitude': 52.038354,\n",
- " 'Light_Conditions': 1,\n",
" 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 484420,\n",
- " 'Location_Northing_OSGR': 238490,\n",
- " 'Longitude': -0.770655,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S077032',\n",
" 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
- " 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 3,\n",
+ " '1st_Road_Class': 6,\n",
+ " '2nd_Road_Class': 6,\n",
+ " 'Accident_Severity': 3,\n",
" 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.770655,\n",
+ " 'Junction_Control': 4,\n",
" 'Speed_limit': 30,\n",
+ " 'Date': '14/03/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 3, 14, 10, 10),\n",
+ " 'Number_of_Casualties': 2,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.770655, 52.038354]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b62e'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
+ " 'Casualty_Class': 1,\n",
+ " 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
+ " 'Pedestrian_Location': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
+ " 'Pedestrian_Road_Maintenance_Worker': 0,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
+ " 'Road_Surface_Conditions': 1,\n",
+ " '1st_Road_Number': 8106,\n",
" 'Time': '08:27',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 5,\n",
- " 'Age_of_Vehicle': 17,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 9,\n",
- " 'Engine_Capacity_(CC)': 1296,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 2,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': 1098,\n",
+ " 'Location_Northing_OSGR': 238490,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 484420,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 3,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 8,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1296,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 3,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 10,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 1,\n",
- " 'Engine_Capacity_(CC)': 1386,\n",
+ " 'Age_Band_of_Driver': 5,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 4,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 2,\n",
- " 'Junction_Location': 1,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
+ " 'Age_of_Vehicle': 17,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 1,\n",
+ " 'Vehicle_Leaving_Carriageway': 4,\n",
+ " 'Junction_Location': 1,\n",
" 'Skidding_and_Overturning': 1,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 4,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1386,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 6,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 4,\n",
+ " '1st_Point_of_Impact': 3,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 2,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 10,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b62e'),\n",
- " 'loc': {'coordinates': [-0.770655, 52.038354], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 6,\n",
- " '1st_Road_Number': 1098,\n",
- " '2nd_Road_Class': -1,\n",
- " '2nd_Road_Number': 0,\n",
- " 'Accident_Index': '201243S024052',\n",
+ " 'Junction_Detail': 6,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016730',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.038354,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S031042',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 6,\n",
+ " '2nd_Road_Class': 6,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 6,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.770655,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 30,\n",
+ " 'Date': '10/04/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 4, 10, 8, 27),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.770655, 52.038354]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b610'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 3,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 0,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 5,\n",
- " 'Pedestrian_Movement': 9,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1}],\n",
- " 'Date': '03/05/2012',\n",
- " 'Datetime': datetime.datetime(2012, 5, 3, 9, 55),\n",
- " 'Day_of_Week': 5,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 2,\n",
- " 'Junction_Control': -1,\n",
- " 'Junction_Detail': 0,\n",
- " 'LSOA_of_Accident_Location': 'E01016730',\n",
- " 'Latitude': 52.037056,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 484680,\n",
- " 'Location_Northing_OSGR': 238350,\n",
- " 'Longitude': -0.7669,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 1,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 9,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 30,\n",
+ " '1st_Road_Number': 1098,\n",
" 'Time': '09:55',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': -1,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': -1,\n",
- " 'Driver_IMD_Decile': -1,\n",
- " 'Engine_Capacity_(CC)': -1,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 0,\n",
+ " 'Location_Northing_OSGR': 238350,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 1,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 484680,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 5,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': -1,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': -1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 1,\n",
+ " 'Engine_Capacity_(CC)': -1,\n",
" 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': -1,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': -1,\n",
+ " 'Propulsion_Code': -1,\n",
+ " 'Age_of_Vehicle': -1,\n",
+ " 'Vehicle_Manoeuvre': 1,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b610'),\n",
- " 'loc': {'coordinates': [-0.7669, 52.037056], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 156,\n",
- " '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 8096,\n",
- " 'Accident_Index': '201243S014052',\n",
+ " 'Junction_Detail': 0,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016730',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.037056,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 2,\n",
+ " 'Accident_Index': '201243S024052',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 6,\n",
+ " '2nd_Road_Class': -1,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 6,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.7669,\n",
+ " 'Junction_Control': -1,\n",
+ " 'Speed_limit': 30,\n",
+ " 'Date': '03/05/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 5, 3, 9, 55),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.7669, 52.037056]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b5e9'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 1,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '05/05/2012',\n",
- " 'Datetime': datetime.datetime(2012, 5, 5, 12, 51),\n",
- " 'Day_of_Week': 7,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 1,\n",
- " 'LSOA_of_Accident_Location': 'E01016730',\n",
- " 'Latitude': 52.035652,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 484450,\n",
- " 'Location_Northing_OSGR': 238190,\n",
- " 'Longitude': -0.770292,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 3,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 30,\n",
+ " '1st_Road_Number': 156,\n",
" 'Time': '12:51',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': 10,\n",
- " 'Age_of_Vehicle': 6,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 10,\n",
- " 'Engine_Capacity_(CC)': 1364,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': 8096,\n",
+ " 'Location_Northing_OSGR': 238190,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 484450,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 7,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 10,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 1,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 4,\n",
+ " 'Engine_Capacity_(CC)': 1364,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 6,\n",
- " 'Engine_Capacity_(CC)': -1,\n",
+ " 'Age_Band_of_Driver': 10,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 6,\n",
+ " 'Vehicle_Manoeuvre': 4,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 6,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 1,\n",
- " 'Propulsion_Code': -1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': -1,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 6,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
" 'Vehicle_Type': 1,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': -1,\n",
+ " 'Age_of_Vehicle': -1,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b5e9'),\n",
- " 'loc': {'coordinates': [-0.770292, 52.035652], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 6,\n",
- " '1st_Road_Number': 8106,\n",
+ " 'Junction_Detail': 1,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016730',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.035652,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S014052',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
" '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1098,\n",
- " 'Accident_Index': '201243S091052',\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 6,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 1,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.770292,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 30,\n",
+ " 'Date': '05/05/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 5, 5, 12, 51),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.770292, 52.035652]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b753'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 1,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 7,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 3,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 3,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 7,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '21/05/2012',\n",
- " 'Datetime': datetime.datetime(2012, 5, 21, 13, 57),\n",
- " 'Day_of_Week': 2,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 2,\n",
- " 'Junction_Detail': 6,\n",
- " 'LSOA_of_Accident_Location': 'E01016730',\n",
- " 'Latitude': 52.039933,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 484670,\n",
- " 'Location_Northing_OSGR': 238670,\n",
- " 'Longitude': -0.766967,\n",
- " 'Number_of_Casualties': 2,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 3,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 30,\n",
+ " '1st_Road_Number': 8106,\n",
" 'Time': '13:57',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 7,\n",
- " 'Driver_Home_Area_Type': 3,\n",
- " 'Driver_IMD_Decile': 10,\n",
- " 'Engine_Capacity_(CC)': 1796,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': 1098,\n",
+ " 'Location_Northing_OSGR': 238670,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 484670,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 2,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 10,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 8,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1796,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 3,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': 1,\n",
- " 'Driver_Home_Area_Type': 3,\n",
- " 'Driver_IMD_Decile': 8,\n",
- " 'Engine_Capacity_(CC)': 1198,\n",
+ " 'Age_Band_of_Driver': 6,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 8,\n",
+ " 'Driver_Home_Area_Type': 3,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
+ " 'Age_of_Vehicle': 7,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 8,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 8,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 5,\n",
+ " 'Engine_Capacity_(CC)': 1198,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 7,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 3,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 3,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 1,\n",
+ " 'Vehicle_Manoeuvre': 5,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b753'),\n",
- " 'loc': {'coordinates': [-0.766967, 52.039933], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 6,\n",
- " '1st_Road_Number': 1098,\n",
- " '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1098,\n",
- " 'Accident_Index': '201243S068072',\n",
- " 'Accident_Severity': 2,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 10,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
- " 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 2,\n",
- " 'Casualty_Type': 9,\n",
- " 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
- " 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '09/07/2012',\n",
- " 'Datetime': datetime.datetime(2012, 7, 9, 17, 30),\n",
- " 'Day_of_Week': 2,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 2,\n",
- " 'Junction_Control': 4,\n",
" 'Junction_Detail': 6,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
" 'LSOA_of_Accident_Location': 'E01016730',\n",
- " 'Latitude': 52.035278,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 484550,\n",
- " 'Location_Northing_OSGR': 238150,\n",
- " 'Longitude': -0.768844,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
" 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.039933,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S091052',\n",
" 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
- " 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 6,\n",
+ " '1st_Road_Class': 6,\n",
+ " '2nd_Road_Class': 6,\n",
+ " 'Accident_Severity': 3,\n",
" 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.766967,\n",
+ " 'Junction_Control': 2,\n",
" 'Speed_limit': 30,\n",
+ " 'Date': '21/05/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 5, 21, 13, 57),\n",
+ " 'Number_of_Casualties': 2,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.766967, 52.039933]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b6e0'),\n",
+ " 'Casualties': [{'Casualty_Severity': 2,\n",
+ " 'Casualty_Class': 1,\n",
+ " 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
+ " 'Pedestrian_Location': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 10,\n",
+ " 'Pedestrian_Road_Maintenance_Worker': 0,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
+ " 'Road_Surface_Conditions': 1,\n",
+ " '1st_Road_Number': 1098,\n",
" 'Time': '17:30',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': -1,\n",
- " 'Age_of_Vehicle': 1,\n",
- " 'Driver_Home_Area_Type': -1,\n",
- " 'Driver_IMD_Decile': -1,\n",
- " 'Engine_Capacity_(CC)': 2143,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 1098,\n",
+ " 'Location_Northing_OSGR': 238150,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 484550,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 2,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': -1,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 1,\n",
- " 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 2143,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 4,\n",
- " 'Age_Band_of_Driver': 10,\n",
- " 'Age_of_Vehicle': 10,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 3,\n",
- " 'Engine_Capacity_(CC)': 1896,\n",
+ " 'Age_Band_of_Driver': -1,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 8,\n",
+ " 'Driver_Home_Area_Type': -1,\n",
" 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 2,\n",
+ " 'Age_of_Vehicle': 1,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 3,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 8,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 5,\n",
+ " 'Engine_Capacity_(CC)': 1896,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 10,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 4,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': 10,\n",
+ " 'Vehicle_Manoeuvre': 5,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b6e0'),\n",
- " 'loc': {'coordinates': [-0.768844, 52.035278], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 6,\n",
- " '1st_Road_Number': 8096,\n",
- " '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1098,\n",
- " 'Accident_Index': '201243S080032',\n",
- " 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 5,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
- " 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
- " 'Casualty_Type': 3,\n",
- " 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
- " 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '11/03/2012',\n",
- " 'Datetime': datetime.datetime(2012, 3, 11, 12, 0),\n",
- " 'Day_of_Week': 1,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
" 'Junction_Detail': 6,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
" 'LSOA_of_Accident_Location': 'E01016730',\n",
- " 'Latitude': 52.038996,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 484920,\n",
- " 'Location_Northing_OSGR': 238570,\n",
- " 'Longitude': -0.763347,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
" 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.035278,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 2,\n",
+ " 'Accident_Index': '201243S068072',\n",
" 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
- " 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 3,\n",
+ " '1st_Road_Class': 6,\n",
+ " '2nd_Road_Class': 6,\n",
+ " 'Accident_Severity': 2,\n",
" 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.768844,\n",
+ " 'Junction_Control': 4,\n",
" 'Speed_limit': 30,\n",
+ " 'Date': '09/07/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 7, 9, 17, 30),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.768844, 52.035278]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b71d'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
+ " 'Casualty_Class': 1,\n",
+ " 'Casualty_Type': 3,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
+ " 'Pedestrian_Location': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 5,\n",
+ " 'Pedestrian_Road_Maintenance_Worker': 0,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
+ " 'Road_Surface_Conditions': 1,\n",
+ " '1st_Road_Number': 8096,\n",
" 'Time': '12:00',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 4,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 7,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 6,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': 1098,\n",
+ " 'Location_Northing_OSGR': 238570,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 484920,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 1,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 6,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 8,\n",
+ " 'Skidding_and_Overturning': 0,\n",
+ " 'Towing_and_Articulation': 0,\n",
+ " 'Vehicle_Location-Restricted_Lane': 0,\n",
" 'Engine_Capacity_(CC)': 2204,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 6,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 4,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 1,\n",
- " 'Junction_Location': 8,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 1,\n",
+ " 'Age_of_Vehicle': 7,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 8,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
- " 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 5,\n",
- " 'Age_of_Vehicle': 1,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 8,\n",
" 'Engine_Capacity_(CC)': 124,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 5,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 3,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 1,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
- " 'Skidding_and_Overturning': 0,\n",
- " 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
- " 'Vehicle_Location-Restricted_Lane': 0,\n",
+ " 'Age_of_Vehicle': 1,\n",
" 'Vehicle_Manoeuvre': 18,\n",
- " 'Vehicle_Reference': 2,\n",
- " 'Vehicle_Type': 3,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b71d'),\n",
- " 'loc': {'coordinates': [-0.763347, 52.038996], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 6,\n",
- " '1st_Road_Number': 1098,\n",
- " '2nd_Road_Class': -1,\n",
- " '2nd_Road_Number': 0,\n",
- " 'Accident_Index': '201243S027042',\n",
+ " 'Junction_Detail': 6,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016730',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.038996,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S080032',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 6,\n",
+ " '2nd_Road_Class': 6,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 7,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.763347,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 30,\n",
+ " 'Date': '11/03/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 3, 11, 12, 0),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.763347, 52.038996]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b61c'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 2,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 5,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 2,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 7,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1}],\n",
- " 'Date': '07/04/2012',\n",
- " 'Datetime': datetime.datetime(2012, 4, 7, 12, 47),\n",
- " 'Day_of_Week': 7,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': -1,\n",
- " 'Junction_Detail': 0,\n",
- " 'LSOA_of_Accident_Location': 'E01016730',\n",
- " 'Latitude': 52.037837,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 484860,\n",
- " 'Location_Northing_OSGR': 238440,\n",
- " 'Longitude': -0.764254,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 3,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 30,\n",
+ " '1st_Road_Number': 1098,\n",
" 'Time': '12:47',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 4,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': 16,\n",
- " 'Driver_Home_Area_Type': 2,\n",
- " 'Driver_IMD_Decile': 8,\n",
- " 'Engine_Capacity_(CC)': 600,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': 0,\n",
+ " 'Location_Northing_OSGR': 238440,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 484860,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 7,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 8,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 600,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 5,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 11,\n",
- " 'Age_of_Vehicle': 15,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 9,\n",
- " 'Engine_Capacity_(CC)': 3239,\n",
+ " 'Age_Band_of_Driver': 7,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 4,\n",
+ " 'Vehicle_Type': 5,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 0,\n",
+ " 'Driver_Home_Area_Type': 2,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
+ " 'Age_of_Vehicle': 16,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 0,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 2,\n",
+ " 'Engine_Capacity_(CC)': 3239,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 11,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 15,\n",
+ " 'Vehicle_Manoeuvre': 2,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b61c'),\n",
- " 'loc': {'coordinates': [-0.764254, 52.037837], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 6,\n",
- " '1st_Road_Number': 1098,\n",
+ " 'Junction_Detail': 0,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016730',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.037837,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S027042',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 6,\n",
" '2nd_Road_Class': -1,\n",
- " '2nd_Road_Number': 0,\n",
- " 'Accident_Index': '201243S064042',\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': -1,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.764254,\n",
+ " 'Junction_Control': -1,\n",
+ " 'Speed_limit': 30,\n",
+ " 'Date': '07/04/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 4, 7, 12, 47),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.764254, 52.037837]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b6cf'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': -1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 1,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': -1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': -1,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1}],\n",
- " 'Date': '20/04/2012',\n",
- " 'Datetime': datetime.datetime(2012, 4, 20, 7, 25),\n",
- " 'Day_of_Week': 6,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 2,\n",
- " 'Junction_Control': -1,\n",
- " 'Junction_Detail': 0,\n",
- " 'LSOA_of_Accident_Location': 'E01016730',\n",
- " 'Latitude': 52.036978,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 485190,\n",
- " 'Location_Northing_OSGR': 238350,\n",
- " 'Longitude': -0.759467,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 30,\n",
+ " '1st_Road_Number': 1098,\n",
" 'Time': '07:25',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': -1,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': -1,\n",
- " 'Driver_IMD_Decile': -1,\n",
- " 'Engine_Capacity_(CC)': -1,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 0,\n",
+ " 'Location_Northing_OSGR': 238350,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 485190,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 6,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': -1,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': -1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': -1,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 1,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 3,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 16,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 9,\n",
- " 'Engine_Capacity_(CC)': 1124,\n",
+ " 'Age_Band_of_Driver': -1,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 1,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': -1,\n",
+ " 'Propulsion_Code': -1,\n",
+ " 'Age_of_Vehicle': -1,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1124,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 6,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 3,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 16,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b6cf'),\n",
- " 'loc': {'coordinates': [-0.759467, 52.036978], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 6,\n",
- " '1st_Road_Number': 8096,\n",
+ " 'Junction_Detail': 0,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016730',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.036978,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 2,\n",
+ " 'Accident_Index': '201243S064042',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 6,\n",
" '2nd_Road_Class': -1,\n",
- " '2nd_Road_Number': 0,\n",
- " 'Accident_Index': '201243S132072',\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 2,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.759467,\n",
+ " 'Junction_Control': -1,\n",
+ " 'Speed_limit': 30,\n",
+ " 'Date': '20/04/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 4, 20, 7, 25),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.759467, 52.036978]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b822'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 3,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 0,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 5,\n",
- " 'Pedestrian_Movement': 2,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 2,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 7,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 2,\n",
+ " 'Sex_of_Casualty': 1},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 90,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 7,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1}],\n",
- " 'Date': '31/07/2012',\n",
- " 'Datetime': datetime.datetime(2012, 7, 31, 9, 29),\n",
- " 'Day_of_Week': 3,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': -1,\n",
- " 'Junction_Detail': 0,\n",
- " 'LSOA_of_Accident_Location': 'E01016730',\n",
- " 'Latitude': 52.039344,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 485000,\n",
- " 'Location_Northing_OSGR': 238610,\n",
- " 'Longitude': -0.762171,\n",
- " 'Number_of_Casualties': 2,\n",
- " 'Number_of_Vehicles': 1,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 3,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 30,\n",
+ " '1st_Road_Number': 8096,\n",
" 'Time': '09:29',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 9,\n",
- " 'Engine_Capacity_(CC)': -1,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 1,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': 0,\n",
+ " 'Location_Northing_OSGR': 238610,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 1,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 485000,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 3,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': -1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': -1,\n",
" 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 7,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
" 'Vehicle_Type': 90,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 1,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': -1,\n",
+ " 'Age_of_Vehicle': -1,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 2,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b822'),\n",
- " 'loc': {'coordinates': [-0.762171, 52.039344], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 6,\n",
- " '1st_Road_Number': 1098,\n",
+ " 'Junction_Detail': 0,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016730',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.039344,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S132072',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 6,\n",
" '2nd_Road_Class': -1,\n",
- " '2nd_Road_Number': -1,\n",
- " 'Accident_Index': '201243S033082',\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 5,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.762171,\n",
+ " 'Junction_Control': -1,\n",
+ " 'Speed_limit': 30,\n",
+ " 'Date': '31/07/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 7, 31, 9, 29),\n",
+ " 'Number_of_Casualties': 2,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.762171, 52.039344]},\n",
+ " 'Weather_Conditions': 2},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b63d'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 5,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '10/08/2012',\n",
- " 'Datetime': datetime.datetime(2012, 8, 10, 11, 50),\n",
- " 'Day_of_Week': 6,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 2,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 8,\n",
- " 'LSOA_of_Accident_Location': 'E01016730',\n",
- " 'Latitude': 52.035837,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 485010,\n",
- " 'Location_Northing_OSGR': 238220,\n",
- " 'Longitude': -0.762123,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 3,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 30,\n",
+ " '1st_Road_Number': 1098,\n",
" 'Time': '11:50',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': -1,\n",
- " 'Age_of_Vehicle': 7,\n",
- " 'Driver_Home_Area_Type': -1,\n",
- " 'Driver_IMD_Decile': -1,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': -1,\n",
+ " 'Location_Northing_OSGR': 238220,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 485010,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 6,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': -1,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 1,\n",
+ " 'Skidding_and_Overturning': 0,\n",
+ " 'Towing_and_Articulation': 0,\n",
+ " 'Vehicle_Location-Restricted_Lane': 0,\n",
" 'Engine_Capacity_(CC)': 2000,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': -1,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 3,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 1,\n",
+ " 'Driver_Home_Area_Type': -1,\n",
" 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 3,\n",
+ " 'Age_of_Vehicle': 7,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 5,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
- " 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': 5,\n",
- " 'Age_of_Vehicle': 9,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 5,\n",
" 'Engine_Capacity_(CC)': 1796,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 5,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 2,\n",
- " 'Junction_Location': 1,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
- " 'Skidding_and_Overturning': 0,\n",
- " 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
- " 'Vehicle_Location-Restricted_Lane': 0,\n",
+ " 'Age_of_Vehicle': 9,\n",
" 'Vehicle_Manoeuvre': 7,\n",
- " 'Vehicle_Reference': 2,\n",
- " 'Vehicle_Type': 9,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b63d'),\n",
- " 'loc': {'coordinates': [-0.762123, 52.035837], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 6,\n",
- " '1st_Road_Number': 8206,\n",
- " '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1098,\n",
- " 'Accident_Index': '201243S019112',\n",
+ " 'Junction_Detail': 8,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016730',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.035837,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 2,\n",
+ " 'Accident_Index': '201243S033082',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 6,\n",
+ " '2nd_Road_Class': -1,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 5,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.762123,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 30,\n",
+ " 'Date': '10/08/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 8, 10, 11, 50),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.762123, 52.035837]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b5fd'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 5,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 8,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 8,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '07/11/2012',\n",
- " 'Datetime': datetime.datetime(2012, 11, 7, 17, 12),\n",
- " 'Day_of_Week': 4,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 6,\n",
- " 'LSOA_of_Accident_Location': 'E01016730',\n",
- " 'Latitude': 52.037177,\n",
- " 'Light_Conditions': 4,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 485060,\n",
- " 'Location_Northing_OSGR': 238370,\n",
- " 'Longitude': -0.761357,\n",
- " 'Number_of_Casualties': 2,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 3,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 30,\n",
+ " '1st_Road_Number': 8206,\n",
" 'Time': '17:12',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 5,\n",
- " 'Age_of_Vehicle': 5,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 10,\n",
- " 'Engine_Capacity_(CC)': 1388,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 2,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': 1098,\n",
+ " 'Location_Northing_OSGR': 238370,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 485060,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 4,\n",
+ " 'Light_Conditions': 4,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 10,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 6,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 5,\n",
+ " 'Engine_Capacity_(CC)': 1388,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 3,\n",
- " 'Age_Band_of_Driver': 8,\n",
- " 'Age_of_Vehicle': 9,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 4,\n",
- " 'Engine_Capacity_(CC)': 1896,\n",
+ " 'Age_Band_of_Driver': 5,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 2,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 5,\n",
+ " 'Vehicle_Manoeuvre': 5,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 4,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 8,\n",
- " 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1896,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 8,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 3,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 2,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': 9,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b5fd'),\n",
- " 'loc': {'coordinates': [-0.761357, 52.037177], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 6,\n",
- " '1st_Road_Number': 8206,\n",
- " '2nd_Road_Class': -1,\n",
- " '2nd_Road_Number': 0,\n",
- " 'Accident_Index': '201243S068112',\n",
+ " 'Junction_Detail': 6,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016730',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.037177,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S019112',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 6,\n",
+ " '2nd_Road_Class': 6,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 6,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.761357,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 30,\n",
+ " 'Date': '07/11/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 11, 7, 17, 12),\n",
+ " 'Number_of_Casualties': 2,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.761357, 52.037177]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b6e3'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 3,\n",
- " 'Casualty_Home_Area_Type': 3,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 0,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 3,\n",
" 'Pedestrian_Location': 6,\n",
- " 'Pedestrian_Movement': 9,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1}],\n",
- " 'Date': '17/11/2012',\n",
- " 'Datetime': datetime.datetime(2012, 11, 17, 23, 45),\n",
- " 'Day_of_Week': 7,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 2,\n",
- " 'Junction_Control': -1,\n",
- " 'Junction_Detail': 0,\n",
- " 'LSOA_of_Accident_Location': 'E01016730',\n",
- " 'Latitude': 52.036827,\n",
- " 'Light_Conditions': 4,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 485000,\n",
- " 'Location_Northing_OSGR': 238330,\n",
- " 'Longitude': -0.762241,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 1,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 9,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 3,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 30,\n",
+ " '1st_Road_Number': 8206,\n",
" 'Time': '23:45',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 4,\n",
- " 'Age_Band_of_Driver': -1,\n",
- " 'Age_of_Vehicle': 7,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 6,\n",
- " 'Engine_Capacity_(CC)': 2231,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': 0,\n",
+ " 'Location_Northing_OSGR': 238330,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 1,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 485000,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 7,\n",
+ " 'Light_Conditions': 4,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 6,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 6,\n",
- " 'Vehicle_Manoeuvre': 15,\n",
+ " 'Engine_Capacity_(CC)': 2231,\n",
" 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': -1,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 4,\n",
" 'Vehicle_Type': 8,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': 7,\n",
+ " 'Vehicle_Manoeuvre': 15,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b6e3'),\n",
- " 'loc': {'coordinates': [-0.762241, 52.036827], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 146,\n",
- " '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1098,\n",
- " 'Accident_Index': '201243S048032',\n",
+ " 'Junction_Detail': 0,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016730',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.036827,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 2,\n",
+ " 'Accident_Index': '201243S068112',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 6,\n",
+ " '2nd_Road_Class': -1,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 7,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.762241,\n",
+ " 'Junction_Control': -1,\n",
+ " 'Speed_limit': 30,\n",
+ " 'Date': '17/11/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 11, 17, 23, 45),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.762241, 52.036827]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b684'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 3,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 7,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 3}],\n",
- " 'Date': '05/03/2012',\n",
- " 'Datetime': datetime.datetime(2012, 3, 5, 8, 30),\n",
- " 'Day_of_Week': 2,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 1,\n",
- " 'LSOA_of_Accident_Location': 'E01016730',\n",
- " 'Latitude': 52.034654,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 485100,\n",
- " 'Location_Northing_OSGR': 238090,\n",
- " 'Longitude': -0.760843,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 3,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 1,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 70,\n",
+ " '1st_Road_Number': 146,\n",
" 'Time': '08:30',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': 8,\n",
- " 'Age_of_Vehicle': 16,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 10,\n",
- " 'Engine_Capacity_(CC)': 1799,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 2,\n",
+ " 'Road_Type': 1,\n",
+ " '2nd_Road_Number': 1098,\n",
+ " 'Location_Northing_OSGR': 238090,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 3,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 485100,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 2,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 10,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 8,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 12,\n",
+ " 'Engine_Capacity_(CC)': 1799,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 0,\n",
" 'Age_Band_of_Driver': 8,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': 3,\n",
- " 'Driver_IMD_Decile': 10,\n",
- " 'Engine_Capacity_(CC)': 1598,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 2,\n",
- " 'Junction_Location': 8,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
+ " 'Age_of_Vehicle': 16,\n",
+ " 'Vehicle_Manoeuvre': 12,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 10,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 8,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 5,\n",
+ " 'Engine_Capacity_(CC)': 1598,\n",
" 'Vehicle_Reference': 2,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': 9,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 6,\n",
- " 'Engine_Capacity_(CC)': 1299,\n",
+ " 'Age_Band_of_Driver': 8,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 0,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 2,\n",
- " 'Junction_Location': 8,\n",
+ " 'Driver_Home_Area_Type': 3,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
+ " 'Age_of_Vehicle': -1,\n",
+ " 'Vehicle_Manoeuvre': 5,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 6,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 8,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1299,\n",
" 'Vehicle_Reference': 3,\n",
+ " 'Age_Band_of_Driver': 7,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 2,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 9,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b684'),\n",
- " 'loc': {'coordinates': [-0.760843, 52.034654], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 6,\n",
- " '1st_Road_Number': 1069,\n",
- " '2nd_Road_Class': -1,\n",
- " '2nd_Road_Number': 0,\n",
- " 'Accident_Index': '201243S066082',\n",
+ " 'Junction_Detail': 1,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016730',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.034654,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S048032',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
+ " '2nd_Road_Class': 6,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 1,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.760843,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 70,\n",
+ " 'Date': '05/03/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 3, 5, 8, 30),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.760843, 52.034654]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b6d7'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 3,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 0,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 5,\n",
- " 'Pedestrian_Movement': 4,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 1,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1}],\n",
- " 'Date': '19/08/2012',\n",
- " 'Datetime': datetime.datetime(2012, 8, 19, 19, 39),\n",
- " 'Day_of_Week': 1,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': -1,\n",
- " 'Junction_Detail': 0,\n",
- " 'LSOA_of_Accident_Location': 'E01016728',\n",
- " 'Latitude': 52.033205,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 485170,\n",
- " 'Location_Northing_OSGR': 237930,\n",
- " 'Longitude': -0.759863,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 1,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 4,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 30,\n",
+ " '1st_Road_Number': 1069,\n",
" 'Time': '19:39',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 5,\n",
- " 'Age_of_Vehicle': 9,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 7,\n",
- " 'Engine_Capacity_(CC)': 2171,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 0,\n",
+ " 'Location_Northing_OSGR': 237930,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 1,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 485170,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 1,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 7,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 2171,\n",
" 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 5,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 9,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b6d7'),\n",
- " 'loc': {'coordinates': [-0.759863, 52.033205], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 156,\n",
- " '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 8206,\n",
- " 'Accident_Index': '201243S124022',\n",
+ " 'Junction_Detail': 0,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016728',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.033205,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S066082',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 6,\n",
+ " '2nd_Road_Class': -1,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 6,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.759863,\n",
+ " 'Junction_Control': -1,\n",
+ " 'Speed_limit': 30,\n",
+ " 'Date': '19/08/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 8, 19, 19, 39),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.759863, 52.033205]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b800'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 1,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '25/02/2012',\n",
- " 'Datetime': datetime.datetime(2012, 2, 25, 16, 5),\n",
- " 'Day_of_Week': 7,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 1,\n",
- " 'LSOA_of_Accident_Location': 'E01016730',\n",
- " 'Latitude': 52.034015,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 484580,\n",
- " 'Location_Northing_OSGR': 238010,\n",
- " 'Longitude': -0.768442,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 1,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 30,\n",
+ " '1st_Road_Number': 156,\n",
" 'Time': '16:05',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 8,\n",
- " 'Age_of_Vehicle': 12,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 9,\n",
- " 'Engine_Capacity_(CC)': 1590,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 1,\n",
+ " '2nd_Road_Number': 8206,\n",
+ " 'Location_Northing_OSGR': 238010,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 484580,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 7,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 4,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 5,\n",
+ " 'Engine_Capacity_(CC)': 1590,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 4,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 2,\n",
- " 'Engine_Capacity_(CC)': -1,\n",
+ " 'Age_Band_of_Driver': 8,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 12,\n",
+ " 'Vehicle_Manoeuvre': 5,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 2,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 8,\n",
- " 'Propulsion_Code': -1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': -1,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 6,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 4,\n",
" 'Vehicle_Type': 1,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': -1,\n",
+ " 'Age_of_Vehicle': -1,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b800'),\n",
- " 'loc': {'coordinates': [-0.768442, 52.034015], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 156,\n",
- " '2nd_Road_Class': -1,\n",
- " '2nd_Road_Number': 0,\n",
- " 'Accident_Index': '201243S042042',\n",
+ " 'Junction_Detail': 1,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016730',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.034015,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S124022',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
+ " '2nd_Road_Class': 6,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 6,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.768442,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 30,\n",
+ " 'Date': '25/02/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 2, 25, 16, 5),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.768442, 52.034015]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b66a'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 1,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '11/04/2012',\n",
- " 'Datetime': datetime.datetime(2012, 4, 11, 23, 5),\n",
- " 'Day_of_Week': 4,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 2,\n",
- " 'Junction_Control': -1,\n",
- " 'Junction_Detail': 0,\n",
- " 'LSOA_of_Accident_Location': 'E01016730',\n",
- " 'Latitude': 52.032646,\n",
- " 'Light_Conditions': 4,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 484710,\n",
- " 'Location_Northing_OSGR': 237860,\n",
- " 'Longitude': -0.766584,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 3,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 30,\n",
+ " '1st_Road_Number': 156,\n",
" 'Time': '23:05',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': -1,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': -1,\n",
- " 'Driver_IMD_Decile': -1,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': 0,\n",
+ " 'Location_Northing_OSGR': 237860,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 484710,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 4,\n",
+ " 'Light_Conditions': 4,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': -1,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 0,\n",
+ " 'Skidding_and_Overturning': 0,\n",
+ " 'Towing_and_Articulation': 0,\n",
+ " 'Vehicle_Location-Restricted_Lane': 0,\n",
" 'Engine_Capacity_(CC)': -1,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': -1,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 3,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 0,\n",
+ " 'Driver_Home_Area_Type': -1,\n",
" 'Propulsion_Code': -1,\n",
- " 'Sex_of_Driver': 3,\n",
+ " 'Age_of_Vehicle': -1,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 6,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 0,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
- " 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 6,\n",
" 'Engine_Capacity_(CC)': -1,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 6,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
+ " 'Vehicle_Type': 1,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 2,\n",
- " 'Junction_Location': 0,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': -1,\n",
- " 'Sex_of_Driver': 1,\n",
- " 'Skidding_and_Overturning': 0,\n",
- " 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
- " 'Vehicle_Location-Restricted_Lane': 0,\n",
+ " 'Age_of_Vehicle': -1,\n",
" 'Vehicle_Manoeuvre': 18,\n",
- " 'Vehicle_Reference': 2,\n",
- " 'Vehicle_Type': 1,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b66a'),\n",
- " 'loc': {'coordinates': [-0.766584, 52.032646], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 3,\n",
- " '1st_Road_Number': 5,\n",
+ " 'Junction_Detail': 0,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016730',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.032646,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 2,\n",
+ " 'Accident_Index': '201243S042042',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
" '2nd_Road_Class': -1,\n",
- " '2nd_Road_Number': 0,\n",
- " 'Accident_Index': '201243S111092',\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 6,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.766584,\n",
+ " 'Junction_Control': -1,\n",
+ " 'Speed_limit': 30,\n",
+ " 'Date': '11/04/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 4, 11, 23, 5),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.766584, 52.032646]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b7be'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 1}],\n",
- " 'Date': '28/09/2012',\n",
- " 'Datetime': datetime.datetime(2012, 9, 28, 9, 30),\n",
- " 'Day_of_Week': 6,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': -1,\n",
- " 'Junction_Detail': 0,\n",
- " 'LSOA_of_Accident_Location': 'E01016775',\n",
- " 'Latitude': 52.025888,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 484820,\n",
- " 'Location_Northing_OSGR': 237110,\n",
- " 'Longitude': -0.765167,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 1,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 3,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 70,\n",
+ " '1st_Road_Number': 5,\n",
" 'Time': '09:30',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 5,\n",
- " 'Engine_Capacity_(CC)': 1598,\n",
- " 'Hit_Object_in_Carriageway': 10,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 2,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': 0,\n",
+ " 'Location_Northing_OSGR': 237110,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 1,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 484820,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 6,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 5,\n",
+ " 'Vehicle_Leaving_Carriageway': 1,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 5,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 1,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 12,\n",
+ " 'Engine_Capacity_(CC)': 1598,\n",
" 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 6,\n",
+ " 'Hit_Object_in_Carriageway': 10,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 2,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': -1,\n",
+ " 'Vehicle_Manoeuvre': 12,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b7be'),\n",
- " 'loc': {'coordinates': [-0.765167, 52.025888], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 129,\n",
+ " 'Junction_Detail': 0,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
+ " 'LSOA_of_Accident_Location': 'E01016775',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.025888,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S111092',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 3,\n",
" '2nd_Road_Class': -1,\n",
- " '2nd_Road_Number': 0,\n",
- " 'Accident_Index': '201243S046092',\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 4,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.765167,\n",
+ " 'Junction_Control': -1,\n",
+ " 'Speed_limit': 70,\n",
+ " 'Date': '28/09/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 9, 28, 9, 30),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.765167, 52.025888]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b67a'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 4,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 5,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 1,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 3,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 3,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 1,\n",
+ " 'Age_Band_of_Casualty': 5,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 7,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 7,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '12/09/2012',\n",
- " 'Datetime': datetime.datetime(2012, 9, 12, 17, 40),\n",
- " 'Day_of_Week': 4,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': -1,\n",
- " 'Junction_Detail': 0,\n",
- " 'LSOA_of_Accident_Location': 'E01016756',\n",
- " 'Latitude': 52.019454,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 484570,\n",
- " 'Location_Northing_OSGR': 236390,\n",
- " 'Longitude': -0.768987,\n",
- " 'Number_of_Casualties': 3,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 60,\n",
+ " '1st_Road_Number': 129,\n",
" 'Time': '17:40',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 4,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 10,\n",
- " 'Engine_Capacity_(CC)': 1388,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 0,\n",
+ " 'Location_Northing_OSGR': 236390,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 484570,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 4,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 10,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1388,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': 7,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 10,\n",
- " 'Engine_Capacity_(CC)': 2000,\n",
+ " 'Age_Band_of_Driver': 4,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': -1,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 10,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 4,\n",
+ " 'Engine_Capacity_(CC)': 2000,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 7,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': 7,\n",
+ " 'Vehicle_Manoeuvre': 4,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b67a'),\n",
- " 'loc': {'coordinates': [-0.768987, 52.019454], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 8007,\n",
+ " 'Junction_Detail': 0,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
+ " 'LSOA_of_Accident_Location': 'E01016756',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.019454,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S046092',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
" '2nd_Road_Class': -1,\n",
- " '2nd_Road_Number': 0,\n",
- " 'Accident_Index': '201243S074072',\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 1,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 2,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.768987,\n",
+ " 'Junction_Control': -1,\n",
+ " 'Speed_limit': 60,\n",
+ " 'Date': '12/09/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 9, 12, 17, 40),\n",
+ " 'Number_of_Casualties': 3,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.768987, 52.019454]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b6fd'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 2,\n",
+ " 'Age_Band_of_Casualty': 1,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 6,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 3,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 19,\n",
+ " 'Vehicle_Reference': 3,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 3,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 3}],\n",
- " 'Date': '16/07/2012',\n",
- " 'Datetime': datetime.datetime(2012, 7, 16, 14, 55),\n",
- " 'Day_of_Week': 2,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': -1,\n",
- " 'Junction_Detail': 0,\n",
- " 'LSOA_of_Accident_Location': 'E01016775',\n",
- " 'Latitude': 52.023153,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 485070,\n",
- " 'Location_Northing_OSGR': 236810,\n",
- " 'Longitude': -0.761598,\n",
- " 'Number_of_Casualties': 2,\n",
- " 'Number_of_Vehicles': 3,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 60,\n",
+ " '1st_Road_Number': 8007,\n",
" 'Time': '14:55',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 4,\n",
- " 'Age_Band_of_Driver': 5,\n",
- " 'Age_of_Vehicle': 13,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 5,\n",
- " 'Engine_Capacity_(CC)': 1581,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 0,\n",
+ " 'Location_Northing_OSGR': 236810,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 3,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 485070,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 2,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 5,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 1,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 13,\n",
+ " 'Engine_Capacity_(CC)': 1581,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 3,\n",
- " 'Age_Band_of_Driver': 8,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': -1,\n",
- " 'Driver_IMD_Decile': -1,\n",
- " 'Engine_Capacity_(CC)': -1,\n",
+ " 'Age_Band_of_Driver': 5,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 1,\n",
- " 'Junction_Location': 0,\n",
- " 'Propulsion_Code': -1,\n",
+ " '1st_Point_of_Impact': 4,\n",
+ " 'Vehicle_Type': 9,\n",
" 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 13,\n",
+ " 'Vehicle_Manoeuvre': 13,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': -1,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 0,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 4,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': -1,\n",
" 'Vehicle_Reference': 2,\n",
- " 'Vehicle_Type': 19,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 3,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 1,\n",
- " 'Driver_Home_Area_Type': 3,\n",
- " 'Driver_IMD_Decile': 9,\n",
- " 'Engine_Capacity_(CC)': 1753,\n",
+ " 'Age_Band_of_Driver': 8,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 3,\n",
+ " 'Vehicle_Type': 19,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 1,\n",
+ " 'Driver_Home_Area_Type': -1,\n",
+ " 'Propulsion_Code': -1,\n",
+ " 'Age_of_Vehicle': -1,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
+ " 'Engine_Capacity_(CC)': 1753,\n",
+ " 'Vehicle_Reference': 3,\n",
+ " 'Age_Band_of_Driver': 6,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 3,\n",
+ " 'Vehicle_Type': 19,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 1,\n",
+ " 'Driver_Home_Area_Type': 3,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': 1,\n",
" 'Vehicle_Manoeuvre': 18,\n",
- " 'Vehicle_Reference': 3,\n",
- " 'Vehicle_Type': 19,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b6fd'),\n",
- " 'loc': {'coordinates': [-0.761598, 52.023153], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 156,\n",
- " '2nd_Road_Class': 5,\n",
- " '2nd_Road_Number': 8007,\n",
- " 'Accident_Index': '201243S034052',\n",
+ " 'Junction_Detail': 0,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
+ " 'LSOA_of_Accident_Location': 'E01016775',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.023153,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S074072',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
+ " '2nd_Road_Class': -1,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 10,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.761598,\n",
+ " 'Junction_Control': -1,\n",
+ " 'Speed_limit': 60,\n",
+ " 'Date': '16/07/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 7, 16, 14, 55),\n",
+ " 'Number_of_Casualties': 2,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.761598, 52.023153]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b640'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 10,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 8,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 1,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 3,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 3,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 1,\n",
+ " 'Age_Band_of_Casualty': 8,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 6,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 3,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 3,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '06/05/2012',\n",
- " 'Datetime': datetime.datetime(2012, 5, 6, 16, 30),\n",
- " 'Day_of_Week': 1,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 1,\n",
- " 'LSOA_of_Accident_Location': 'E01016728',\n",
- " 'Latitude': 52.02537,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 485270,\n",
- " 'Location_Northing_OSGR': 237060,\n",
- " 'Longitude': -0.758622,\n",
- " 'Number_of_Casualties': 3,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 1,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 70,\n",
+ " '1st_Road_Number': 156,\n",
" 'Time': '16:30',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 3,\n",
- " 'Age_Band_of_Driver': 10,\n",
- " 'Age_of_Vehicle': 11,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 5,\n",
- " 'Engine_Capacity_(CC)': 1997,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 1,\n",
+ " '2nd_Road_Number': 8007,\n",
+ " 'Location_Northing_OSGR': 237060,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 485270,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 1,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 5,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 4,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1997,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 9,\n",
- " 'Driver_Home_Area_Type': 3,\n",
- " 'Driver_IMD_Decile': 9,\n",
- " 'Engine_Capacity_(CC)': 1781,\n",
+ " 'Age_Band_of_Driver': 10,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 3,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 8,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
+ " 'Age_of_Vehicle': 11,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 8,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1781,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 6,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 3,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 9,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b640'),\n",
- " 'loc': {'coordinates': [-0.758622, 52.02537], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 156,\n",
- " '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1069,\n",
- " 'Accident_Index': '201243S094092',\n",
+ " 'Junction_Detail': 1,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016728',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.02537,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S034052',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
+ " '2nd_Road_Class': 5,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 7,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.758622,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 70,\n",
+ " 'Date': '06/05/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 5, 6, 16, 30),\n",
+ " 'Number_of_Casualties': 3,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.758622, 52.02537]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b766'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 7,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 7,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 7,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2},\n",
- " {'Age_Band_of_Casualty': 2,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 1,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 3,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 3,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 1,\n",
+ " 'Age_Band_of_Casualty': 2,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '22/09/2012',\n",
- " 'Datetime': datetime.datetime(2012, 9, 22, 17, 25),\n",
- " 'Day_of_Week': 7,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 3,\n",
- " 'LSOA_of_Accident_Location': 'E01016728',\n",
- " 'Latitude': 52.029276,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 485000,\n",
- " 'Location_Northing_OSGR': 237490,\n",
- " 'Longitude': -0.762449,\n",
- " 'Number_of_Casualties': 3,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 3,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 70,\n",
+ " '1st_Road_Number': 156,\n",
" 'Time': '17:25',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 4,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': 8,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 2,\n",
- " 'Engine_Capacity_(CC)': 1364,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 3,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': 1069,\n",
+ " 'Location_Northing_OSGR': 237490,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 485000,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 7,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 2,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 8,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Engine_Capacity_(CC)': 1364,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 1,\n",
" 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': 11,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 8,\n",
- " 'Engine_Capacity_(CC)': 1598,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 1,\n",
+ " '1st_Point_of_Impact': 4,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 3,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
+ " 'Age_of_Vehicle': 8,\n",
+ " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 8,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1598,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 7,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 11,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b766'),\n",
- " 'loc': {'coordinates': [-0.762449, 52.029276], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 147,\n",
- " '2nd_Road_Class': -1,\n",
- " '2nd_Road_Number': 0,\n",
- " 'Accident_Index': '201243S091032',\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016728',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.029276,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S094092',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
+ " '2nd_Road_Class': 6,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 8,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 1,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.762449,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 70,\n",
+ " 'Date': '22/09/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 9, 22, 17, 25),\n",
+ " 'Number_of_Casualties': 3,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.762449, 52.029276]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b752'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 1,\n",
+ " 'Age_Band_of_Casualty': 8,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2},\n",
- " {'Age_Band_of_Casualty': 11,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 2,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 2,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 11,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '04/03/2012',\n",
- " 'Datetime': datetime.datetime(2012, 3, 4, 16, 9),\n",
- " 'Day_of_Week': 1,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': -1,\n",
- " 'Junction_Detail': 0,\n",
- " 'LSOA_of_Accident_Location': 'E01016847',\n",
- " 'Latitude': 52.025808,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 485340,\n",
- " 'Location_Northing_OSGR': 237110,\n",
- " 'Longitude': -0.757589,\n",
- " 'Number_of_Casualties': 2,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 60,\n",
+ " '1st_Road_Number': 147,\n",
" 'Time': '16:09',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 8,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 2,\n",
- " 'Engine_Capacity_(CC)': 2874,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 0,\n",
+ " 'Location_Northing_OSGR': 237110,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 485340,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 1,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 2,\n",
+ " 'Vehicle_Leaving_Carriageway': 7,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 7,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 2874,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 11,\n",
- " 'Age_of_Vehicle': 13,\n",
- " 'Driver_Home_Area_Type': 2,\n",
- " 'Driver_IMD_Decile': 8,\n",
- " 'Engine_Capacity_(CC)': 1998,\n",
+ " 'Age_Band_of_Driver': 6,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': 8,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 8,\n",
+ " 'Vehicle_Leaving_Carriageway': 1,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 1,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1998,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 11,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 2,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 13,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 2,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b752'),\n",
- " 'loc': {'coordinates': [-0.757589, 52.025808], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 156,\n",
- " '2nd_Road_Class': 5,\n",
- " '2nd_Road_Number': 147,\n",
- " 'Accident_Index': '201243S097042',\n",
+ " 'Junction_Detail': 0,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016847',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.025808,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S091032',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
+ " '2nd_Road_Class': -1,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 7,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.757589,\n",
+ " 'Junction_Control': -1,\n",
+ " 'Speed_limit': 60,\n",
+ " 'Date': '04/03/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 3, 4, 16, 9),\n",
+ " 'Number_of_Casualties': 2,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.757589, 52.025808]},\n",
+ " 'Weather_Conditions': 2},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b778'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 7,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '27/04/2012',\n",
- " 'Datetime': datetime.datetime(2012, 4, 27, 22, 55),\n",
- " 'Day_of_Week': 6,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 2,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 1,\n",
- " 'LSOA_of_Accident_Location': 'E01016844',\n",
- " 'Latitude': 52.025632,\n",
- " 'Light_Conditions': 4,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 485320,\n",
- " 'Location_Northing_OSGR': 237090,\n",
- " 'Longitude': -0.757886,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 60,\n",
+ " '1st_Road_Number': 156,\n",
" 'Time': '22:55',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': -1,\n",
- " 'Age_of_Vehicle': 14,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 5,\n",
- " 'Engine_Capacity_(CC)': 1900,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 147,\n",
+ " 'Location_Northing_OSGR': 237090,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 485320,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 6,\n",
+ " 'Light_Conditions': 4,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 5,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 1,\n",
- " 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
- " 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': 14,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 1,\n",
" 'Engine_Capacity_(CC)': 1900,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': -1,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 1,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 2,\n",
+ " 'Age_of_Vehicle': 14,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 1,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 3,\n",
+ " 'Engine_Capacity_(CC)': 1900,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 7,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': 14,\n",
+ " 'Vehicle_Manoeuvre': 3,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 2,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b778'),\n",
- " 'loc': {'coordinates': [-0.757886, 52.025632], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 147,\n",
- " '2nd_Road_Class': -1,\n",
- " '2nd_Road_Number': 0,\n",
- " 'Accident_Index': '201243S016062',\n",
+ " 'Junction_Detail': 1,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016844',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.025632,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 2,\n",
+ " 'Accident_Index': '201243S097042',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
+ " '2nd_Road_Class': 5,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 5,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.757886,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 60,\n",
+ " 'Date': '27/04/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 4, 27, 22, 55),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.757886, 52.025632]},\n",
+ " 'Weather_Conditions': 2},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b5f1'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 5,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 4,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 1,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 4,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 4,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 1,\n",
+ " 'Age_Band_of_Casualty': 4,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 5,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 1,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 1,\n",
+ " 'Age_Band_of_Casualty': 5,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2},\n",
- " {'Age_Band_of_Casualty': 1,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 2,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 3,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 3,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 2,\n",
+ " 'Age_Band_of_Casualty': 1,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '05/06/2012',\n",
- " 'Datetime': datetime.datetime(2012, 6, 5, 20, 10),\n",
- " 'Day_of_Week': 3,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': -1,\n",
- " 'Junction_Detail': 0,\n",
- " 'LSOA_of_Accident_Location': 'E01016728',\n",
- " 'Latitude': 52.025898,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 485340,\n",
- " 'Location_Northing_OSGR': 237120,\n",
- " 'Longitude': -0.757587,\n",
- " 'Number_of_Casualties': 4,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 60,\n",
+ " '1st_Road_Number': 147,\n",
" 'Time': '20:10',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 4,\n",
- " 'Age_Band_of_Driver': 5,\n",
- " 'Age_of_Vehicle': 11,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 9,\n",
- " 'Engine_Capacity_(CC)': 1995,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 0,\n",
+ " 'Location_Northing_OSGR': 237120,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 485340,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 3,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 7,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 1,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 7,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1995,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 1,\n",
" 'Age_Band_of_Driver': 5,\n",
- " 'Age_of_Vehicle': 11,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 5,\n",
- " 'Engine_Capacity_(CC)': 2198,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 4,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 0,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
+ " 'Age_of_Vehicle': 11,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 5,\n",
+ " 'Vehicle_Leaving_Carriageway': 1,\n",
+ " 'Junction_Location': 0,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 1,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 2198,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 5,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 11,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 2,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b5f1'),\n",
- " 'loc': {'coordinates': [-0.757587, 52.025898], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 147,\n",
+ " 'Junction_Detail': 0,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016728',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.025898,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S016062',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
" '2nd_Road_Class': -1,\n",
- " '2nd_Road_Number': 0,\n",
- " 'Accident_Index': '201243S015082',\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 7,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.757587,\n",
+ " 'Junction_Control': -1,\n",
+ " 'Speed_limit': 60,\n",
+ " 'Date': '05/06/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 6, 5, 20, 10),\n",
+ " 'Number_of_Casualties': 4,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.757587, 52.025898]},\n",
+ " 'Weather_Conditions': 2},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b5ef'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 3,\n",
- " 'Casualty_Reference': 3,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 3,\n",
+ " 'Casualty_Home_Area_Type': 3,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 7,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 8,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 8,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2},\n",
- " {'Age_Band_of_Casualty': 8,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 1,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 1,\n",
+ " 'Age_Band_of_Casualty': 8,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '02/08/2012',\n",
- " 'Datetime': datetime.datetime(2012, 8, 2, 16, 50),\n",
- " 'Day_of_Week': 5,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': -1,\n",
- " 'Junction_Detail': 0,\n",
- " 'LSOA_of_Accident_Location': 'E01016847',\n",
- " 'Latitude': 52.025808,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 485340,\n",
- " 'Location_Northing_OSGR': 237110,\n",
- " 'Longitude': -0.757589,\n",
- " 'Number_of_Casualties': 3,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 60,\n",
+ " '1st_Road_Number': 147,\n",
" 'Time': '16:50',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': 8,\n",
- " 'Driver_Home_Area_Type': 3,\n",
- " 'Driver_IMD_Decile': 9,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 0,\n",
+ " 'Location_Northing_OSGR': 237110,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 485340,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 5,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 2,\n",
+ " 'Junction_Location': 0,\n",
+ " 'Skidding_and_Overturning': 0,\n",
+ " 'Towing_and_Articulation': 0,\n",
+ " 'Vehicle_Location-Restricted_Lane': 0,\n",
" 'Engine_Capacity_(CC)': 2776,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 7,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 7,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 1,\n",
- " 'Junction_Location': 0,\n",
+ " 'Driver_Home_Area_Type': 3,\n",
" 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 2,\n",
+ " 'Age_of_Vehicle': 8,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 7,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 0,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 2,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
- " 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 8,\n",
- " 'Age_of_Vehicle': 9,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 7,\n",
" 'Engine_Capacity_(CC)': 1595,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 8,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 1,\n",
- " 'Junction_Location': 0,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
- " 'Skidding_and_Overturning': 0,\n",
- " 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
- " 'Vehicle_Location-Restricted_Lane': 0,\n",
+ " 'Age_of_Vehicle': 9,\n",
" 'Vehicle_Manoeuvre': 18,\n",
- " 'Vehicle_Reference': 2,\n",
- " 'Vehicle_Type': 9,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 2,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b5ef'),\n",
- " 'loc': {'coordinates': [-0.757589, 52.025808], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 156,\n",
- " '2nd_Road_Class': 5,\n",
- " '2nd_Road_Number': 147,\n",
- " 'Accident_Index': '201243S090092',\n",
+ " 'Junction_Detail': 0,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016847',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.025808,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S015082',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
+ " '2nd_Road_Class': -1,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 5,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.757589,\n",
+ " 'Junction_Control': -1,\n",
+ " 'Speed_limit': 60,\n",
+ " 'Date': '02/08/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 8, 2, 16, 50),\n",
+ " 'Number_of_Casualties': 3,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.757589, 52.025808]},\n",
+ " 'Weather_Conditions': 2},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b750'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 5,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 6,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 1,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 1,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1}],\n",
- " 'Date': '22/09/2012',\n",
- " 'Datetime': datetime.datetime(2012, 9, 22, 6, 10),\n",
- " 'Day_of_Week': 7,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 1,\n",
- " 'LSOA_of_Accident_Location': 'E01016728',\n",
- " 'Latitude': 52.025636,\n",
- " 'Light_Conditions': 4,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 485290,\n",
- " 'Location_Northing_OSGR': 237090,\n",
- " 'Longitude': -0.758323,\n",
- " 'Number_of_Casualties': 2,\n",
- " 'Number_of_Vehicles': 1,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 3,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 70,\n",
+ " '1st_Road_Number': 156,\n",
" 'Time': '06:10',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 5,\n",
- " 'Age_of_Vehicle': 1,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 2,\n",
- " 'Engine_Capacity_(CC)': 1399,\n",
- " 'Hit_Object_in_Carriageway': 9,\n",
- " 'Hit_Object_off_Carriageway': 10,\n",
- " 'Journey_Purpose_of_Driver': 1,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': 147,\n",
+ " 'Location_Northing_OSGR': 237090,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 1,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 485290,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 7,\n",
+ " 'Light_Conditions': 4,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 2,\n",
+ " 'Vehicle_Leaving_Carriageway': 1,\n",
" 'Junction_Location': 8,\n",
- " 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 1,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 1,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1399,\n",
" 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 5,\n",
+ " 'Hit_Object_in_Carriageway': 9,\n",
+ " 'Hit_Object_off_Carriageway': 10,\n",
+ " '1st_Point_of_Impact': 1,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 1,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': 1,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b750'),\n",
- " 'loc': {'coordinates': [-0.758323, 52.025636], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 156,\n",
- " '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1069,\n",
- " 'Accident_Index': '201243S031092',\n",
+ " 'Junction_Detail': 1,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016728',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.025636,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S090092',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
+ " '2nd_Road_Class': 5,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 5,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 1,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.758323,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 70,\n",
+ " 'Date': '22/09/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 9, 22, 6, 10),\n",
+ " 'Number_of_Casualties': 2,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.758323, 52.025636]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b632'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 1,\n",
+ " 'Age_Band_of_Casualty': 5,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2},\n",
- " {'Age_Band_of_Casualty': 4,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 2,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 2,\n",
+ " 'Age_Band_of_Casualty': 4,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2},\n",
- " {'Age_Band_of_Casualty': 4,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': -1,\n",
- " 'Casualty_Reference': 3,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 3,\n",
+ " 'Casualty_Home_Area_Type': -1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 4,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '08/09/2012',\n",
- " 'Datetime': datetime.datetime(2012, 9, 8, 11, 50),\n",
- " 'Day_of_Week': 7,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 3,\n",
- " 'LSOA_of_Accident_Location': 'E01016844',\n",
- " 'Latitude': 52.022997,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 485500,\n",
- " 'Location_Northing_OSGR': 236800,\n",
- " 'Longitude': -0.755335,\n",
- " 'Number_of_Casualties': 3,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 3,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 70,\n",
+ " '1st_Road_Number': 156,\n",
" 'Time': '11:50',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 4,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 3,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 10,\n",
- " 'Engine_Capacity_(CC)': 1968,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': 1069,\n",
+ " 'Location_Northing_OSGR': 236800,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 485500,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 7,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 10,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 8,\n",
- " 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Engine_Capacity_(CC)': 1968,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 4,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': -1,\n",
- " 'Driver_IMD_Decile': -1,\n",
- " 'Engine_Capacity_(CC)': 1242,\n",
+ " 'Age_Band_of_Driver': 6,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 4,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': 3,\n",
+ " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': -1,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 1,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 5,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1242,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 4,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': -1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': -1,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b632'),\n",
- " 'loc': {'coordinates': [-0.755335, 52.022997], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 156,\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016844',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.022997,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S031092',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
" '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1069,\n",
- " 'Accident_Index': '201243S043102',\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 1,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 2,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.755335,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 70,\n",
+ " 'Date': '08/09/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 9, 8, 11, 50),\n",
+ " 'Number_of_Casualties': 3,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.755335, 52.022997]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b670'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
- " 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
- " 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 6,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
- " 'Casualty_Class': 1,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 2,\n",
" 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
- " 'Casualty_Type': 9,\n",
- " 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
- " 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '10/10/2012',\n",
- " 'Datetime': datetime.datetime(2012, 10, 10, 8, 48),\n",
- " 'Day_of_Week': 4,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 3,\n",
- " 'LSOA_of_Accident_Location': 'E01016844',\n",
- " 'Latitude': 52.022994,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 485520,\n",
- " 'Location_Northing_OSGR': 236800,\n",
- " 'Longitude': -0.755044,\n",
- " 'Number_of_Casualties': 2,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Pedestrian_Location': 0,\n",
+ " 'Car_Passenger': 2,\n",
+ " 'Age_Band_of_Casualty': 1,\n",
+ " 'Pedestrian_Road_Maintenance_Worker': 0,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2},\n",
+ " {'Casualty_Severity': 3,\n",
+ " 'Casualty_Class': 1,\n",
+ " 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
+ " 'Pedestrian_Location': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
+ " 'Pedestrian_Road_Maintenance_Worker': 0,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 3,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 70,\n",
+ " '1st_Road_Number': 156,\n",
" 'Time': '08:48',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 3,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 9,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 2,\n",
- " 'Engine_Capacity_(CC)': 1998,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 3,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': 1069,\n",
+ " 'Location_Northing_OSGR': 236800,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 485520,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 4,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 2,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 6,\n",
- " 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Engine_Capacity_(CC)': 1998,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 1,\n",
" 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 10,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 5,\n",
- " 'Engine_Capacity_(CC)': 1149,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " '1st_Point_of_Impact': 3,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 3,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': 9,\n",
+ " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 5,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 1,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1149,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 6,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 10,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b670'),\n",
- " 'loc': {'coordinates': [-0.755044, 52.022994], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 156,\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016844',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.022994,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S043102',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
" '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1069,\n",
- " 'Accident_Index': '201243S144102',\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 11,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.755044,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 70,\n",
+ " 'Date': '10/10/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 10, 10, 8, 48),\n",
+ " 'Number_of_Casualties': 2,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.755044, 52.022994]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b843'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 11,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 8,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 8,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2},\n",
- " {'Age_Band_of_Casualty': 2,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 1,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 3,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 3,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 1,\n",
+ " 'Age_Band_of_Casualty': 2,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '31/10/2012',\n",
- " 'Datetime': datetime.datetime(2012, 10, 31, 15, 51),\n",
- " 'Day_of_Week': 4,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 3,\n",
- " 'LSOA_of_Accident_Location': 'E01016844',\n",
- " 'Latitude': 52.023362,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 485470,\n",
- " 'Location_Northing_OSGR': 236840,\n",
- " 'Longitude': -0.755763,\n",
- " 'Number_of_Casualties': 3,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 3,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 70,\n",
+ " '1st_Road_Number': 156,\n",
" 'Time': '15:51',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 3,\n",
- " 'Age_Band_of_Driver': 11,\n",
- " 'Age_of_Vehicle': 5,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 5,\n",
- " 'Engine_Capacity_(CC)': 1598,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': 1069,\n",
+ " 'Location_Northing_OSGR': 236840,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 485470,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 4,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 5,\n",
+ " 'Vehicle_Leaving_Carriageway': 1,\n",
" 'Junction_Location': 8,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 1,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Engine_Capacity_(CC)': 1598,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 4,\n",
- " 'Age_Band_of_Driver': 8,\n",
- " 'Age_of_Vehicle': 5,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 4,\n",
- " 'Engine_Capacity_(CC)': 2000,\n",
+ " 'Age_Band_of_Driver': 11,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 3,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 1,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
+ " 'Age_of_Vehicle': 5,\n",
+ " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 4,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 2000,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 8,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 4,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 5,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 2,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b843'),\n",
- " 'loc': {'coordinates': [-0.755763, 52.023362], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 6,\n",
- " '1st_Road_Number': 1069,\n",
- " '2nd_Road_Class': -1,\n",
- " '2nd_Road_Number': -1,\n",
- " 'Accident_Index': '201243S143052',\n",
- " 'Accident_Severity': 2,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 4,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016844',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.023362,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S144102',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
+ " '2nd_Road_Class': 6,\n",
+ " 'Accident_Severity': 3,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.755763,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 70,\n",
+ " 'Date': '31/10/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 10, 31, 15, 51),\n",
+ " 'Number_of_Casualties': 3,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.755763, 52.023362]},\n",
+ " 'Weather_Conditions': 2},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b840'),\n",
+ " 'Casualties': [{'Casualty_Severity': 2,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 2,\n",
" 'Casualty_Type': 3,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 4,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 8,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 8,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '22/05/2012',\n",
- " 'Datetime': datetime.datetime(2012, 5, 22, 15, 7),\n",
- " 'Day_of_Week': 3,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 8,\n",
- " 'LSOA_of_Accident_Location': 'E01016847',\n",
- " 'Latitude': 52.024261,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 486050,\n",
- " 'Location_Northing_OSGR': 236950,\n",
- " 'Longitude': -0.747284,\n",
- " 'Number_of_Casualties': 2,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 30,\n",
+ " '1st_Road_Number': 1069,\n",
" 'Time': '15:07',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 4,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 2,\n",
- " 'Engine_Capacity_(CC)': -1,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': -1,\n",
+ " 'Location_Northing_OSGR': 236950,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 486050,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 3,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 2,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 1,\n",
- " 'Propulsion_Code': -1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
- " 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 3,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': 8,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 2,\n",
" 'Engine_Capacity_(CC)': -1,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 4,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 3,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': -1,\n",
- " 'Sex_of_Driver': 1,\n",
+ " 'Age_of_Vehicle': -1,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 2,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 6,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 1,\n",
+ " 'Engine_Capacity_(CC)': -1,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 8,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': -1,\n",
+ " 'Age_of_Vehicle': -1,\n",
+ " 'Vehicle_Manoeuvre': 1,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b840'),\n",
- " 'loc': {'coordinates': [-0.747284, 52.024261], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 157,\n",
+ " 'Junction_Detail': 8,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016847',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.024261,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S143052',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 6,\n",
" '2nd_Road_Class': -1,\n",
- " '2nd_Road_Number': 0,\n",
- " 'Accident_Index': '201243S106062',\n",
- " 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 1,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Accident_Severity': 2,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.747284,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 30,\n",
+ " 'Date': '22/05/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 5, 22, 15, 7),\n",
+ " 'Number_of_Casualties': 2,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.747284, 52.024261]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b7a0'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 3,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 0,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 5,\n",
- " 'Pedestrian_Movement': 3,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 1,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1}],\n",
- " 'Date': '28/06/2012',\n",
- " 'Datetime': datetime.datetime(2012, 6, 28, 16, 14),\n",
- " 'Day_of_Week': 5,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': -1,\n",
- " 'Junction_Detail': 0,\n",
- " 'LSOA_of_Accident_Location': 'E01016729',\n",
- " 'Latitude': 52.03474,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 485710,\n",
- " 'Location_Northing_OSGR': 238110,\n",
- " 'Longitude': -0.751948,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 1,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 3,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 3,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 70,\n",
+ " '1st_Road_Number': 157,\n",
" 'Time': '16:14',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 3,\n",
- " 'Age_Band_of_Driver': 8,\n",
- " 'Age_of_Vehicle': 10,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 4,\n",
- " 'Engine_Capacity_(CC)': 1686,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 2,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': 0,\n",
+ " 'Location_Northing_OSGR': 238110,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 1,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 485710,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 5,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 4,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1686,\n",
" 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 8,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 3,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 2,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': 10,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b7a0'),\n",
- " 'loc': {'coordinates': [-0.751948, 52.03474], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 147,\n",
- " '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1069,\n",
- " 'Accident_Index': '201243S039102',\n",
- " 'Accident_Severity': 2,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 7,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Junction_Detail': 0,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016729',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.03474,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S106062',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
+ " '2nd_Road_Class': -1,\n",
+ " 'Accident_Severity': 3,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.751948,\n",
+ " 'Junction_Control': -1,\n",
+ " 'Speed_limit': 70,\n",
+ " 'Date': '28/06/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 6, 28, 16, 14),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.751948, 52.03474]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b65d'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 7,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 3,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 1,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 4,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 4,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 1,\n",
+ " 'Age_Band_of_Casualty': 3,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 3,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 2,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 5,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 5,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 2,\n",
+ " 'Age_Band_of_Casualty': 3,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 2,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 2,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 6,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 6,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 2,\n",
+ " 'Age_Band_of_Casualty': 2,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 2,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 2,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 7,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 7,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 2,\n",
+ " 'Age_Band_of_Casualty': 2,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 3,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 2,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2},\n",
+ " {'Casualty_Severity': 2,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 2,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 2,\n",
+ " 'Age_Band_of_Casualty': 3,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2},\n",
- " {'Age_Band_of_Casualty': 1,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 2,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 3,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 3,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
- " 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '09/10/2012',\n",
- " 'Datetime': datetime.datetime(2012, 10, 9, 8, 10),\n",
- " 'Day_of_Week': 3,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 3,\n",
- " 'LSOA_of_Accident_Location': 'E01016847',\n",
- " 'Latitude': 52.029762,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 485930,\n",
- " 'Location_Northing_OSGR': 237560,\n",
- " 'Longitude': -0.74888,\n",
- " 'Number_of_Casualties': 7,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Car_Passenger': 2,\n",
+ " 'Age_Band_of_Casualty': 1,\n",
+ " 'Pedestrian_Road_Maintenance_Worker': 0,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 60,\n",
+ " '1st_Road_Number': 147,\n",
" 'Time': '08:10',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': 5,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 4,\n",
- " 'Engine_Capacity_(CC)': 1598,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 3,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 1069,\n",
+ " 'Location_Northing_OSGR': 237560,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 485930,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 3,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 4,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 8,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Engine_Capacity_(CC)': 1598,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 1,\n",
" 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 5,\n",
- " 'Engine_Capacity_(CC)': -1,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 3,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 5,\n",
+ " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 5,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 1,\n",
- " 'Propulsion_Code': -1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': -1,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 7,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 3,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': -1,\n",
+ " 'Age_of_Vehicle': -1,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b65d'),\n",
- " 'loc': {'coordinates': [-0.74888, 52.029762], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 6,\n",
- " '1st_Road_Number': 1069,\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016847',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.029762,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S039102',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
" '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1069,\n",
- " 'Accident_Index': '201243S088102',\n",
- " 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 7,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 1,\n",
+ " 'Accident_Severity': 2,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.74888,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 60,\n",
+ " 'Date': '09/10/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 10, 9, 8, 10),\n",
+ " 'Number_of_Casualties': 7,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.74888, 52.029762]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b746'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 1,\n",
+ " 'Age_Band_of_Casualty': 7,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2},\n",
- " {'Age_Band_of_Casualty': 7,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 2,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 2,\n",
+ " 'Age_Band_of_Casualty': 7,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '20/10/2012',\n",
- " 'Datetime': datetime.datetime(2012, 10, 20, 14, 0),\n",
- " 'Day_of_Week': 7,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 1,\n",
- " 'LSOA_of_Accident_Location': 'E01016729',\n",
- " 'Latitude': 52.034629,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 485850,\n",
- " 'Location_Northing_OSGR': 238100,\n",
- " 'Longitude': -0.74991,\n",
- " 'Number_of_Casualties': 2,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 30,\n",
+ " '1st_Road_Number': 1069,\n",
" 'Time': '14:00',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 8,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 2,\n",
- " 'Engine_Capacity_(CC)': -1,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 1069,\n",
+ " 'Location_Northing_OSGR': 238100,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 485850,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 7,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 2,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 1,\n",
- " 'Propulsion_Code': -1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': -1,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
" 'Age_Band_of_Driver': 8,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 8,\n",
- " 'Engine_Capacity_(CC)': -1,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 1,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': -1,\n",
- " 'Sex_of_Driver': 2,\n",
+ " 'Age_of_Vehicle': -1,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 8,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 4,\n",
+ " 'Engine_Capacity_(CC)': -1,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 8,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': -1,\n",
+ " 'Age_of_Vehicle': -1,\n",
+ " 'Vehicle_Manoeuvre': 4,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b746'),\n",
- " 'loc': {'coordinates': [-0.74991, 52.034629], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 147,\n",
+ " 'Junction_Detail': 1,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016729',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.034629,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S088102',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 6,\n",
" '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1069,\n",
- " 'Accident_Index': '201243S144112',\n",
- " 'Accident_Severity': 2,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 6,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Accident_Severity': 3,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.74991,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 30,\n",
+ " 'Date': '20/10/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 10, 20, 14, 0),\n",
+ " 'Number_of_Casualties': 2,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.74991, 52.034629]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b844'),\n",
+ " 'Casualties': [{'Casualty_Severity': 2,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 2,\n",
" 'Casualty_Type': 3,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '28/11/2012',\n",
- " 'Datetime': datetime.datetime(2012, 11, 28, 17, 22),\n",
- " 'Day_of_Week': 4,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 3,\n",
- " 'LSOA_of_Accident_Location': 'E01016727',\n",
- " 'Latitude': 52.029764,\n",
- " 'Light_Conditions': 4,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 485920,\n",
- " 'Location_Northing_OSGR': 237560,\n",
- " 'Longitude': -0.749025,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 60,\n",
+ " '1st_Road_Number': 147,\n",
" 'Time': '17:22',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 3,\n",
- " 'Age_Band_of_Driver': 4,\n",
- " 'Age_of_Vehicle': 4,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 9,\n",
- " 'Engine_Capacity_(CC)': 1149,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 1069,\n",
+ " 'Location_Northing_OSGR': 237560,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 485920,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 4,\n",
+ " 'Light_Conditions': 4,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 6,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Engine_Capacity_(CC)': 1149,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 4,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 6,\n",
- " 'Engine_Capacity_(CC)': 124,\n",
+ " 'Age_Band_of_Driver': 4,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 3,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 8,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
+ " 'Age_of_Vehicle': 4,\n",
+ " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 6,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 8,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 124,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 6,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
" 'Vehicle_Type': 3,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 4,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b844'),\n",
- " 'loc': {'coordinates': [-0.749025, 52.029764], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 146,\n",
- " '2nd_Road_Class': 5,\n",
- " '2nd_Road_Number': 157,\n",
- " 'Accident_Index': '201243S026042',\n",
- " 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 6,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016727',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.029764,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S144112',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
+ " '2nd_Road_Class': 6,\n",
+ " 'Accident_Severity': 2,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.749025,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 60,\n",
+ " 'Date': '28/11/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 11, 28, 17, 22),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.749025, 52.029764]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b618'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1}],\n",
- " 'Date': '06/04/2012',\n",
- " 'Datetime': datetime.datetime(2012, 4, 6, 19, 3),\n",
- " 'Day_of_Week': 6,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 1,\n",
- " 'LSOA_of_Accident_Location': 'E01016729',\n",
- " 'Latitude': 52.036572,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 485490,\n",
- " 'Location_Northing_OSGR': 238310,\n",
- " 'Longitude': -0.755104,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 1,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 3,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 70,\n",
+ " '1st_Road_Number': 146,\n",
" 'Time': '19:03',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 3,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 1,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 6,\n",
- " 'Engine_Capacity_(CC)': 1870,\n",
- " 'Hit_Object_in_Carriageway': 10,\n",
- " 'Hit_Object_off_Carriageway': 10,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': 157,\n",
+ " 'Location_Northing_OSGR': 238310,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 1,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 485490,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 6,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 6,\n",
+ " 'Vehicle_Leaving_Carriageway': 6,\n",
" 'Junction_Location': 4,\n",
- " 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 1,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 6,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1870,\n",
" 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 6,\n",
+ " 'Hit_Object_in_Carriageway': 10,\n",
+ " 'Hit_Object_off_Carriageway': 10,\n",
+ " '1st_Point_of_Impact': 3,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': 1,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b618'),\n",
- " 'loc': {'coordinates': [-0.755104, 52.036572], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 6,\n",
- " '1st_Road_Number': 8206,\n",
- " '2nd_Road_Class': -1,\n",
- " '2nd_Road_Number': 0,\n",
- " 'Accident_Index': '201243S066042',\n",
+ " 'Junction_Detail': 1,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016729',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.036572,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S026042',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
+ " '2nd_Road_Class': 5,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 7,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.755104,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 70,\n",
+ " 'Date': '06/04/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 4, 6, 19, 3),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.755104, 52.036572]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b6d6'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 7,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2},\n",
- " {'Age_Band_of_Casualty': 5,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 2,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 2,\n",
+ " 'Age_Band_of_Casualty': 5,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '15/04/2012',\n",
- " 'Datetime': datetime.datetime(2012, 4, 15, 16, 20),\n",
- " 'Day_of_Week': 1,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': -1,\n",
- " 'Junction_Detail': 0,\n",
- " 'LSOA_of_Accident_Location': 'E01016730',\n",
- " 'Latitude': 52.039107,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 485370,\n",
- " 'Location_Northing_OSGR': 238590,\n",
- " 'Longitude': -0.756783,\n",
- " 'Number_of_Casualties': 2,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 3,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 30,\n",
+ " '1st_Road_Number': 8206,\n",
" 'Time': '16:20',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 3,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 2,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 8,\n",
- " 'Engine_Capacity_(CC)': 1248,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': 0,\n",
+ " 'Location_Northing_OSGR': 238590,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 485370,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 1,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 8,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 12,\n",
+ " 'Engine_Capacity_(CC)': 1248,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 4,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': 7,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 3,\n",
- " 'Engine_Capacity_(CC)': 1490,\n",
+ " 'Age_Band_of_Driver': 6,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 3,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 0,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
+ " 'Age_of_Vehicle': 2,\n",
+ " 'Vehicle_Manoeuvre': 12,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 3,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 0,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1490,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 7,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 4,\n",
" 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b6d6'),\n",
- " 'loc': {'coordinates': [-0.756783, 52.039107], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 6,\n",
- " '1st_Road_Number': 1098,\n",
- " '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1098,\n",
- " 'Accident_Index': '201243S099042',\n",
- " 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 8,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
- " 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 2,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
- " 'Casualty_Type': 9,\n",
- " 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
- " 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '27/04/2012',\n",
- " 'Datetime': datetime.datetime(2012, 4, 27, 16, 50),\n",
- " 'Day_of_Week': 6,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 6,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 7,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
+ " 'Junction_Detail': 0,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
" 'LSOA_of_Accident_Location': 'E01016730',\n",
- " 'Latitude': 52.039456,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 485440,\n",
- " 'Location_Northing_OSGR': 238630,\n",
- " 'Longitude': -0.755753,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
" 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.039107,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S066042',\n",
" 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
- " 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 6,\n",
+ " '1st_Road_Class': 6,\n",
+ " '2nd_Road_Class': -1,\n",
+ " 'Accident_Severity': 3,\n",
" 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.756783,\n",
+ " 'Junction_Control': -1,\n",
" 'Speed_limit': 30,\n",
+ " 'Date': '15/04/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 4, 15, 16, 20),\n",
+ " 'Number_of_Casualties': 2,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.756783, 52.039107]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b77f'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
+ " 'Casualty_Class': 1,\n",
+ " 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 2,\n",
+ " 'Pedestrian_Location': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 8,\n",
+ " 'Pedestrian_Road_Maintenance_Worker': 0,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
+ " 'Road_Surface_Conditions': 2,\n",
+ " '1st_Road_Number': 1098,\n",
" 'Time': '16:50',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 4,\n",
- " 'Age_of_Vehicle': 11,\n",
- " 'Driver_Home_Area_Type': 3,\n",
- " 'Driver_IMD_Decile': 10,\n",
- " 'Engine_Capacity_(CC)': 1242,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 2,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 1098,\n",
+ " 'Location_Northing_OSGR': 238630,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 485440,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 6,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 10,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 1,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Engine_Capacity_(CC)': 1242,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 3,\n",
- " 'Age_Band_of_Driver': 8,\n",
- " 'Age_of_Vehicle': 6,\n",
- " 'Driver_Home_Area_Type': 2,\n",
- " 'Driver_IMD_Decile': 9,\n",
- " 'Engine_Capacity_(CC)': 1997,\n",
+ " 'Age_Band_of_Driver': 4,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 2,\n",
+ " 'Driver_Home_Area_Type': 3,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 11,\n",
+ " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 8,\n",
- " 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1997,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 8,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 3,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 2,\n",
+ " 'Driver_Home_Area_Type': 2,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': 6,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 2,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b77f'),\n",
- " 'loc': {'coordinates': [-0.755753, 52.039456], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 6,\n",
- " '1st_Road_Number': 8206,\n",
+ " 'Junction_Detail': 6,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016730',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.039456,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S099042',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 6,\n",
" '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1098,\n",
- " 'Accident_Index': '201243S056062',\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 4,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.755753,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 30,\n",
+ " 'Date': '27/04/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 4, 27, 16, 50),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.755753, 52.039456]},\n",
+ " 'Weather_Conditions': 2},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b6a7'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 4,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '07/06/2012',\n",
- " 'Datetime': datetime.datetime(2012, 6, 7, 16, 0),\n",
- " 'Day_of_Week': 5,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 2,\n",
- " 'Junction_Detail': 3,\n",
- " 'LSOA_of_Accident_Location': 'E01016730',\n",
- " 'Latitude': 52.039986,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 485500,\n",
- " 'Location_Northing_OSGR': 238690,\n",
- " 'Longitude': -0.754864,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 3,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 30,\n",
+ " '1st_Road_Number': 8206,\n",
" 'Time': '16:00',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 3,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': 10,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 2,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': 1098,\n",
+ " 'Location_Northing_OSGR': 238690,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 485500,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 5,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 2,\n",
+ " 'Vehicle_Leaving_Carriageway': 4,\n",
+ " 'Junction_Location': 1,\n",
+ " 'Skidding_and_Overturning': 0,\n",
+ " 'Towing_and_Articulation': 0,\n",
+ " 'Vehicle_Location-Restricted_Lane': 0,\n",
" 'Engine_Capacity_(CC)': 1598,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 7,\n",
" 'Hit_Object_in_Carriageway': 7,\n",
" 'Hit_Object_off_Carriageway': 10,\n",
+ " '1st_Point_of_Impact': 3,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 1,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
+ " 'Age_of_Vehicle': 10,\n",
+ " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 7,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 4,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 9,\n",
- " 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 4,\n",
- " 'Age_of_Vehicle': 4,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 7,\n",
" 'Engine_Capacity_(CC)': 1242,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 4,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 1,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
- " 'Skidding_and_Overturning': 0,\n",
- " 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
- " 'Vehicle_Location-Restricted_Lane': 0,\n",
+ " 'Age_of_Vehicle': 4,\n",
" 'Vehicle_Manoeuvre': 18,\n",
- " 'Vehicle_Reference': 2,\n",
- " 'Vehicle_Type': 9,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 2,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b6a7'),\n",
- " 'loc': {'coordinates': [-0.754864, 52.039986], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 6,\n",
- " '1st_Road_Number': 8206,\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016730',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.039986,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S056062',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 6,\n",
" '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1098,\n",
- " 'Accident_Index': '201243S111062',\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 6,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.754864,\n",
+ " 'Junction_Control': 2,\n",
+ " 'Speed_limit': 30,\n",
+ " 'Date': '07/06/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 6, 7, 16, 0),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.754864, 52.039986]},\n",
+ " 'Weather_Conditions': 2},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b7bb'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '20/06/2012',\n",
- " 'Datetime': datetime.datetime(2012, 6, 20, 8, 15),\n",
- " 'Day_of_Week': 4,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 2,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 6,\n",
- " 'LSOA_of_Accident_Location': 'E01016730',\n",
- " 'Latitude': 52.038496,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 485250,\n",
- " 'Location_Northing_OSGR': 238520,\n",
- " 'Longitude': -0.75855,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 3,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 30,\n",
+ " '1st_Road_Number': 8206,\n",
" 'Time': '08:15',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': -1,\n",
- " 'Age_of_Vehicle': 5,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 8,\n",
- " 'Engine_Capacity_(CC)': 1598,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': 1098,\n",
+ " 'Location_Northing_OSGR': 238520,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 485250,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 4,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 8,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 8,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Engine_Capacity_(CC)': 1598,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 3,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 5,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 10,\n",
- " 'Engine_Capacity_(CC)': 1390,\n",
+ " 'Age_Band_of_Driver': -1,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 8,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
+ " 'Age_of_Vehicle': 5,\n",
+ " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 10,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 8,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1390,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 6,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 3,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 5,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b7bb'),\n",
- " 'loc': {'coordinates': [-0.75855, 52.038496], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 6,\n",
- " '1st_Road_Number': 1098,\n",
- " '2nd_Road_Class': -1,\n",
- " '2nd_Road_Number': 0,\n",
- " 'Accident_Index': '201243S078072',\n",
+ " 'Junction_Detail': 6,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016730',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.038496,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 2,\n",
+ " 'Accident_Index': '201243S111062',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 6,\n",
+ " '2nd_Road_Class': 6,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 5,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.75855,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 30,\n",
+ " 'Date': '20/06/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 6, 20, 8, 15),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.75855, 52.038496]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b716'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 3,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 0,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 5,\n",
- " 'Pedestrian_Movement': 9,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 5,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1}],\n",
- " 'Date': '18/07/2012',\n",
- " 'Datetime': datetime.datetime(2012, 7, 18, 13, 30),\n",
- " 'Day_of_Week': 4,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': -1,\n",
- " 'Junction_Detail': 0,\n",
- " 'LSOA_of_Accident_Location': 'E01016730',\n",
- " 'Latitude': 52.039468,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 485360,\n",
- " 'Location_Northing_OSGR': 238630,\n",
- " 'Longitude': -0.756919,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 1,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 9,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 30,\n",
+ " '1st_Road_Number': 1098,\n",
" 'Time': '13:30',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': -1,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': -1,\n",
- " 'Driver_IMD_Decile': -1,\n",
- " 'Engine_Capacity_(CC)': -1,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 1,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 0,\n",
+ " 'Location_Northing_OSGR': 238630,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 1,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 485360,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 4,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': -1,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': -1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 1,\n",
+ " 'Engine_Capacity_(CC)': -1,\n",
" 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': -1,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 1,\n",
+ " 'Driver_Home_Area_Type': -1,\n",
+ " 'Propulsion_Code': -1,\n",
+ " 'Age_of_Vehicle': -1,\n",
+ " 'Vehicle_Manoeuvre': 1,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b716'),\n",
- " 'loc': {'coordinates': [-0.756919, 52.039468], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 6,\n",
- " '1st_Road_Number': 1098,\n",
- " '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1098,\n",
- " 'Accident_Index': '201243S054082',\n",
+ " 'Junction_Detail': 0,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016730',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.039468,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S078072',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 6,\n",
+ " '2nd_Road_Class': -1,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 6,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.756919,\n",
+ " 'Junction_Control': -1,\n",
+ " 'Speed_limit': 30,\n",
+ " 'Date': '18/07/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 7, 18, 13, 30),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.756919, 52.039468]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b69c'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1}],\n",
- " 'Date': '17/08/2012',\n",
- " 'Datetime': datetime.datetime(2012, 8, 17, 17, 0),\n",
- " 'Day_of_Week': 6,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 6,\n",
- " 'LSOA_of_Accident_Location': 'E01016730',\n",
- " 'Latitude': 52.039366,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 485440,\n",
- " 'Location_Northing_OSGR': 238620,\n",
- " 'Longitude': -0.755756,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 30,\n",
+ " '1st_Road_Number': 1098,\n",
" 'Time': '17:00',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 4,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 5,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 5,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 1098,\n",
+ " 'Location_Northing_OSGR': 238620,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 485440,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 6,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 5,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 8,\n",
+ " 'Skidding_and_Overturning': 0,\n",
+ " 'Towing_and_Articulation': 0,\n",
+ " 'Vehicle_Location-Restricted_Lane': 0,\n",
" 'Engine_Capacity_(CC)': 1596,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 6,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 4,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 8,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
+ " 'Age_of_Vehicle': 5,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 2,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
- " 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 8,\n",
- " 'Age_of_Vehicle': 2,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 2,\n",
" 'Engine_Capacity_(CC)': 1248,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 8,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 19,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 1,\n",
- " 'Junction_Location': 1,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 1,\n",
- " 'Skidding_and_Overturning': 0,\n",
- " 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
- " 'Vehicle_Location-Restricted_Lane': 0,\n",
+ " 'Age_of_Vehicle': 2,\n",
" 'Vehicle_Manoeuvre': 18,\n",
- " 'Vehicle_Reference': 2,\n",
- " 'Vehicle_Type': 19,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b69c'),\n",
- " 'loc': {'coordinates': [-0.755756, 52.039366], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 157,\n",
+ " 'Junction_Detail': 6,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016730',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.039366,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S054082',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 6,\n",
" '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 8206,\n",
- " 'Accident_Index': '201243S020092',\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 6,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.755756,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 30,\n",
+ " 'Date': '17/08/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 8, 17, 17, 0),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.755756, 52.039366]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b601'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 1}],\n",
- " 'Date': '05/09/2012',\n",
- " 'Datetime': datetime.datetime(2012, 9, 5, 14, 4),\n",
- " 'Day_of_Week': 4,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 2,\n",
- " 'Junction_Detail': 6,\n",
- " 'LSOA_of_Accident_Location': 'E01016730',\n",
- " 'Latitude': 52.038845,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 485320,\n",
- " 'Location_Northing_OSGR': 238560,\n",
- " 'Longitude': -0.75752,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 3,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 30,\n",
+ " '1st_Road_Number': 157,\n",
" 'Time': '14:04',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 7,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 1,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': 8206,\n",
+ " 'Location_Northing_OSGR': 238560,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 485320,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 4,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 1,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 8,\n",
+ " 'Skidding_and_Overturning': 0,\n",
+ " 'Towing_and_Articulation': 0,\n",
+ " 'Vehicle_Location-Restricted_Lane': 0,\n",
" 'Engine_Capacity_(CC)': 3498,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 6,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 8,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
+ " 'Age_of_Vehicle': 7,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 7,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 8,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
- " 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 8,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 7,\n",
" 'Engine_Capacity_(CC)': -1,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 8,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 1,\n",
- " 'Junction_Location': 8,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': -1,\n",
- " 'Sex_of_Driver': 1,\n",
- " 'Skidding_and_Overturning': 0,\n",
- " 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
- " 'Vehicle_Location-Restricted_Lane': 0,\n",
+ " 'Age_of_Vehicle': -1,\n",
" 'Vehicle_Manoeuvre': 9,\n",
- " 'Vehicle_Reference': 2,\n",
- " 'Vehicle_Type': 9,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b601'),\n",
- " 'loc': {'coordinates': [-0.75752, 52.038845], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 157,\n",
+ " 'Junction_Detail': 6,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016730',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.038845,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S020092',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
" '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 8206,\n",
- " 'Accident_Index': '201243S006112',\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 7,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.75752,\n",
+ " 'Junction_Control': 2,\n",
+ " 'Speed_limit': 30,\n",
+ " 'Date': '05/09/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 9, 5, 14, 4),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.75752, 52.038845]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b5cd'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 7,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 5,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 5,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2},\n",
- " {'Age_Band_of_Casualty': 5,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 1,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': -1,\n",
- " 'Casualty_Reference': 3,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 3,\n",
+ " 'Casualty_Home_Area_Type': -1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 1,\n",
+ " 'Age_Band_of_Casualty': 5,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2},\n",
- " {'Age_Band_of_Casualty': 5,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 2,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 4,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 4,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 2,\n",
+ " 'Age_Band_of_Casualty': 5,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2},\n",
- " {'Age_Band_of_Casualty': 5,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 2,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 5,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 5,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 2,\n",
+ " 'Age_Band_of_Casualty': 5,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '02/11/2012',\n",
- " 'Datetime': datetime.datetime(2012, 11, 2, 18, 5),\n",
- " 'Day_of_Week': 6,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 2,\n",
- " 'Junction_Detail': 6,\n",
- " 'LSOA_of_Accident_Location': 'E01016730',\n",
- " 'Latitude': 52.038847,\n",
- " 'Light_Conditions': 4,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 485310,\n",
- " 'Location_Northing_OSGR': 238560,\n",
- " 'Longitude': -0.757665,\n",
- " 'Number_of_Casualties': 5,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 3,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 30,\n",
+ " '1st_Road_Number': 157,\n",
" 'Time': '18:05',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 5,\n",
- " 'Engine_Capacity_(CC)': -1,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': 8206,\n",
+ " 'Location_Northing_OSGR': 238560,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 485310,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 6,\n",
+ " 'Light_Conditions': 4,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 5,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 8,\n",
- " 'Propulsion_Code': -1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': -1,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 3,\n",
- " 'Age_Band_of_Driver': 5,\n",
- " 'Age_of_Vehicle': 11,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 2,\n",
- " 'Engine_Capacity_(CC)': 1998,\n",
+ " 'Age_Band_of_Driver': 7,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': -1,\n",
+ " 'Age_of_Vehicle': -1,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 2,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 8,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Engine_Capacity_(CC)': 1998,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 5,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 3,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 11,\n",
+ " 'Vehicle_Manoeuvre': 9,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b5cd'),\n",
- " 'loc': {'coordinates': [-0.757665, 52.038847], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 6,\n",
- " '1st_Road_Number': 8206,\n",
+ " 'Junction_Detail': 6,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016730',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.038847,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S006112',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
" '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1098,\n",
- " 'Accident_Index': '201243S077112',\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 6,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.757665,\n",
+ " 'Junction_Control': 2,\n",
+ " 'Speed_limit': 30,\n",
+ " 'Date': '02/11/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 11, 2, 18, 5),\n",
+ " 'Number_of_Casualties': 5,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.757665, 52.038847]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b712'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '19/11/2012',\n",
- " 'Datetime': datetime.datetime(2012, 11, 19, 9, 0),\n",
- " 'Day_of_Week': 2,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 2,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 6,\n",
- " 'LSOA_of_Accident_Location': 'E01016730',\n",
- " 'Latitude': 52.039639,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 485420,\n",
- " 'Location_Northing_OSGR': 238650,\n",
- " 'Longitude': -0.75604,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 3,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 30,\n",
+ " '1st_Road_Number': 8206,\n",
" 'Time': '09:00',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 4,\n",
- " 'Age_Band_of_Driver': -1,\n",
- " 'Age_of_Vehicle': 9,\n",
- " 'Driver_Home_Area_Type': 2,\n",
- " 'Driver_IMD_Decile': 9,\n",
- " 'Engine_Capacity_(CC)': 1397,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': 1098,\n",
+ " 'Location_Northing_OSGR': 238650,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 485420,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 2,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 8,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 5,\n",
+ " 'Engine_Capacity_(CC)': 1397,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 1,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 2,\n",
- " 'Engine_Capacity_(CC)': 1686,\n",
+ " 'Age_Band_of_Driver': -1,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 4,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 2,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 9,\n",
+ " 'Vehicle_Manoeuvre': 5,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 2,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 8,\n",
- " 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1686,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 6,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': 1,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b712'),\n",
- " 'loc': {'coordinates': [-0.75604, 52.039639], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 6,\n",
- " '1st_Road_Number': 8206,\n",
+ " 'Junction_Detail': 6,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016730',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.039639,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 2,\n",
+ " 'Accident_Index': '201243S077112',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 6,\n",
" '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1098,\n",
- " 'Accident_Index': '201243S116112',\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 8,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 2,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.75604,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 30,\n",
+ " 'Date': '19/11/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 11, 19, 9, 0),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.75604, 52.039639]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b7d9'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 2,\n",
+ " 'Age_Band_of_Casualty': 8,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '26/11/2012',\n",
- " 'Datetime': datetime.datetime(2012, 11, 26, 9, 0),\n",
- " 'Day_of_Week': 2,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 6,\n",
- " 'LSOA_of_Accident_Location': 'E01016730',\n",
- " 'Latitude': 52.03971,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 485427,\n",
- " 'Location_Northing_OSGR': 238658,\n",
- " 'Longitude': -0.755936,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 3,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 30,\n",
+ " '1st_Road_Number': 8206,\n",
" 'Time': '09:00',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 10,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 7,\n",
- " 'Engine_Capacity_(CC)': 998,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 1,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': 1098,\n",
+ " 'Location_Northing_OSGR': 238658,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 485427,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 2,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 7,\n",
+ " 'Vehicle_Leaving_Carriageway': 4,\n",
" 'Junction_Location': 1,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 4,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Engine_Capacity_(CC)': 998,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 4,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 4,\n",
- " 'Engine_Capacity_(CC)': -1,\n",
+ " 'Age_Band_of_Driver': 6,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 1,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 10,\n",
+ " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 4,\n",
+ " 'Vehicle_Leaving_Carriageway': 4,\n",
" 'Junction_Location': 1,\n",
- " 'Propulsion_Code': -1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 4,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': -1,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 7,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 4,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 1,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': -1,\n",
+ " 'Age_of_Vehicle': -1,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 2,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b7d9'),\n",
- " 'loc': {'coordinates': [-0.755936, 52.03971], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 146,\n",
+ " 'Junction_Detail': 6,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016730',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.03971,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S116112',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 6,\n",
" '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 9097,\n",
- " 'Accident_Index': '201243S115012',\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 7,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.755936,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 30,\n",
+ " 'Date': '26/11/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 11, 26, 9, 0),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.755936, 52.03971]},\n",
+ " 'Weather_Conditions': 2},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b7cf'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 3,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 3,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 7,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 1}],\n",
- " 'Date': '15/01/2012',\n",
- " 'Datetime': datetime.datetime(2012, 1, 15, 17, 56),\n",
- " 'Day_of_Week': 1,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 1,\n",
- " 'LSOA_of_Accident_Location': 'E01016729',\n",
- " 'Latitude': 52.038856,\n",
- " 'Light_Conditions': 4,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 485830,\n",
- " 'Location_Northing_OSGR': 238570,\n",
- " 'Longitude': -0.750084,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 1,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
- " 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 1,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 70,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
+ " 'Road_Surface_Conditions': 2,\n",
+ " '1st_Road_Number': 146,\n",
" 'Time': '17:56',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 0,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': 6,\n",
- " 'Driver_Home_Area_Type': 3,\n",
- " 'Driver_IMD_Decile': 10,\n",
- " 'Engine_Capacity_(CC)': 1229,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 1,\n",
+ " '2nd_Road_Number': 9097,\n",
+ " 'Location_Northing_OSGR': 238570,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 1,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 485830,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 1,\n",
+ " 'Light_Conditions': 4,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 10,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 3,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 2,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1229,\n",
" 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 7,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 0,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 3,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 6,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b7cf'),\n",
- " 'loc': {'coordinates': [-0.750084, 52.038856], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 6,\n",
- " '1st_Road_Number': 1069,\n",
+ " 'Junction_Detail': 1,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016729',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.038856,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S115012',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
" '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1069,\n",
- " 'Accident_Index': '201243S092042',\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 7,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.750084,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 70,\n",
+ " 'Date': '15/01/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 1, 15, 17, 56),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.750084, 52.038856]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b757'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 8,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 7,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2},\n",
- " {'Age_Band_of_Casualty': 6,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 1,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 8,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 1,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '28/04/2012',\n",
- " 'Datetime': datetime.datetime(2012, 4, 28, 22, 54),\n",
- " 'Day_of_Week': 7,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 1,\n",
- " 'LSOA_of_Accident_Location': 'E01016729',\n",
- " 'Latitude': 52.03812,\n",
- " 'Light_Conditions': 4,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 485940,\n",
- " 'Location_Northing_OSGR': 238490,\n",
- " 'Longitude': -0.7485,\n",
- " 'Number_of_Casualties': 2,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 30,\n",
+ " '1st_Road_Number': 1069,\n",
" 'Time': '22:54',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 12,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 4,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 1069,\n",
+ " 'Location_Northing_OSGR': 238490,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 485940,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 7,\n",
+ " 'Light_Conditions': 4,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 4,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 4,\n",
+ " 'Skidding_and_Overturning': 0,\n",
+ " 'Towing_and_Articulation': 0,\n",
+ " 'Vehicle_Location-Restricted_Lane': 0,\n",
" 'Engine_Capacity_(CC)': 1199,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 6,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 2,\n",
- " 'Junction_Location': 4,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
+ " 'Age_of_Vehicle': 12,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 2,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 8,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
- " 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 4,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': 7,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 2,\n",
" 'Engine_Capacity_(CC)': 1995,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 7,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 4,\n",
+ " 'Vehicle_Type': 8,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 8,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 1,\n",
- " 'Skidding_and_Overturning': 0,\n",
- " 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
- " 'Vehicle_Location-Restricted_Lane': 0,\n",
+ " 'Age_of_Vehicle': 7,\n",
" 'Vehicle_Manoeuvre': 18,\n",
- " 'Vehicle_Reference': 2,\n",
- " 'Vehicle_Type': 8,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 5,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b757'),\n",
- " 'loc': {'coordinates': [-0.7485, 52.03812], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 146,\n",
+ " 'Junction_Detail': 1,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016729',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.03812,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S092042',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 6,\n",
" '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 9097,\n",
- " 'Accident_Index': '201243S021092',\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 8,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.7485,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 30,\n",
+ " 'Date': '28/04/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 4, 28, 22, 54),\n",
+ " 'Number_of_Casualties': 2,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.7485, 52.03812]},\n",
+ " 'Weather_Conditions': 5},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b606'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 8,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 7,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 7,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '04/09/2012',\n",
- " 'Datetime': datetime.datetime(2012, 9, 4, 22, 5),\n",
- " 'Day_of_Week': 3,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 1,\n",
- " 'LSOA_of_Accident_Location': 'E01016729',\n",
- " 'Latitude': 52.039036,\n",
- " 'Light_Conditions': 4,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 485830,\n",
- " 'Location_Northing_OSGR': 238590,\n",
- " 'Longitude': -0.750079,\n",
- " 'Number_of_Casualties': 2,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 3,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 70,\n",
+ " '1st_Road_Number': 146,\n",
" 'Time': '22:05',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 8,\n",
- " 'Age_of_Vehicle': 15,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 2,\n",
- " 'Engine_Capacity_(CC)': 1998,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 2,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': 9097,\n",
+ " 'Location_Northing_OSGR': 238590,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 485830,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 3,\n",
+ " 'Light_Conditions': 4,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 2,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 8,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 7,\n",
+ " 'Engine_Capacity_(CC)': 1998,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': 11,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 7,\n",
- " 'Engine_Capacity_(CC)': 1896,\n",
+ " 'Age_Band_of_Driver': 8,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 2,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 15,\n",
+ " 'Vehicle_Manoeuvre': 7,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 7,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 8,\n",
- " 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Engine_Capacity_(CC)': 1896,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 7,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 2,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': 11,\n",
+ " 'Vehicle_Manoeuvre': 9,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b606'),\n",
- " 'loc': {'coordinates': [-0.750079, 52.039036], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 6,\n",
- " '1st_Road_Number': 1069,\n",
+ " 'Junction_Detail': 1,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016729',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.039036,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S021092',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
" '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1069,\n",
- " 'Accident_Index': '201243S105072',\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 8,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.750079,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 70,\n",
+ " 'Date': '04/09/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 9, 4, 22, 5),\n",
+ " 'Number_of_Casualties': 2,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.750079, 52.039036]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b79c'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 1,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 8,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '23/07/2012',\n",
- " 'Datetime': datetime.datetime(2012, 7, 23, 18, 0),\n",
- " 'Day_of_Week': 2,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 1,\n",
- " 'LSOA_of_Accident_Location': 'E01016729',\n",
- " 'Latitude': 52.038615,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 486230,\n",
- " 'Location_Northing_OSGR': 238550,\n",
- " 'Longitude': -0.744258,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 1,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 30,\n",
+ " '1st_Road_Number': 1069,\n",
" 'Time': '18:00',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 3,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': 9,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 8,\n",
- " 'Engine_Capacity_(CC)': 1343,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 1,\n",
+ " '2nd_Road_Number': 1069,\n",
+ " 'Location_Northing_OSGR': 238550,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 486230,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 2,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 8,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 8,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1343,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 8,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 5,\n",
- " 'Engine_Capacity_(CC)': -1,\n",
+ " 'Age_Band_of_Driver': 7,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 3,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 9,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 5,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 8,\n",
- " 'Propulsion_Code': -1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': -1,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 8,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
" 'Vehicle_Type': 1,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': -1,\n",
+ " 'Age_of_Vehicle': -1,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b79c'),\n",
- " 'loc': {'coordinates': [-0.744258, 52.038615], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 6,\n",
- " '1st_Road_Number': 1069,\n",
+ " 'Junction_Detail': 1,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016729',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.038615,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S105072',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 6,\n",
" '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1069,\n",
- " 'Accident_Index': '201243S086092',\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 3,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.744258,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 30,\n",
+ " 'Date': '23/07/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 7, 23, 18, 0),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.744258, 52.038615]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b73a'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 1,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 3,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '21/09/2012',\n",
- " 'Datetime': datetime.datetime(2012, 9, 21, 17, 10),\n",
- " 'Day_of_Week': 6,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 2,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 1,\n",
- " 'LSOA_of_Accident_Location': 'E01016729',\n",
- " 'Latitude': 52.039438,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 486140,\n",
- " 'Location_Northing_OSGR': 238640,\n",
- " 'Longitude': -0.745548,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 30,\n",
+ " '1st_Road_Number': 1069,\n",
" 'Time': '17:10',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 4,\n",
- " 'Age_of_Vehicle': 11,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 4,\n",
- " 'Engine_Capacity_(CC)': 1389,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 1069,\n",
+ " 'Location_Northing_OSGR': 238640,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 486140,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 6,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 4,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 3,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1389,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': 3,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 2,\n",
- " 'Engine_Capacity_(CC)': -1,\n",
+ " 'Age_Band_of_Driver': 4,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 11,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 2,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 4,\n",
- " 'Propulsion_Code': -1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': -1,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 3,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
" 'Vehicle_Type': 1,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': -1,\n",
+ " 'Age_of_Vehicle': -1,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b73a'),\n",
- " 'loc': {'coordinates': [-0.745548, 52.039438], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 6,\n",
- " '1st_Road_Number': 1069,\n",
- " '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1069,\n",
- " 'Accident_Index': '201243S105092',\n",
- " 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 6,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
- " 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
- " 'Casualty_Type': 9,\n",
- " 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
- " 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 1}],\n",
- " 'Date': '25/09/2012',\n",
- " 'Datetime': datetime.datetime(2012, 9, 25, 19, 31),\n",
- " 'Day_of_Week': 3,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 1,\n",
- " 'LSOA_of_Accident_Location': 'E01016726',\n",
- " 'Latitude': 52.035559,\n",
- " 'Light_Conditions': 4,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 486230,\n",
- " 'Location_Northing_OSGR': 238210,\n",
- " 'Longitude': -0.744344,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
+ " 'Junction_Detail': 1,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016729',\n",
" 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.039438,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 2,\n",
+ " 'Accident_Index': '201243S086092',\n",
" 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
- " 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 1,\n",
+ " '1st_Road_Class': 6,\n",
+ " '2nd_Road_Class': 6,\n",
+ " 'Accident_Severity': 3,\n",
" 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.745548,\n",
+ " 'Junction_Control': 4,\n",
" 'Speed_limit': 30,\n",
+ " 'Date': '21/09/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 9, 21, 17, 10),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.745548, 52.039438]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b79e'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
+ " 'Casualty_Class': 1,\n",
+ " 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
+ " 'Pedestrian_Location': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
+ " 'Pedestrian_Road_Maintenance_Worker': 0,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
+ " 'Road_Surface_Conditions': 2,\n",
+ " '1st_Road_Number': 1069,\n",
" 'Time': '19:31',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 4,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 13,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 2,\n",
+ " 'Road_Type': 1,\n",
+ " '2nd_Road_Number': 1069,\n",
+ " 'Location_Northing_OSGR': 238210,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 486230,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 3,\n",
+ " 'Light_Conditions': 4,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 2,\n",
+ " 'Vehicle_Leaving_Carriageway': 7,\n",
+ " 'Junction_Location': 8,\n",
+ " 'Skidding_and_Overturning': 0,\n",
+ " 'Towing_and_Articulation': 0,\n",
+ " 'Vehicle_Location-Restricted_Lane': 0,\n",
" 'Engine_Capacity_(CC)': 1600,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 6,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 4,\n",
+ " '1st_Point_of_Impact': 4,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 8,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
+ " 'Age_of_Vehicle': 13,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': -1,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 4,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 7,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
- " 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': -1,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': -1,\n",
- " 'Driver_IMD_Decile': -1,\n",
" 'Engine_Capacity_(CC)': -1,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': -1,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 3,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 4,\n",
+ " 'Driver_Home_Area_Type': -1,\n",
" 'Propulsion_Code': -1,\n",
- " 'Sex_of_Driver': 3,\n",
- " 'Skidding_and_Overturning': 0,\n",
- " 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
- " 'Vehicle_Location-Restricted_Lane': 0,\n",
+ " 'Age_of_Vehicle': -1,\n",
" 'Vehicle_Manoeuvre': 18,\n",
- " 'Vehicle_Reference': 2,\n",
- " 'Vehicle_Type': 9,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 2,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b79e'),\n",
- " 'loc': {'coordinates': [-0.744344, 52.035559], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 6,\n",
- " '1st_Road_Number': 1069,\n",
+ " 'Junction_Detail': 1,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016726',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.035559,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S105092',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 6,\n",
" '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1069,\n",
- " 'Accident_Index': '201243S014122',\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 8,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.744344,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 30,\n",
+ " 'Date': '25/09/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 9, 25, 19, 31),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.744344, 52.035559]},\n",
+ " 'Weather_Conditions': 2},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b5ec'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 8,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 5,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 5,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '03/12/2012',\n",
- " 'Datetime': datetime.datetime(2012, 12, 3, 13, 40),\n",
- " 'Day_of_Week': 2,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 2,\n",
- " 'LSOA_of_Accident_Location': 'E01016726',\n",
- " 'Latitude': 52.037059,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 486235,\n",
- " 'Location_Northing_OSGR': 238377,\n",
- " 'Longitude': -0.744229,\n",
- " 'Number_of_Casualties': 2,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 1,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 30,\n",
+ " '1st_Road_Number': 1069,\n",
" 'Time': '13:40',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 3,\n",
- " 'Age_Band_of_Driver': 8,\n",
- " 'Age_of_Vehicle': 11,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 1,\n",
- " 'Engine_Capacity_(CC)': 2477,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 1,\n",
+ " '2nd_Road_Number': 1069,\n",
+ " 'Location_Northing_OSGR': 238377,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 486235,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 2,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 1,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 4,\n",
- " 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 8,\n",
+ " 'Engine_Capacity_(CC)': 2477,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 5,\n",
- " 'Age_of_Vehicle': 12,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 1,\n",
- " 'Engine_Capacity_(CC)': 1753,\n",
+ " 'Age_Band_of_Driver': 8,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 3,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 8,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 1,\n",
+ " 'Age_of_Vehicle': 11,\n",
+ " 'Vehicle_Manoeuvre': 8,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 1,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 8,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1753,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 5,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': 12,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b5ec'),\n",
- " 'loc': {'coordinates': [-0.744229, 52.037059], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 4,\n",
- " '1st_Road_Number': 4034,\n",
- " '2nd_Road_Class': 5,\n",
- " '2nd_Road_Number': 147,\n",
- " 'Accident_Index': '201243S014012',\n",
+ " 'Junction_Detail': 2,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016726',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.037059,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S014122',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 6,\n",
+ " '2nd_Road_Class': 6,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 9,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.744229,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 30,\n",
+ " 'Date': '03/12/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 12, 3, 13, 40),\n",
+ " 'Number_of_Casualties': 2,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.744229, 52.037059]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b5e6'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 19,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 9,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '05/01/2012',\n",
- " 'Datetime': datetime.datetime(2012, 1, 5, 13, 20),\n",
- " 'Day_of_Week': 5,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 2,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 1,\n",
- " 'LSOA_of_Accident_Location': 'E01016846',\n",
- " 'Latitude': 52.035648,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 486810,\n",
- " 'Location_Northing_OSGR': 238230,\n",
- " 'Longitude': -0.735886,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 1,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 70,\n",
+ " '1st_Road_Number': 4034,\n",
" 'Time': '13:20',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': -1,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': 2,\n",
- " 'Driver_IMD_Decile': 10,\n",
+ " 'Road_Type': 1,\n",
+ " '2nd_Road_Number': 147,\n",
+ " 'Location_Northing_OSGR': 238230,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 486810,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 5,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 10,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 1,\n",
+ " 'Skidding_and_Overturning': 0,\n",
+ " 'Towing_and_Articulation': 0,\n",
+ " 'Vehicle_Location-Restricted_Lane': 0,\n",
" 'Engine_Capacity_(CC)': -1,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': -1,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 1,\n",
+ " 'Driver_Home_Area_Type': 2,\n",
" 'Propulsion_Code': -1,\n",
- " 'Sex_of_Driver': 2,\n",
+ " 'Age_of_Vehicle': -1,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 8,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
- " 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': 9,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 8,\n",
" 'Engine_Capacity_(CC)': -1,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 9,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
+ " 'Vehicle_Type': 19,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 1,\n",
- " 'Junction_Location': 1,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': -1,\n",
- " 'Sex_of_Driver': 1,\n",
- " 'Skidding_and_Overturning': 0,\n",
- " 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
- " 'Vehicle_Location-Restricted_Lane': 0,\n",
+ " 'Age_of_Vehicle': -1,\n",
" 'Vehicle_Manoeuvre': 3,\n",
- " 'Vehicle_Reference': 2,\n",
- " 'Vehicle_Type': 19,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 5,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b5e6'),\n",
- " 'loc': {'coordinates': [-0.735886, 52.035648], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 4,\n",
- " '1st_Road_Number': 4034,\n",
+ " 'Junction_Detail': 1,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016846',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.035648,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 2,\n",
+ " 'Accident_Index': '201243S014012',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 4,\n",
" '2nd_Road_Class': 5,\n",
- " '2nd_Road_Number': 147,\n",
- " 'Accident_Index': '201243S046032',\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 5,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.735886,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 70,\n",
+ " 'Date': '05/01/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 1, 5, 13, 20),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.735886, 52.035648]},\n",
+ " 'Weather_Conditions': 5},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b678'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 5,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '08/03/2012',\n",
- " 'Datetime': datetime.datetime(2012, 3, 8, 17, 50),\n",
- " 'Day_of_Week': 5,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 2,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 1,\n",
- " 'LSOA_of_Accident_Location': 'E01016846',\n",
- " 'Latitude': 52.03556,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 486800,\n",
- " 'Location_Northing_OSGR': 238220,\n",
- " 'Longitude': -0.736034,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 1,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 70,\n",
+ " '1st_Road_Number': 4034,\n",
" 'Time': '17:50',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': -1,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': -1,\n",
- " 'Driver_IMD_Decile': -1,\n",
- " 'Engine_Capacity_(CC)': -1,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 1,\n",
+ " '2nd_Road_Number': 147,\n",
+ " 'Location_Northing_OSGR': 238220,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 486800,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 5,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': -1,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 1,\n",
- " 'Propulsion_Code': -1,\n",
- " 'Sex_of_Driver': 3,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': -1,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': 5,\n",
- " 'Age_of_Vehicle': 16,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 7,\n",
- " 'Engine_Capacity_(CC)': 1242,\n",
+ " 'Age_Band_of_Driver': -1,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 3,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': -1,\n",
+ " 'Propulsion_Code': -1,\n",
+ " 'Age_of_Vehicle': -1,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 7,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 1,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 3,\n",
+ " 'Engine_Capacity_(CC)': 1242,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 5,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 16,\n",
+ " 'Vehicle_Manoeuvre': 3,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b678'),\n",
- " 'loc': {'coordinates': [-0.736034, 52.03556], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 6,\n",
- " '1st_Road_Number': 1069,\n",
- " '2nd_Road_Class': -1,\n",
- " '2nd_Road_Number': 0,\n",
- " 'Accident_Index': '201243S086112',\n",
+ " 'Junction_Detail': 1,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016846',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.03556,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 2,\n",
+ " 'Accident_Index': '201243S046032',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 4,\n",
+ " '2nd_Road_Class': 5,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 3,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.736034,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 70,\n",
+ " 'Date': '08/03/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 3, 8, 17, 50),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.736034, 52.03556]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b73b'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 3,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 0,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 1,\n",
- " 'Pedestrian_Movement': 1,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 3,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1}],\n",
- " 'Date': '21/11/2012',\n",
- " 'Datetime': datetime.datetime(2012, 11, 21, 8, 30),\n",
- " 'Day_of_Week': 4,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': -1,\n",
- " 'Junction_Detail': 0,\n",
- " 'LSOA_of_Accident_Location': 'E01016733',\n",
- " 'Latitude': 52.039528,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 486712,\n",
- " 'Location_Northing_OSGR': 238660,\n",
- " 'Longitude': -0.737205,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 1,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 8,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 1,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 30,\n",
+ " '1st_Road_Number': 1069,\n",
" 'Time': '08:30',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 3,\n",
- " 'Age_Band_of_Driver': -1,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': -1,\n",
- " 'Driver_IMD_Decile': -1,\n",
- " 'Engine_Capacity_(CC)': -1,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 0,\n",
+ " 'Location_Northing_OSGR': 238660,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 1,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 486712,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 4,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': -1,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': -1,\n",
- " 'Sex_of_Driver': 3,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': -1,\n",
" 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': -1,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 3,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 3,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': -1,\n",
+ " 'Propulsion_Code': -1,\n",
+ " 'Age_of_Vehicle': -1,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b73b'),\n",
- " 'loc': {'coordinates': [-0.737205, 52.039528], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 147,\n",
- " '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1069,\n",
- " 'Accident_Index': '201243S124042',\n",
+ " 'Junction_Detail': 0,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016733',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.039528,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S086112',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 8,\n",
+ " '1st_Road_Class': 6,\n",
+ " '2nd_Road_Class': -1,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 8,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.737205,\n",
+ " 'Junction_Control': -1,\n",
+ " 'Speed_limit': 30,\n",
+ " 'Date': '21/11/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 11, 21, 8, 30),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.737205, 52.039528]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b802'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 8,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 4,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 1,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 3,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 3,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 1,\n",
+ " 'Age_Band_of_Casualty': 4,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 6,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2},\n",
- " {'Age_Band_of_Casualty': 8,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 1,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 4,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 4,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 1,\n",
+ " 'Age_Band_of_Casualty': 8,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '30/04/2012',\n",
- " 'Datetime': datetime.datetime(2012, 4, 30, 17, 32),\n",
- " 'Day_of_Week': 2,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 3,\n",
- " 'LSOA_of_Accident_Location': 'E01016846',\n",
- " 'Latitude': 52.033365,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 486460,\n",
- " 'Location_Northing_OSGR': 237970,\n",
- " 'Longitude': -0.741053,\n",
- " 'Number_of_Casualties': 4,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 60,\n",
+ " '1st_Road_Number': 147,\n",
" 'Time': '17:32',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 8,\n",
- " 'Age_of_Vehicle': 9,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 4,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 1069,\n",
+ " 'Location_Northing_OSGR': 237970,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 486460,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 2,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 4,\n",
+ " 'Vehicle_Leaving_Carriageway': 7,\n",
+ " 'Junction_Location': 8,\n",
+ " 'Skidding_and_Overturning': 0,\n",
+ " 'Towing_and_Articulation': 0,\n",
+ " 'Vehicle_Location-Restricted_Lane': 0,\n",
" 'Engine_Capacity_(CC)': 1396,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 8,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 2,\n",
- " 'Junction_Location': 8,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
+ " 'Age_of_Vehicle': 9,\n",
+ " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 7,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 9,\n",
- " 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 3,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 2,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 9,\n",
" 'Engine_Capacity_(CC)': 1591,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 6,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 3,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 1,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
- " 'Skidding_and_Overturning': 0,\n",
- " 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
- " 'Vehicle_Location-Restricted_Lane': 0,\n",
+ " 'Age_of_Vehicle': 2,\n",
" 'Vehicle_Manoeuvre': 18,\n",
- " 'Vehicle_Reference': 2,\n",
- " 'Vehicle_Type': 9,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b802'),\n",
- " 'loc': {'coordinates': [-0.741053, 52.033365], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 147,\n",
- " '2nd_Road_Class': 5,\n",
- " '2nd_Road_Number': 157,\n",
- " 'Accident_Index': '201243S122102',\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016846',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.033365,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S124042',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
+ " '2nd_Road_Class': 6,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 7,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 2,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.741053,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 60,\n",
+ " 'Date': '30/04/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 4, 30, 17, 32),\n",
+ " 'Number_of_Casualties': 4,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.741053, 52.033365]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b7f6'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 8,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 2,\n",
+ " 'Age_Band_of_Casualty': 7,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1}],\n",
- " 'Date': '05/10/2012',\n",
- " 'Datetime': datetime.datetime(2012, 10, 5, 7, 50),\n",
- " 'Day_of_Week': 6,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 1,\n",
- " 'LSOA_of_Accident_Location': 'E01016848',\n",
- " 'Latitude': 52.030985,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 486160,\n",
- " 'Location_Northing_OSGR': 237700,\n",
- " 'Longitude': -0.745493,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 60,\n",
+ " '1st_Road_Number': 147,\n",
" 'Time': '07:50',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 5,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 2,\n",
- " 'Engine_Capacity_(CC)': 1596,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 1,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 157,\n",
+ " 'Location_Northing_OSGR': 237700,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 486160,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 6,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 2,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 1,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 5,\n",
+ " 'Engine_Capacity_(CC)': 1596,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 8,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': 5,\n",
- " 'Age_of_Vehicle': 9,\n",
- " 'Driver_Home_Area_Type': 3,\n",
- " 'Driver_IMD_Decile': 7,\n",
- " 'Engine_Capacity_(CC)': 1199,\n",
+ " 'Age_Band_of_Driver': 6,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 8,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 1,\n",
- " 'Junction_Location': 1,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
+ " 'Age_of_Vehicle': 5,\n",
+ " 'Vehicle_Manoeuvre': 5,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 7,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 5,\n",
+ " 'Engine_Capacity_(CC)': 1199,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 5,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 1,\n",
+ " 'Driver_Home_Area_Type': 3,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 9,\n",
+ " 'Vehicle_Manoeuvre': 5,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b7f6'),\n",
- " 'loc': {'coordinates': [-0.745493, 52.030985], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 157,\n",
- " '2nd_Road_Class': -1,\n",
- " '2nd_Road_Number': 0,\n",
- " 'Accident_Index': '201243S120022',\n",
+ " 'Junction_Detail': 1,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016848',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.030985,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S122102',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
+ " '2nd_Road_Class': 5,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 4,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.745493,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 60,\n",
+ " 'Date': '05/10/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 10, 5, 7, 50),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.745493, 52.030985]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b7ec'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 3,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 0,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 4,\n",
- " 'Pedestrian_Movement': 1,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 4,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 1}],\n",
- " 'Date': '28/02/2012',\n",
- " 'Datetime': datetime.datetime(2012, 2, 28, 8, 55),\n",
- " 'Day_of_Week': 3,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': -1,\n",
- " 'Junction_Detail': 0,\n",
- " 'LSOA_of_Accident_Location': 'E01016848',\n",
- " 'Latitude': 52.0279,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 486350,\n",
- " 'Location_Northing_OSGR': 237360,\n",
- " 'Longitude': -0.742809,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 1,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 7,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 1,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 40,\n",
+ " '1st_Road_Number': 157,\n",
" 'Time': '08:55',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 6,\n",
- " 'Engine_Capacity_(CC)': 1349,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 2,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 0,\n",
+ " 'Location_Northing_OSGR': 237360,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 1,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 486350,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 3,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 6,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1349,\n",
" 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 6,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 2,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': -1,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b7ec'),\n",
- " 'loc': {'coordinates': [-0.742809, 52.0279], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 157,\n",
- " '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1069,\n",
- " 'Accident_Index': '201243S018032',\n",
+ " 'Junction_Detail': 0,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016848',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.0279,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S120022',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 7,\n",
+ " '1st_Road_Class': 5,\n",
+ " '2nd_Road_Class': -1,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 4,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.742809,\n",
+ " 'Junction_Control': -1,\n",
+ " 'Speed_limit': 40,\n",
+ " 'Date': '28/02/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 2, 28, 8, 55),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.742809, 52.0279]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b5f7'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 4,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 6,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2},\n",
- " {'Age_Band_of_Casualty': 6,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 1,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 3,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 3,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 1,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '05/03/2012',\n",
- " 'Datetime': datetime.datetime(2012, 3, 5, 18, 59),\n",
- " 'Day_of_Week': 2,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 3,\n",
- " 'LSOA_of_Accident_Location': 'E01016848',\n",
- " 'Latitude': 52.026004,\n",
- " 'Light_Conditions': 7,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 486400,\n",
- " 'Location_Northing_OSGR': 237150,\n",
- " 'Longitude': -0.742134,\n",
- " 'Number_of_Casualties': 3,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 40,\n",
+ " '1st_Road_Number': 157,\n",
" 'Time': '18:59',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 4,\n",
- " 'Age_of_Vehicle': 6,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 1,\n",
- " 'Engine_Capacity_(CC)': 1242,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 1069,\n",
+ " 'Location_Northing_OSGR': 237150,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 486400,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 2,\n",
+ " 'Light_Conditions': 7,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 1,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 8,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Engine_Capacity_(CC)': 1242,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 8,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 2,\n",
- " 'Engine_Capacity_(CC)': 1598,\n",
+ " 'Age_Band_of_Driver': 4,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 1,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
+ " 'Age_of_Vehicle': 6,\n",
+ " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 2,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1598,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 6,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 8,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b5f7'),\n",
- " 'loc': {'coordinates': [-0.742134, 52.026004], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 157,\n",
- " '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1069,\n",
- " 'Accident_Index': '201243S006072',\n",
- " 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 6,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
- " 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
- " 'Casualty_Type': 9,\n",
- " 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
- " 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1}],\n",
- " 'Date': '03/07/2012',\n",
- " 'Datetime': datetime.datetime(2012, 7, 3, 16, 33),\n",
- " 'Day_of_Week': 3,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
" 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
" 'LSOA_of_Accident_Location': 'E01016848',\n",
- " 'Latitude': 52.026094,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 486400,\n",
- " 'Location_Northing_OSGR': 237160,\n",
- " 'Longitude': -0.742131,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
" 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.026004,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S018032',\n",
" 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
- " 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 6,\n",
+ " '1st_Road_Class': 5,\n",
+ " '2nd_Road_Class': 6,\n",
+ " 'Accident_Severity': 3,\n",
" 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.742134,\n",
+ " 'Junction_Control': 4,\n",
" 'Speed_limit': 40,\n",
- " 'Time': '16:33',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 5,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 9,\n",
- " 'Engine_Capacity_(CC)': 1968,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Date': '05/03/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 3, 5, 18, 59),\n",
+ " 'Number_of_Casualties': 3,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.742134, 52.026004]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b5cb'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
+ " 'Casualty_Class': 1,\n",
+ " 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
+ " 'Pedestrian_Location': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
+ " 'Pedestrian_Road_Maintenance_Worker': 0,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
+ " 'Road_Surface_Conditions': 2,\n",
+ " '1st_Road_Number': 157,\n",
+ " 'Time': '16:33',\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 1069,\n",
+ " 'Location_Northing_OSGR': 237160,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 486400,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 3,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 1,\n",
- " 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1968,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': 8,\n",
- " 'Age_of_Vehicle': 3,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 2,\n",
- " 'Engine_Capacity_(CC)': 1240,\n",
+ " 'Age_Band_of_Driver': 6,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': 5,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 2,\n",
+ " 'Vehicle_Leaving_Carriageway': 7,\n",
" 'Junction_Location': 1,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 7,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 10,\n",
+ " 'Engine_Capacity_(CC)': 1240,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 8,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 3,\n",
+ " 'Vehicle_Manoeuvre': 10,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b5cb'),\n",
- " 'loc': {'coordinates': [-0.742131, 52.026094], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 157,\n",
- " '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1069,\n",
- " 'Accident_Index': '201243S100082',\n",
- " 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 9,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
- " 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
- " 'Casualty_Type': 9,\n",
- " 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
- " 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '29/08/2012',\n",
- " 'Datetime': datetime.datetime(2012, 8, 29, 18, 54),\n",
- " 'Day_of_Week': 4,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
" 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
" 'LSOA_of_Accident_Location': 'E01016848',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
" 'Latitude': 52.026094,\n",
- " 'Light_Conditions': 1,\n",
" 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 486400,\n",
- " 'Location_Northing_OSGR': 237160,\n",
- " 'Longitude': -0.742131,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S006072',\n",
" 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
- " 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 6,\n",
+ " '1st_Road_Class': 5,\n",
+ " '2nd_Road_Class': 6,\n",
+ " 'Accident_Severity': 3,\n",
" 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.742131,\n",
+ " 'Junction_Control': 4,\n",
" 'Speed_limit': 40,\n",
+ " 'Date': '03/07/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 7, 3, 16, 33),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.742131, 52.026094]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b784'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
+ " 'Casualty_Class': 1,\n",
+ " 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
+ " 'Pedestrian_Location': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 9,\n",
+ " 'Pedestrian_Road_Maintenance_Worker': 0,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
+ " 'Road_Surface_Conditions': 2,\n",
+ " '1st_Road_Number': 157,\n",
" 'Time': '18:54',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': -1,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': -1,\n",
- " 'Driver_IMD_Decile': -1,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 1069,\n",
+ " 'Location_Northing_OSGR': 237160,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 486400,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 4,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': -1,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 6,\n",
+ " 'Skidding_and_Overturning': 0,\n",
+ " 'Towing_and_Articulation': 0,\n",
+ " 'Vehicle_Location-Restricted_Lane': 0,\n",
" 'Engine_Capacity_(CC)': -1,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': -1,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 3,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 6,\n",
+ " 'Driver_Home_Area_Type': -1,\n",
" 'Propulsion_Code': -1,\n",
- " 'Sex_of_Driver': 3,\n",
+ " 'Age_of_Vehicle': -1,\n",
+ " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 10,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 8,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 9,\n",
- " 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 3,\n",
- " 'Age_Band_of_Driver': 9,\n",
- " 'Age_of_Vehicle': 4,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 10,\n",
" 'Engine_Capacity_(CC)': 1796,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 9,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 3,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 2,\n",
- " 'Junction_Location': 8,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
- " 'Skidding_and_Overturning': 0,\n",
- " 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
- " 'Vehicle_Location-Restricted_Lane': 0,\n",
+ " 'Age_of_Vehicle': 4,\n",
" 'Vehicle_Manoeuvre': 18,\n",
- " 'Vehicle_Reference': 2,\n",
- " 'Vehicle_Type': 9,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b784'),\n",
- " 'loc': {'coordinates': [-0.742131, 52.026094], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 6,\n",
- " '1st_Road_Number': 1069,\n",
- " '2nd_Road_Class': -1,\n",
- " '2nd_Road_Number': -1,\n",
- " 'Accident_Index': '201243S086072',\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016848',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.026094,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S100082',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
+ " '2nd_Road_Class': 6,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 1,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.742131,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 40,\n",
+ " 'Date': '29/08/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 8, 29, 18, 54),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.742131, 52.026094]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b738'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 3,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 0,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 5,\n",
- " 'Pedestrian_Movement': 1,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 1,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 1}],\n",
- " 'Date': '19/07/2012',\n",
- " 'Datetime': datetime.datetime(2012, 7, 19, 8, 45),\n",
- " 'Day_of_Week': 5,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 8,\n",
- " 'LSOA_of_Accident_Location': 'E01016844',\n",
- " 'Latitude': 52.019562,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 486210,\n",
- " 'Location_Northing_OSGR': 236430,\n",
- " 'Longitude': -0.745084,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 1,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 1,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 30,\n",
+ " '1st_Road_Number': 1069,\n",
" 'Time': '08:45',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 4,\n",
- " 'Age_Band_of_Driver': 8,\n",
- " 'Age_of_Vehicle': 1,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 10,\n",
- " 'Engine_Capacity_(CC)': 2231,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 1,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': -1,\n",
+ " 'Location_Northing_OSGR': 236430,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 1,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 486210,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 5,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 10,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 6,\n",
- " 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 2231,\n",
" 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 8,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 4,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 1,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': 1,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b738'),\n",
- " 'loc': {'coordinates': [-0.745084, 52.019562], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 3,\n",
- " '1st_Road_Number': 421,\n",
- " '2nd_Road_Class': 5,\n",
- " '2nd_Road_Number': 157,\n",
- " 'Accident_Index': '201243S047032',\n",
+ " 'Junction_Detail': 8,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016844',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.019562,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S086072',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 6,\n",
+ " '2nd_Road_Class': -1,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 8,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.745084,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 30,\n",
+ " 'Date': '19/07/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 7, 19, 8, 45),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.745084, 52.019562]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b67d'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 3,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 4,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 3,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 8,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '10/03/2012',\n",
- " 'Datetime': datetime.datetime(2012, 3, 10, 16, 30),\n",
- " 'Day_of_Week': 7,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 2,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 1,\n",
- " 'LSOA_of_Accident_Location': 'E01016845',\n",
- " 'Latitude': 52.021657,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 486610,\n",
- " 'Location_Northing_OSGR': 236670,\n",
- " 'Longitude': -0.739195,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 1,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 40,\n",
+ " '1st_Road_Number': 421,\n",
" 'Time': '16:30',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': -1,\n",
- " 'Age_of_Vehicle': 8,\n",
- " 'Driver_Home_Area_Type': -1,\n",
- " 'Driver_IMD_Decile': -1,\n",
- " 'Engine_Capacity_(CC)': 1997,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 1,\n",
+ " '2nd_Road_Number': 157,\n",
+ " 'Location_Northing_OSGR': 236670,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 486610,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 7,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': -1,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 1,\n",
- " 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 4,\n",
+ " 'Engine_Capacity_(CC)': 1997,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': 8,\n",
- " 'Age_of_Vehicle': 9,\n",
- " 'Driver_Home_Area_Type': 3,\n",
- " 'Driver_IMD_Decile': 6,\n",
- " 'Engine_Capacity_(CC)': 955,\n",
+ " 'Age_Band_of_Driver': -1,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': -1,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': 8,\n",
+ " 'Vehicle_Manoeuvre': 4,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 6,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 1,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 3,\n",
+ " 'Engine_Capacity_(CC)': 955,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 8,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
" 'Vehicle_Type': 4,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 3,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 9,\n",
+ " 'Vehicle_Manoeuvre': 3,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b67d'),\n",
- " 'loc': {'coordinates': [-0.739195, 52.021657], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 3,\n",
- " '1st_Road_Number': 421,\n",
- " '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1069,\n",
- " 'Accident_Index': '201243S081062',\n",
+ " 'Junction_Detail': 1,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016845',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.021657,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 2,\n",
+ " 'Accident_Index': '201243S047032',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 3,\n",
+ " '2nd_Road_Class': 5,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 7,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.739195,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 40,\n",
+ " 'Date': '10/03/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 3, 10, 16, 30),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.739195, 52.021657]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b723'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 5,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 7,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1}],\n",
- " 'Date': '21/06/2012',\n",
- " 'Datetime': datetime.datetime(2012, 6, 21, 7, 54),\n",
- " 'Day_of_Week': 5,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 1,\n",
- " 'LSOA_of_Accident_Location': 'E01016845',\n",
- " 'Latitude': 52.023603,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 486810,\n",
- " 'Location_Northing_OSGR': 236890,\n",
- " 'Longitude': -0.736225,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 1,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 3,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 70,\n",
+ " '1st_Road_Number': 421,\n",
" 'Time': '07:54',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 4,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': 14,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 4,\n",
- " 'Engine_Capacity_(CC)': 648,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 2,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': 1069,\n",
+ " 'Location_Northing_OSGR': 236890,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 1,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 486810,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 5,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 4,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 3,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 648,\n",
" 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 7,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 4,\n",
" 'Vehicle_Type': 5,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 2,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 14,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 2,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b723'),\n",
- " 'loc': {'coordinates': [-0.736225, 52.023603], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 4,\n",
- " '1st_Road_Number': 4034,\n",
+ " 'Junction_Detail': 1,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016845',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.023603,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S081062',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 3,\n",
" '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1069,\n",
- " 'Accident_Index': '201243S090062',\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 9,\n",
- " 'Bus_or_Coach_Passenger': 4,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.736225,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 70,\n",
+ " 'Date': '21/06/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 6, 21, 7, 54),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.736225, 52.023603]},\n",
+ " 'Weather_Conditions': 2},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b74e'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 11,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 9,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2},\n",
- " {'Age_Band_of_Casualty': 8,\n",
" 'Bus_or_Coach_Passenger': 4,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 11,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 8,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '23/06/2012',\n",
- " 'Datetime': datetime.datetime(2012, 6, 23, 17, 42),\n",
- " 'Day_of_Week': 7,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 3,\n",
- " 'LSOA_of_Accident_Location': 'E01016845',\n",
- " 'Latitude': 52.020372,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 486780,\n",
- " 'Location_Northing_OSGR': 236530,\n",
- " 'Longitude': -0.736754,\n",
- " 'Number_of_Casualties': 2,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 4,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 40,\n",
+ " '1st_Road_Number': 4034,\n",
" 'Time': '17:42',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 0,\n",
- " 'Age_Band_of_Driver': -1,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': -1,\n",
- " 'Driver_IMD_Decile': -1,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 1069,\n",
+ " 'Location_Northing_OSGR': 236530,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 486780,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 7,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': -1,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 6,\n",
+ " 'Skidding_and_Overturning': 0,\n",
+ " 'Towing_and_Articulation': 0,\n",
+ " 'Vehicle_Location-Restricted_Lane': 0,\n",
" 'Engine_Capacity_(CC)': -1,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': -1,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 0,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 3,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 6,\n",
+ " 'Driver_Home_Area_Type': -1,\n",
" 'Propulsion_Code': -1,\n",
- " 'Sex_of_Driver': 3,\n",
+ " 'Age_of_Vehicle': -1,\n",
+ " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 3,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 9,\n",
- " 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 0,\n",
- " 'Age_Band_of_Driver': 4,\n",
- " 'Age_of_Vehicle': 12,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 3,\n",
" 'Engine_Capacity_(CC)': -1,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 4,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 0,\n",
+ " 'Vehicle_Type': 11,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 1,\n",
- " 'Junction_Location': 1,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 1,\n",
- " 'Skidding_and_Overturning': 0,\n",
- " 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
- " 'Vehicle_Location-Restricted_Lane': 0,\n",
+ " 'Age_of_Vehicle': 12,\n",
" 'Vehicle_Manoeuvre': 18,\n",
- " 'Vehicle_Reference': 2,\n",
- " 'Vehicle_Type': 11,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b74e'),\n",
- " 'loc': {'coordinates': [-0.736754, 52.020372], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 3,\n",
- " '1st_Road_Number': 421,\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016845',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.020372,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S090062',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 4,\n",
" '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1069,\n",
- " 'Accident_Index': '201243S093092',\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 8,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.736754,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 40,\n",
+ " 'Date': '23/06/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 6, 23, 17, 42),\n",
+ " 'Number_of_Casualties': 2,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.736754, 52.020372]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b75e'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 3,\n",
- " 'Casualty_Home_Area_Type': -1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 0,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': -1,\n",
" 'Pedestrian_Location': 5,\n",
- " 'Pedestrian_Movement': 3,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 8,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1}],\n",
- " 'Date': '22/09/2012',\n",
- " 'Datetime': datetime.datetime(2012, 9, 22, 6, 45),\n",
- " 'Day_of_Week': 7,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 1,\n",
- " 'LSOA_of_Accident_Location': 'E01016845',\n",
- " 'Latitude': 52.023602,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 486820,\n",
- " 'Location_Northing_OSGR': 236890,\n",
- " 'Longitude': -0.73608,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 1,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 3,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 3,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 70,\n",
+ " '1st_Road_Number': 421,\n",
" 'Time': '06:45',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 4,\n",
- " 'Age_Band_of_Driver': 8,\n",
- " 'Age_of_Vehicle': 9,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 1,\n",
- " 'Engine_Capacity_(CC)': 3175,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 1,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': 1069,\n",
+ " 'Location_Northing_OSGR': 236890,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 1,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 486820,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 7,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 1,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 3,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 3175,\n",
" 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 8,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 4,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 1,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 9,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b75e'),\n",
- " 'loc': {'coordinates': [-0.73608, 52.023602], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 3,\n",
- " '1st_Road_Number': 421,\n",
+ " 'Junction_Detail': 1,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016845',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.023602,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S093092',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 3,\n",
" '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1069,\n",
- " 'Accident_Index': '201243S079112',\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 7,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.73608,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 70,\n",
+ " 'Date': '22/09/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 9, 22, 6, 45),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.73608, 52.023602]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b71a'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 3,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 7,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '19/11/2012',\n",
- " 'Datetime': datetime.datetime(2012, 11, 19, 20, 10),\n",
- " 'Day_of_Week': 2,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 1,\n",
- " 'LSOA_of_Accident_Location': 'E01016848',\n",
- " 'Latitude': 52.024053,\n",
- " 'Light_Conditions': 4,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 486810,\n",
- " 'Location_Northing_OSGR': 236940,\n",
- " 'Longitude': -0.736213,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 1,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 70,\n",
+ " '1st_Road_Number': 421,\n",
" 'Time': '20:10',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 3,\n",
- " 'Age_Band_of_Driver': -1,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': -1,\n",
- " 'Driver_IMD_Decile': -1,\n",
+ " 'Road_Type': 1,\n",
+ " '2nd_Road_Number': 1069,\n",
+ " 'Location_Northing_OSGR': 236940,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 486810,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 2,\n",
+ " 'Light_Conditions': 4,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': -1,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 8,\n",
+ " 'Skidding_and_Overturning': 0,\n",
+ " 'Towing_and_Articulation': 0,\n",
+ " 'Vehicle_Location-Restricted_Lane': 0,\n",
" 'Engine_Capacity_(CC)': -1,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': -1,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 3,\n",
+ " 'Vehicle_Type': 19,\n",
+ " 'Sex_of_Driver': 3,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 8,\n",
+ " 'Driver_Home_Area_Type': -1,\n",
" 'Propulsion_Code': -1,\n",
- " 'Sex_of_Driver': 3,\n",
+ " 'Age_of_Vehicle': -1,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 5,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 8,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
- " 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 19,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 4,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 5,\n",
" 'Engine_Capacity_(CC)': 124,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 7,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 4,\n",
+ " 'Vehicle_Type': 3,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 1,\n",
- " 'Junction_Location': 8,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
- " 'Skidding_and_Overturning': 0,\n",
- " 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
- " 'Vehicle_Location-Restricted_Lane': 0,\n",
+ " 'Age_of_Vehicle': -1,\n",
" 'Vehicle_Manoeuvre': 18,\n",
- " 'Vehicle_Reference': 2,\n",
- " 'Vehicle_Type': 3,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b71a'),\n",
- " 'loc': {'coordinates': [-0.736213, 52.024053], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 3,\n",
- " '1st_Road_Number': 421,\n",
- " '2nd_Road_Class': -1,\n",
- " '2nd_Road_Number': 0,\n",
- " 'Accident_Index': '201243S062122',\n",
+ " 'Junction_Detail': 1,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016848',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.024053,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S079112',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 3,\n",
+ " '2nd_Road_Class': 6,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 6,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.736213,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 70,\n",
+ " 'Date': '19/11/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 11, 19, 20, 10),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.736213, 52.024053]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b6c9'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 6,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 21,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '13/12/2012',\n",
- " 'Datetime': datetime.datetime(2012, 12, 13, 13, 44),\n",
- " 'Day_of_Week': 5,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': -1,\n",
- " 'Junction_Detail': 0,\n",
- " 'LSOA_of_Accident_Location': 'E01016845',\n",
- " 'Latitude': 52.022197,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 486664,\n",
- " 'Location_Northing_OSGR': 236731,\n",
- " 'Longitude': -0.738393,\n",
- " 'Number_of_Casualties': 2,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 3,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 70,\n",
+ " '1st_Road_Number': 421,\n",
" 'Time': '13:44',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 4,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 16,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 10,\n",
- " 'Engine_Capacity_(CC)': 1596,\n",
- " 'Hit_Object_in_Carriageway': 10,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': 0,\n",
+ " 'Location_Northing_OSGR': 236731,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 486664,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 5,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 10,\n",
+ " 'Vehicle_Leaving_Carriageway': 6,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 1,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 6,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1596,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 3,\n",
" 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 4,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 4,\n",
- " 'Engine_Capacity_(CC)': 10308,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_in_Carriageway': 10,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 1,\n",
- " 'Junction_Location': 0,\n",
- " 'Propulsion_Code': 2,\n",
+ " '1st_Point_of_Impact': 4,\n",
+ " 'Vehicle_Type': 9,\n",
" 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 16,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 4,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 0,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 1,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 10308,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 6,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 3,\n",
" 'Vehicle_Type': 21,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 1,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': 4,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b6c9'),\n",
- " 'loc': {'coordinates': [-0.738393, 52.022197], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 3,\n",
- " '1st_Road_Number': 421,\n",
- " '2nd_Road_Class': -1,\n",
- " '2nd_Road_Number': 0,\n",
- " 'Accident_Index': '201243S134092',\n",
- " 'Accident_Severity': 2,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 6,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
- " 'Casualty_Class': 3,\n",
- " 'Casualty_Home_Area_Type': -1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 2,\n",
- " 'Casualty_Type': 0,\n",
- " 'Pedestrian_Location': 5,\n",
- " 'Pedestrian_Movement': 3,\n",
- " 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1}],\n",
- " 'Date': '14/09/2012',\n",
- " 'Datetime': datetime.datetime(2012, 9, 14, 18, 14),\n",
- " 'Day_of_Week': 6,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': -1,\n",
" 'Junction_Detail': 0,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
" 'LSOA_of_Accident_Location': 'E01016845',\n",
- " 'Latitude': 52.024573,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 486930,\n",
- " 'Location_Northing_OSGR': 237000,\n",
- " 'Longitude': -0.734449,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 1,\n",
" 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.022197,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S062122',\n",
" 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
- " 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 3,\n",
+ " '1st_Road_Class': 3,\n",
+ " '2nd_Road_Class': -1,\n",
+ " 'Accident_Severity': 3,\n",
" 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.738393,\n",
+ " 'Junction_Control': -1,\n",
" 'Speed_limit': 70,\n",
+ " 'Date': '13/12/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 12, 13, 13, 44),\n",
+ " 'Number_of_Casualties': 2,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.738393, 52.022197]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b828'),\n",
+ " 'Casualties': [{'Casualty_Severity': 2,\n",
+ " 'Casualty_Class': 3,\n",
+ " 'Casualty_Type': 0,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': -1,\n",
+ " 'Pedestrian_Location': 5,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
+ " 'Pedestrian_Road_Maintenance_Worker': 0,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 3,\n",
+ " 'Sex_of_Casualty': 1}],\n",
+ " 'Road_Surface_Conditions': 1,\n",
+ " '1st_Road_Number': 421,\n",
" 'Time': '18:14',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 12,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 4,\n",
- " 'Engine_Capacity_(CC)': 1796,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 2,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': 0,\n",
+ " 'Location_Northing_OSGR': 237000,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 1,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 486930,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 6,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 4,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 1,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1796,\n",
" 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 6,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 2,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 12,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b828'),\n",
- " 'loc': {'coordinates': [-0.734449, 52.024573], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 3,\n",
- " '1st_Road_Number': 421,\n",
- " '2nd_Road_Class': 5,\n",
- " '2nd_Road_Number': 158,\n",
- " 'Accident_Index': '201243S037012',\n",
- " 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 5,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 1,\n",
+ " 'Junction_Detail': 0,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016845',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.024573,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S134092',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 3,\n",
+ " '2nd_Road_Class': -1,\n",
+ " 'Accident_Severity': 2,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.734449,\n",
+ " 'Junction_Control': -1,\n",
+ " 'Speed_limit': 70,\n",
+ " 'Date': '14/09/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 9, 14, 18, 14),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.734449, 52.024573]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b64f'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
- " 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
- " 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2},\n",
- " {'Age_Band_of_Casualty': 6,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
- " 'Casualty_Class': 1,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
" 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
- " 'Casualty_Type': 9,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 1,\n",
+ " 'Age_Band_of_Casualty': 5,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '12/01/2012',\n",
- " 'Datetime': datetime.datetime(2012, 1, 12, 7, 30),\n",
- " 'Day_of_Week': 5,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 1,\n",
- " 'LSOA_of_Accident_Location': 'E01016784',\n",
- " 'Latitude': 52.025419,\n",
- " 'Light_Conditions': 4,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 487270,\n",
- " 'Location_Northing_OSGR': 237100,\n",
- " 'Longitude': -0.72947,\n",
- " 'Number_of_Casualties': 2,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2},\n",
+ " {'Casualty_Severity': 3,\n",
+ " 'Casualty_Class': 1,\n",
+ " 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
+ " 'Pedestrian_Location': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
+ " 'Pedestrian_Road_Maintenance_Worker': 0,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 1,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 70,\n",
+ " '1st_Road_Number': 421,\n",
" 'Time': '07:30',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 9,\n",
- " 'Age_of_Vehicle': 10,\n",
- " 'Driver_Home_Area_Type': -1,\n",
- " 'Driver_IMD_Decile': -1,\n",
- " 'Engine_Capacity_(CC)': 11000,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 1,\n",
+ " 'Road_Type': 1,\n",
+ " '2nd_Road_Number': 158,\n",
+ " 'Location_Northing_OSGR': 237100,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 487270,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 5,\n",
+ " 'Light_Conditions': 4,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': -1,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 8,\n",
- " 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 1,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Engine_Capacity_(CC)': 11000,\n",
" 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 9,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
" 'Vehicle_Type': 21,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 1,\n",
+ " 'Driver_Home_Area_Type': -1,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': 10,\n",
+ " 'Vehicle_Manoeuvre': 9,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 4,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 1,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 8,\n",
- " 'Engine_Capacity_(CC)': 1686,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 2,\n",
- " 'Journey_Purpose_of_Driver': 2,\n",
+ " {'Driver_IMD_Decile': 8,\n",
+ " 'Vehicle_Leaving_Carriageway': 7,\n",
" 'Junction_Location': 8,\n",
- " 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 7,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1686,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 6,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 2,\n",
+ " '1st_Point_of_Impact': 4,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 2,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': 1,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b64f'),\n",
- " 'loc': {'coordinates': [-0.72947, 52.025419], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 3,\n",
- " '1st_Road_Number': 421,\n",
- " '2nd_Road_Class': 4,\n",
- " '2nd_Road_Number': 4034,\n",
- " 'Accident_Index': '201243S053092',\n",
- " 'Accident_Severity': 2,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 10,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Junction_Detail': 1,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016784',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.025419,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S037012',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 3,\n",
+ " '2nd_Road_Class': 5,\n",
+ " 'Accident_Severity': 3,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.72947,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 70,\n",
+ " 'Date': '12/01/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 1, 12, 7, 30),\n",
+ " 'Number_of_Casualties': 2,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.72947, 52.025419]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b698'),\n",
+ " 'Casualties': [{'Casualty_Severity': 2,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 2,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 10,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 8,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 1,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 3,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 3,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 1,\n",
+ " 'Age_Band_of_Casualty': 8,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 7,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 7,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2},\n",
- " {'Age_Band_of_Casualty': 7,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 1,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 4,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 4,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 1,\n",
+ " 'Age_Band_of_Casualty': 7,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '13/09/2012',\n",
- " 'Datetime': datetime.datetime(2012, 9, 13, 11, 57),\n",
- " 'Day_of_Week': 5,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 1,\n",
- " 'LSOA_of_Accident_Location': 'E01016845',\n",
- " 'Latitude': 52.025441,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 487130,\n",
- " 'Location_Northing_OSGR': 237100,\n",
- " 'Longitude': -0.73151,\n",
- " 'Number_of_Casualties': 4,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 3,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 70,\n",
+ " '1st_Road_Number': 421,\n",
" 'Time': '11:57',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 10,\n",
- " 'Age_of_Vehicle': 7,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 4,\n",
- " 'Engine_Capacity_(CC)': 1560,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': 4034,\n",
+ " 'Location_Northing_OSGR': 237100,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 487130,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 5,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 4,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 8,\n",
- " 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1560,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': 5,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 8,\n",
- " 'Engine_Capacity_(CC)': 1986,\n",
+ " 'Age_Band_of_Driver': 10,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 8,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 2,\n",
+ " 'Age_of_Vehicle': 7,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 8,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 8,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1986,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 7,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': 5,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b698'),\n",
- " 'loc': {'coordinates': [-0.73151, 52.025441], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 158,\n",
- " '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1069,\n",
- " 'Accident_Index': '201243S070012',\n",
- " 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 6,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Junction_Detail': 1,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016845',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.025441,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S053092',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 3,\n",
+ " '2nd_Road_Class': 4,\n",
+ " 'Accident_Severity': 2,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.73151,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 70,\n",
+ " 'Date': '13/09/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 9, 13, 11, 57),\n",
+ " 'Number_of_Casualties': 4,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.73151, 52.025441]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b6e9'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 6,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '20/01/2012',\n",
- " 'Datetime': datetime.datetime(2012, 1, 20, 11, 21),\n",
- " 'Day_of_Week': 6,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 3,\n",
- " 'LSOA_of_Accident_Location': 'E01016845',\n",
- " 'Latitude': 52.023142,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 487460,\n",
- " 'Location_Northing_OSGR': 236850,\n",
- " 'Longitude': -0.726765,\n",
- " 'Number_of_Casualties': 2,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 3,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 70,\n",
+ " '1st_Road_Number': 158,\n",
" 'Time': '11:21',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 1,\n",
- " 'Engine_Capacity_(CC)': -1,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': 1069,\n",
+ " 'Location_Northing_OSGR': 236850,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 487460,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 6,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 1,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 8,\n",
- " 'Propulsion_Code': -1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': -1,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 3,\n",
" 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 19,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 4,\n",
- " 'Engine_Capacity_(CC)': 1781,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': -1,\n",
+ " 'Age_of_Vehicle': -1,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 4,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 8,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Engine_Capacity_(CC)': 1781,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 6,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 3,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 19,\n",
+ " 'Vehicle_Manoeuvre': 9,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 2,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b6e9'),\n",
- " 'loc': {'coordinates': [-0.726765, 52.023142], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 3,\n",
- " '1st_Road_Number': 421,\n",
- " '2nd_Road_Class': -1,\n",
- " '2nd_Road_Number': 0,\n",
- " 'Accident_Index': '201243S013122',\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016845',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.023142,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S070012',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
+ " '2nd_Road_Class': 6,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 5,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.726765,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 70,\n",
+ " 'Date': '20/01/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 1, 20, 11, 21),\n",
+ " 'Number_of_Casualties': 2,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.726765, 52.023142]},\n",
+ " 'Weather_Conditions': 2},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b5e5'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 5,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 5,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 1,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 2,\n",
- " 'Casualty_Reference': 3,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 3,\n",
+ " 'Casualty_Home_Area_Type': 2,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 1,\n",
+ " 'Age_Band_of_Casualty': 5,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 9,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 9,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '02/12/2012',\n",
- " 'Datetime': datetime.datetime(2012, 12, 2, 11, 10),\n",
- " 'Day_of_Week': 1,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': -1,\n",
- " 'Junction_Detail': 0,\n",
- " 'LSOA_of_Accident_Location': 'E01016784',\n",
- " 'Latitude': 52.025704,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 487396,\n",
- " 'Location_Northing_OSGR': 237134,\n",
- " 'Longitude': -0.727625,\n",
- " 'Number_of_Casualties': 3,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 3,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 70,\n",
+ " '1st_Road_Number': 421,\n",
" 'Time': '11:10',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 5,\n",
- " 'Age_of_Vehicle': 15,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 4,\n",
- " 'Engine_Capacity_(CC)': 1396,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': 0,\n",
+ " 'Location_Northing_OSGR': 237134,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 487396,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 1,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 4,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1396,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': 9,\n",
- " 'Age_of_Vehicle': 7,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': -1,\n",
- " 'Engine_Capacity_(CC)': 1598,\n",
+ " 'Age_Band_of_Driver': 5,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 0,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
+ " 'Age_of_Vehicle': 15,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': -1,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 0,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 4,\n",
+ " 'Engine_Capacity_(CC)': 1598,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 9,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 7,\n",
+ " 'Vehicle_Manoeuvre': 4,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b5e5'),\n",
- " 'loc': {'coordinates': [-0.727625, 52.025704], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 4,\n",
- " '1st_Road_Number': 4034,\n",
- " '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1069,\n",
- " 'Accident_Index': '201243S059022',\n",
+ " 'Junction_Detail': 0,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
+ " 'LSOA_of_Accident_Location': 'E01016784',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.025704,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S013122',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 3,\n",
+ " '2nd_Road_Class': -1,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 8,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.727625,\n",
+ " 'Junction_Control': -1,\n",
+ " 'Speed_limit': 70,\n",
+ " 'Date': '02/12/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 12, 2, 11, 10),\n",
+ " 'Number_of_Casualties': 3,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.727625, 52.025704]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b6b3'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 8,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 5,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 5,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '20/02/2012',\n",
- " 'Datetime': datetime.datetime(2012, 2, 20, 18, 7),\n",
- " 'Day_of_Week': 2,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 3,\n",
- " 'LSOA_of_Accident_Location': 'E01016846',\n",
- " 'Latitude': 52.031851,\n",
- " 'Light_Conditions': 4,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 486950,\n",
- " 'Location_Northing_OSGR': 237810,\n",
- " 'Longitude': -0.733952,\n",
- " 'Number_of_Casualties': 2,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 3,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 70,\n",
+ " '1st_Road_Number': 4034,\n",
" 'Time': '18:07',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': 8,\n",
- " 'Age_of_Vehicle': 12,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 9,\n",
- " 'Engine_Capacity_(CC)': 1895,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 2,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': 1069,\n",
+ " 'Location_Northing_OSGR': 237810,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 486950,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 2,\n",
+ " 'Light_Conditions': 4,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 6,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 7,\n",
+ " 'Engine_Capacity_(CC)': 1895,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 5,\n",
- " 'Age_of_Vehicle': 1,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 8,\n",
- " 'Engine_Capacity_(CC)': 1390,\n",
+ " 'Age_Band_of_Driver': 8,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 2,\n",
- " 'Junction_Location': 8,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
+ " 'Age_of_Vehicle': 12,\n",
+ " 'Vehicle_Manoeuvre': 7,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 8,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 8,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 13,\n",
+ " 'Engine_Capacity_(CC)': 1390,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 5,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 2,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 1,\n",
+ " 'Vehicle_Manoeuvre': 13,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b6b3'),\n",
- " 'loc': {'coordinates': [-0.733952, 52.031851], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 4,\n",
- " '1st_Road_Number': 4034,\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016846',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.031851,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S059022',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 4,\n",
" '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1069,\n",
- " 'Accident_Index': '201243S087042',\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 9,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.733952,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 70,\n",
+ " 'Date': '20/02/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 2, 20, 18, 7),\n",
+ " 'Number_of_Casualties': 2,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.733952, 52.031851]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b73d'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 3,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 3,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
- " 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 4,\n",
- " 'Bus_or_Coach_Passenger': 4,\n",
" 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 9,\n",
+ " 'Pedestrian_Road_Maintenance_Worker': 0,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 11,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
- " 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2},\n",
- " {'Age_Band_of_Casualty': 9,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
" 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 4,\n",
+ " 'Pedestrian_Road_Maintenance_Worker': 0,\n",
+ " 'Bus_or_Coach_Passenger': 4,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 11,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 9,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '25/04/2012',\n",
- " 'Datetime': datetime.datetime(2012, 4, 25, 13, 0),\n",
- " 'Day_of_Week': 4,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 3,\n",
- " 'LSOA_of_Accident_Location': 'E01016846',\n",
- " 'Latitude': 52.031673,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 486940,\n",
- " 'Location_Northing_OSGR': 237790,\n",
- " 'Longitude': -0.734103,\n",
- " 'Number_of_Casualties': 3,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 3,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 70,\n",
+ " '1st_Road_Number': 4034,\n",
" 'Time': '13:00',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 4,\n",
- " 'Age_Band_of_Driver': 9,\n",
- " 'Age_of_Vehicle': 9,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 1,\n",
- " 'Engine_Capacity_(CC)': 1343,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 1,\n",
- " 'Journey_Purpose_of_Driver': 1,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': 1069,\n",
+ " 'Location_Northing_OSGR': 237790,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 486940,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 4,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 1,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 8,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Engine_Capacity_(CC)': 1343,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 1,\n",
" 'Age_Band_of_Driver': 9,\n",
- " 'Age_of_Vehicle': 5,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 6,\n",
- " 'Engine_Capacity_(CC)': 3900,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 1,\n",
+ " '1st_Point_of_Impact': 4,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 1,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 9,\n",
+ " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 6,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 1,\n",
- " 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 3900,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 9,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
" 'Vehicle_Type': 11,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 1,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': 5,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 2,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b73d'),\n",
- " 'loc': {'coordinates': [-0.734103, 52.031673], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 8007,\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016846',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.031673,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S087042',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 4,\n",
" '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1158,\n",
- " 'Accident_Index': '201243S024042',\n",
- " 'Accident_Severity': 1,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 7,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Accident_Severity': 3,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.734103,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 70,\n",
+ " 'Date': '25/04/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 4, 25, 13, 0),\n",
+ " 'Number_of_Casualties': 3,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.734103, 52.031673]},\n",
+ " 'Weather_Conditions': 2},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b60f'),\n",
+ " 'Casualties': [{'Casualty_Severity': 1,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 1,\n",
" 'Casualty_Type': 5,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 7,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '14/04/2012',\n",
- " 'Datetime': datetime.datetime(2012, 4, 14, 14, 22),\n",
- " 'Day_of_Week': 7,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 3,\n",
- " 'LSOA_of_Accident_Location': 'E01016782',\n",
- " 'Latitude': 52.036262,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 487480,\n",
- " 'Location_Northing_OSGR': 238310,\n",
- " 'Longitude': -0.726101,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 60,\n",
+ " '1st_Road_Number': 8007,\n",
" 'Time': '14:22',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 3,\n",
- " 'Age_Band_of_Driver': 10,\n",
- " 'Age_of_Vehicle': 5,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 6,\n",
- " 'Engine_Capacity_(CC)': 1598,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 1158,\n",
+ " 'Location_Northing_OSGR': 238310,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 487480,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 7,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 6,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 6,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Engine_Capacity_(CC)': 1598,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': 4,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 9,\n",
- " 'Engine_Capacity_(CC)': 644,\n",
+ " 'Age_Band_of_Driver': 10,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 3,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 1,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
+ " 'Age_of_Vehicle': 5,\n",
+ " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 1,\n",
" 'Skidding_and_Overturning': 2,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 644,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 7,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
" 'Vehicle_Type': 5,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 4,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b60f'),\n",
- " 'loc': {'coordinates': [-0.726101, 52.036262], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 8007,\n",
- " '2nd_Road_Class': -1,\n",
- " '2nd_Road_Number': 0,\n",
- " 'Accident_Index': '201243S115122',\n",
- " 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 7,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
+ " 'LSOA_of_Accident_Location': 'E01016782',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.036262,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S024042',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
+ " '2nd_Road_Class': 6,\n",
+ " 'Accident_Severity': 1,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.726101,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 60,\n",
+ " 'Date': '14/04/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 4, 14, 14, 22),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.726101, 52.036262]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b7d4'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 7,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 9,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 3,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 3,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 9,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2},\n",
- " {'Age_Band_of_Casualty': 7,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 1,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 3,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 1,\n",
+ " 'Age_Band_of_Casualty': 7,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 3}],\n",
- " 'Date': '21/12/2012',\n",
- " 'Datetime': datetime.datetime(2012, 12, 21, 13, 28),\n",
- " 'Day_of_Week': 6,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': -1,\n",
- " 'Junction_Detail': 0,\n",
- " 'LSOA_of_Accident_Location': 'E01016782',\n",
- " 'Latitude': 52.03627,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 487710,\n",
- " 'Location_Northing_OSGR': 238315,\n",
- " 'Longitude': -0.722747,\n",
- " 'Number_of_Casualties': 3,\n",
- " 'Number_of_Vehicles': 3,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 60,\n",
+ " '1st_Road_Number': 8007,\n",
" 'Time': '13:28',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': 9,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 8,\n",
- " 'Engine_Capacity_(CC)': 1995,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 2,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 0,\n",
+ " 'Location_Northing_OSGR': 238315,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 3,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 487710,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 6,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 8,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1995,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': 9,\n",
- " 'Age_of_Vehicle': 6,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 4,\n",
- " 'Engine_Capacity_(CC)': 1242,\n",
+ " 'Age_Band_of_Driver': 7,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 2,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': 9,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 4,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1242,\n",
" 'Vehicle_Reference': 2,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 9,\n",
- " 'Engine_Capacity_(CC)': 1995,\n",
+ " 'Age_Band_of_Driver': 9,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 2,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 6,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1995,\n",
" 'Vehicle_Reference': 3,\n",
+ " 'Age_Band_of_Driver': 6,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 2,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': -1,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b7d4'),\n",
- " 'loc': {'coordinates': [-0.722747, 52.03627], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 146,\n",
- " '2nd_Road_Class': 5,\n",
- " '2nd_Road_Number': 9010,\n",
- " 'Accident_Index': '201243S082022',\n",
+ " 'Junction_Detail': 0,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
+ " 'LSOA_of_Accident_Location': 'E01016782',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.03627,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S115122',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
+ " '2nd_Road_Class': -1,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 6,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.722747,\n",
+ " 'Junction_Control': -1,\n",
+ " 'Speed_limit': 60,\n",
+ " 'Date': '21/12/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 12, 21, 13, 28),\n",
+ " 'Number_of_Casualties': 3,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.722747, 52.03627]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b726'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 5,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 1,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
- " 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
- " 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 5,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
- " 'Casualty_Class': 1,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 2,\n",
" 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 3,\n",
- " 'Casualty_Severity': 3,\n",
- " 'Casualty_Type': 9,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 1,\n",
+ " 'Age_Band_of_Casualty': 5,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '21/02/2012',\n",
- " 'Datetime': datetime.datetime(2012, 2, 21, 8, 50),\n",
- " 'Day_of_Week': 3,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 1,\n",
- " 'LSOA_of_Accident_Location': 'E01016768',\n",
- " 'Latitude': 52.047293,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 487640,\n",
- " 'Location_Northing_OSGR': 239540,\n",
- " 'Longitude': -0.723454,\n",
- " 'Number_of_Casualties': 3,\n",
- " 'Number_of_Vehicles': 3,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2},\n",
+ " {'Casualty_Severity': 3,\n",
+ " 'Casualty_Class': 1,\n",
+ " 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 3,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
+ " 'Pedestrian_Location': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 5,\n",
+ " 'Pedestrian_Road_Maintenance_Worker': 0,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 1,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 70,\n",
+ " '1st_Road_Number': 146,\n",
" 'Time': '08:50',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 8,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 2,\n",
+ " 'Road_Type': 1,\n",
+ " '2nd_Road_Number': 9010,\n",
+ " 'Location_Northing_OSGR': 239540,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 3,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 487640,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 3,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 2,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 1,\n",
+ " 'Skidding_and_Overturning': 0,\n",
+ " 'Towing_and_Articulation': 0,\n",
+ " 'Vehicle_Location-Restricted_Lane': 0,\n",
" 'Engine_Capacity_(CC)': 1086,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 6,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 2,\n",
- " 'Junction_Location': 1,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
+ " 'Age_of_Vehicle': 8,\n",
+ " 'Vehicle_Manoeuvre': 4,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 4,\n",
- " 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': 5,\n",
- " 'Age_of_Vehicle': 10,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 9,\n",
" 'Engine_Capacity_(CC)': 1199,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 5,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 2,\n",
- " 'Junction_Location': 1,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
+ " 'Age_of_Vehicle': 10,\n",
+ " 'Vehicle_Manoeuvre': 4,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': -1,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 4,\n",
- " 'Vehicle_Reference': 2,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': 9,\n",
- " 'Age_of_Vehicle': 6,\n",
- " 'Driver_Home_Area_Type': -1,\n",
- " 'Driver_IMD_Decile': -1,\n",
" 'Engine_Capacity_(CC)': 1896,\n",
+ " 'Vehicle_Reference': 3,\n",
+ " 'Age_Band_of_Driver': 9,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 1,\n",
+ " 'Driver_Home_Area_Type': -1,\n",
" 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 1,\n",
- " 'Skidding_and_Overturning': 0,\n",
- " 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
- " 'Vehicle_Location-Restricted_Lane': 0,\n",
+ " 'Age_of_Vehicle': 6,\n",
" 'Vehicle_Manoeuvre': 4,\n",
- " 'Vehicle_Reference': 3,\n",
- " 'Vehicle_Type': 9,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b726'),\n",
- " 'loc': {'coordinates': [-0.723454, 52.047293], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 146,\n",
- " '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1158,\n",
- " 'Accident_Index': '201243S106112',\n",
+ " 'Junction_Detail': 1,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
+ " 'LSOA_of_Accident_Location': 'E01016768',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.047293,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S082022',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
+ " '2nd_Road_Class': 5,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 7,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.723454,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 70,\n",
+ " 'Date': '21/02/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 2, 21, 8, 50),\n",
+ " 'Number_of_Casualties': 3,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.723454, 52.047293]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b7a1'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 7,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2},\n",
- " {'Age_Band_of_Casualty': 7,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 1,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 1,\n",
+ " 'Age_Band_of_Casualty': 7,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '25/11/2012',\n",
- " 'Datetime': datetime.datetime(2012, 11, 25, 18, 35),\n",
- " 'Day_of_Week': 1,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 1,\n",
- " 'LSOA_of_Accident_Location': 'E01016731',\n",
- " 'Latitude': 52.043148,\n",
- " 'Light_Conditions': 4,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 486560,\n",
- " 'Location_Northing_OSGR': 239060,\n",
- " 'Longitude': -0.73932,\n",
- " 'Number_of_Casualties': 2,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 1,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 70,\n",
+ " '1st_Road_Number': 146,\n",
" 'Time': '18:35',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 9,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': -1,\n",
- " 'Driver_IMD_Decile': -1,\n",
- " 'Engine_Capacity_(CC)': -1,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 1,\n",
+ " '2nd_Road_Number': 1158,\n",
+ " 'Location_Northing_OSGR': 239060,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 486560,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 1,\n",
+ " 'Light_Conditions': 4,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': -1,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 4,\n",
- " 'Propulsion_Code': -1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 5,\n",
+ " 'Engine_Capacity_(CC)': -1,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 4,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': 6,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 10,\n",
- " 'Engine_Capacity_(CC)': 1991,\n",
+ " 'Age_Band_of_Driver': 9,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': -1,\n",
+ " 'Propulsion_Code': -1,\n",
+ " 'Age_of_Vehicle': -1,\n",
+ " 'Vehicle_Manoeuvre': 5,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 10,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 8,\n",
- " 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Engine_Capacity_(CC)': 1991,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 7,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 4,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': 6,\n",
+ " 'Vehicle_Manoeuvre': 9,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 2,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b7a1'),\n",
- " 'loc': {'coordinates': [-0.73932, 52.043148], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 4,\n",
- " '1st_Road_Number': 4034,\n",
- " '2nd_Road_Class': 5,\n",
- " '2nd_Road_Number': 146,\n",
- " 'Accident_Index': '201243S116042',\n",
+ " 'Junction_Detail': 1,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016731',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.043148,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S106112',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
+ " '2nd_Road_Class': 6,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 5,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.73932,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 70,\n",
+ " 'Date': '25/11/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 11, 25, 18, 35),\n",
+ " 'Number_of_Casualties': 2,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.73932, 52.043148]},\n",
+ " 'Weather_Conditions': 2},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b7d6'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 5,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2},\n",
- " {'Age_Band_of_Casualty': 4,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 1,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': -1,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': -1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 1,\n",
+ " 'Age_Band_of_Casualty': 4,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '27/04/2012',\n",
- " 'Datetime': datetime.datetime(2012, 4, 27, 8, 45),\n",
- " 'Day_of_Week': 6,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 2,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 1,\n",
- " 'LSOA_of_Accident_Location': 'E01016729',\n",
- " 'Latitude': 52.041313,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 486220,\n",
- " 'Location_Northing_OSGR': 238850,\n",
- " 'Longitude': -0.744329,\n",
- " 'Number_of_Casualties': 2,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 3,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 70,\n",
+ " '1st_Road_Number': 4034,\n",
" 'Time': '08:45',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': -1,\n",
- " 'Age_of_Vehicle': 2,\n",
- " 'Driver_Home_Area_Type': 3,\n",
- " 'Driver_IMD_Decile': 8,\n",
- " 'Engine_Capacity_(CC)': 1560,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 1,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': 146,\n",
+ " 'Location_Northing_OSGR': 238850,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 486220,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 6,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 8,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 1,\n",
- " 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1560,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': 5,\n",
- " 'Age_of_Vehicle': 4,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 10,\n",
- " 'Engine_Capacity_(CC)': 1397,\n",
+ " 'Age_Band_of_Driver': -1,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 1,\n",
+ " 'Driver_Home_Area_Type': 3,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': 2,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 10,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 1,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 3,\n",
+ " 'Engine_Capacity_(CC)': 1397,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 5,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 1,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 4,\n",
+ " 'Vehicle_Manoeuvre': 3,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b7d6'),\n",
- " 'loc': {'coordinates': [-0.744329, 52.041313], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 4,\n",
- " '1st_Road_Number': 4034,\n",
+ " 'Junction_Detail': 1,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016729',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.041313,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 2,\n",
+ " 'Accident_Index': '201243S116042',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 4,\n",
" '2nd_Road_Class': 5,\n",
- " '2nd_Road_Number': 146,\n",
- " 'Accident_Index': '201243S110072',\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 4,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.744329,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 70,\n",
+ " 'Date': '27/04/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 4, 27, 8, 45),\n",
+ " 'Number_of_Casualties': 2,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.744329, 52.041313]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b7b4'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': -1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': -1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 4,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '26/07/2012',\n",
- " 'Datetime': datetime.datetime(2012, 7, 26, 15, 13),\n",
- " 'Day_of_Week': 5,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 1,\n",
- " 'LSOA_of_Accident_Location': 'E01016768',\n",
- " 'Latitude': 52.041854,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 486210,\n",
- " 'Location_Northing_OSGR': 238910,\n",
- " 'Longitude': -0.744459,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 3,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 70,\n",
+ " '1st_Road_Number': 4034,\n",
" 'Time': '15:13',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 3,\n",
- " 'Age_Band_of_Driver': 10,\n",
- " 'Age_of_Vehicle': 13,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 5,\n",
- " 'Engine_Capacity_(CC)': 1850,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': 146,\n",
+ " 'Location_Northing_OSGR': 238910,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 486210,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 5,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 5,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 8,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 12,\n",
+ " 'Engine_Capacity_(CC)': 1850,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 4,\n",
- " 'Age_Band_of_Driver': 4,\n",
- " 'Age_of_Vehicle': 10,\n",
- " 'Driver_Home_Area_Type': -1,\n",
- " 'Driver_IMD_Decile': -1,\n",
- " 'Engine_Capacity_(CC)': 1108,\n",
+ " 'Age_Band_of_Driver': 10,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 3,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 8,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
+ " 'Age_of_Vehicle': 13,\n",
+ " 'Vehicle_Manoeuvre': 12,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': -1,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 8,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 7,\n",
+ " 'Engine_Capacity_(CC)': 1108,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 4,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 4,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': -1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 10,\n",
+ " 'Vehicle_Manoeuvre': 7,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b7b4'),\n",
- " 'loc': {'coordinates': [-0.744459, 52.041854], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 6,\n",
- " '1st_Road_Number': 8206,\n",
- " '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1158,\n",
- " 'Accident_Index': '201243S011112',\n",
+ " 'Junction_Detail': 1,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
+ " 'LSOA_of_Accident_Location': 'E01016768',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.041854,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S110072',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 4,\n",
+ " '2nd_Road_Class': 5,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 5,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.744459,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 70,\n",
+ " 'Date': '26/07/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 7, 26, 15, 13),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.744459, 52.041854]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b5de'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 3,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 0,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 9,\n",
- " 'Pedestrian_Movement': 5,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 5,\n",
" 'Pedestrian_Road_Maintenance_Worker': 2,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1}],\n",
- " 'Date': '04/11/2012',\n",
- " 'Datetime': datetime.datetime(2012, 11, 4, 21, 0),\n",
- " 'Day_of_Week': 1,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 1,\n",
- " 'LSOA_of_Accident_Location': 'E01016768',\n",
- " 'Latitude': 52.045331,\n",
- " 'Light_Conditions': 4,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 486390,\n",
- " 'Location_Northing_OSGR': 239300,\n",
- " 'Longitude': -0.741737,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 1,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 5,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 1,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 30,\n",
+ " '1st_Road_Number': 8206,\n",
" 'Time': '21:00',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': -1,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': -1,\n",
- " 'Driver_IMD_Decile': -1,\n",
- " 'Engine_Capacity_(CC)': -1,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 1,\n",
+ " '2nd_Road_Number': 1158,\n",
+ " 'Location_Northing_OSGR': 239300,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 1,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 486390,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 1,\n",
+ " 'Light_Conditions': 4,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': -1,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 4,\n",
- " 'Propulsion_Code': -1,\n",
- " 'Sex_of_Driver': 3,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': -1,\n",
" 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': -1,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 3,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': -1,\n",
+ " 'Propulsion_Code': -1,\n",
+ " 'Age_of_Vehicle': -1,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 2,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b5de'),\n",
- " 'loc': {'coordinates': [-0.741737, 52.045331], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 4,\n",
- " '1st_Road_Number': 4034,\n",
- " '2nd_Road_Class': 5,\n",
- " '2nd_Road_Number': 146,\n",
- " 'Accident_Index': '201243S050112',\n",
+ " 'Junction_Detail': 1,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
+ " 'LSOA_of_Accident_Location': 'E01016768',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.045331,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S011112',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 6,\n",
+ " '2nd_Road_Class': 6,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 9,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.741737,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 30,\n",
+ " 'Date': '04/11/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 11, 4, 21, 0),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.741737, 52.045331]},\n",
+ " 'Weather_Conditions': 2},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b68e'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 2,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 2,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 9,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '13/11/2012',\n",
- " 'Datetime': datetime.datetime(2012, 11, 13, 8, 55),\n",
- " 'Day_of_Week': 3,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 1,\n",
- " 'LSOA_of_Accident_Location': 'E01016768',\n",
- " 'Latitude': 52.041857,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 486190,\n",
- " 'Location_Northing_OSGR': 238910,\n",
- " 'Longitude': -0.744751,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 3,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 70,\n",
+ " '1st_Road_Number': 4034,\n",
" 'Time': '08:55',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 5,\n",
- " 'Age_of_Vehicle': 13,\n",
- " 'Driver_Home_Area_Type': 3,\n",
- " 'Driver_IMD_Decile': 8,\n",
- " 'Engine_Capacity_(CC)': 1595,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 1,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': 146,\n",
+ " 'Location_Northing_OSGR': 238910,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 486190,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 3,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 8,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 1,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 5,\n",
+ " 'Engine_Capacity_(CC)': 1595,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': 9,\n",
- " 'Age_of_Vehicle': 8,\n",
- " 'Driver_Home_Area_Type': 2,\n",
- " 'Driver_IMD_Decile': 10,\n",
- " 'Engine_Capacity_(CC)': 998,\n",
+ " 'Age_Band_of_Driver': 5,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 1,\n",
- " 'Junction_Location': 1,\n",
+ " 'Driver_Home_Area_Type': 3,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
+ " 'Age_of_Vehicle': 13,\n",
+ " 'Vehicle_Manoeuvre': 5,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 10,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 3,\n",
+ " 'Engine_Capacity_(CC)': 998,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 9,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 1,\n",
+ " 'Driver_Home_Area_Type': 2,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 8,\n",
+ " 'Vehicle_Manoeuvre': 3,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b68e'),\n",
- " 'loc': {'coordinates': [-0.744751, 52.041857], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 6,\n",
- " '1st_Road_Number': 1145,\n",
- " '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1145,\n",
- " 'Accident_Index': '201243S095042',\n",
+ " 'Junction_Detail': 1,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
+ " 'LSOA_of_Accident_Location': 'E01016768',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.041857,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S050112',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 4,\n",
+ " '2nd_Road_Class': 5,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 4,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.744751,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 70,\n",
+ " 'Date': '13/11/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 11, 13, 8, 55),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.744751, 52.041857]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b76c'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 3,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 4,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1}],\n",
- " 'Date': '26/04/2012',\n",
- " 'Datetime': datetime.datetime(2012, 4, 26, 8, 20),\n",
- " 'Day_of_Week': 5,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 1,\n",
- " 'LSOA_of_Accident_Location': 'E01016773',\n",
- " 'Latitude': 52.055416,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 486280,\n",
- " 'Location_Northing_OSGR': 240420,\n",
- " 'Longitude': -0.743058,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 30,\n",
+ " '1st_Road_Number': 1145,\n",
" 'Time': '08:20',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 4,\n",
- " 'Age_of_Vehicle': 26,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 5,\n",
- " 'Engine_Capacity_(CC)': 124,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 2,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 1145,\n",
+ " 'Location_Northing_OSGR': 240420,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 486280,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 5,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 5,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 1,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 1,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 124,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 3,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 4,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 7,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 10,\n",
- " 'Engine_Capacity_(CC)': 1590,\n",
+ " 'Age_Band_of_Driver': 4,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 8,\n",
- " 'Propulsion_Code': 1,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 3,\n",
" 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 2,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 26,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 10,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 8,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Engine_Capacity_(CC)': 1590,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 6,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 4,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 7,\n",
+ " 'Vehicle_Manoeuvre': 9,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b76c'),\n",
- " 'loc': {'coordinates': [-0.743058, 52.055416], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 6,\n",
- " '1st_Road_Number': 1145,\n",
+ " 'Junction_Detail': 1,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016773',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.055416,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S095042',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 6,\n",
" '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1145,\n",
- " 'Accident_Index': '201243S083102',\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 9,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.743058,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 30,\n",
+ " 'Date': '26/04/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 4, 26, 8, 20),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.743058, 52.055416]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b72d'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 9,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '19/10/2012',\n",
- " 'Datetime': datetime.datetime(2012, 10, 19, 13, 0),\n",
- " 'Day_of_Week': 6,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 2,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 3,\n",
- " 'LSOA_of_Accident_Location': 'E01016772',\n",
- " 'Latitude': 52.055978,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 486130,\n",
- " 'Location_Northing_OSGR': 240480,\n",
- " 'Longitude': -0.74523,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 30,\n",
+ " '1st_Road_Number': 1145,\n",
" 'Time': '13:00',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 13,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 5,\n",
- " 'Engine_Capacity_(CC)': 1149,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 1145,\n",
+ " 'Location_Northing_OSGR': 240480,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 486130,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 6,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 5,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 6,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 7,\n",
+ " 'Engine_Capacity_(CC)': 1149,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 4,\n",
- " 'Age_Band_of_Driver': 9,\n",
- " 'Age_of_Vehicle': 7,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 5,\n",
- " 'Engine_Capacity_(CC)': 1360,\n",
+ " 'Age_Band_of_Driver': 6,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 1,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
+ " 'Age_of_Vehicle': 13,\n",
+ " 'Vehicle_Manoeuvre': 7,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 5,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1360,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 9,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 4,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 7,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b72d'),\n",
- " 'loc': {'coordinates': [-0.74523, 52.055978], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 144,\n",
- " '2nd_Road_Class': 5,\n",
- " '2nd_Road_Number': 159,\n",
- " 'Accident_Index': '201243S011022',\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016772',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.055978,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 2,\n",
+ " 'Accident_Index': '201243S083102',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 6,\n",
+ " '2nd_Road_Class': 6,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 2,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 4,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.74523,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 30,\n",
+ " 'Date': '19/10/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 10, 19, 13, 0),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.74523, 52.055978]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b5dc'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 3,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 0,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 9,\n",
- " 'Pedestrian_Movement': 5,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 4,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '05/02/2012',\n",
- " 'Datetime': datetime.datetime(2012, 2, 5, 1, 40),\n",
- " 'Day_of_Week': 1,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 1,\n",
- " 'LSOA_of_Accident_Location': 'E01016766',\n",
- " 'Latitude': 52.058675,\n",
- " 'Light_Conditions': 4,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 486130,\n",
- " 'Location_Northing_OSGR': 240780,\n",
- " 'Longitude': -0.745155,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 5,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 3,\n",
- " 'Road_Type': 1,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 60,\n",
+ " '1st_Road_Number': 144,\n",
" 'Time': '01:40',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': 12,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 9,\n",
- " 'Engine_Capacity_(CC)': 2700,\n",
- " 'Hit_Object_in_Carriageway': 4,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 1,\n",
+ " 'Road_Type': 1,\n",
+ " '2nd_Road_Number': 159,\n",
+ " 'Location_Northing_OSGR': 240780,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 2,\n",
+ " 'Location_Easting_OSGR': 486130,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 1,\n",
+ " 'Light_Conditions': 4,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 4,\n",
- " 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 1,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 2700,\n",
" 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 7,\n",
+ " 'Hit_Object_in_Carriageway': 4,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
" 'Vehicle_Type': 8,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 4,\n",
- " 'Age_Band_of_Driver': 4,\n",
- " 'Age_of_Vehicle': 1,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 1,\n",
" 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 7,\n",
- " 'Engine_Capacity_(CC)': 1997,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 8,\n",
" 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 1,\n",
+ " 'Age_of_Vehicle': 12,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 7,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 8,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 2,\n",
+ " 'Engine_Capacity_(CC)': 1997,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 4,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 4,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': 1,\n",
+ " 'Vehicle_Manoeuvre': 2,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 3,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b5dc'),\n",
- " 'loc': {'coordinates': [-0.745155, 52.058675], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 159,\n",
- " '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1145,\n",
- " 'Accident_Index': '201243S095022',\n",
+ " 'Junction_Detail': 1,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016766',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.058675,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S011022',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
+ " '2nd_Road_Class': 5,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 11,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.745155,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 60,\n",
+ " 'Date': '05/02/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 2, 5, 1, 40),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.745155, 52.058675]},\n",
+ " 'Weather_Conditions': 3},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b76a'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 11,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 7,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 7,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '22/02/2012',\n",
- " 'Datetime': datetime.datetime(2012, 2, 22, 17, 36),\n",
- " 'Day_of_Week': 4,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 3,\n",
- " 'LSOA_of_Accident_Location': 'E01016772',\n",
- " 'Latitude': 52.059766,\n",
- " 'Light_Conditions': 4,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 486050,\n",
- " 'Location_Northing_OSGR': 240900,\n",
- " 'Longitude': -0.746291,\n",
- " 'Number_of_Casualties': 2,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
- " 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 3,\n",
- " 'Speed_limit': 60,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
+ " 'Road_Surface_Conditions': 2,\n",
+ " '1st_Road_Number': 159,\n",
" 'Time': '17:36',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 11,\n",
- " 'Age_of_Vehicle': 8,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 10,\n",
- " 'Engine_Capacity_(CC)': 1339,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 1145,\n",
+ " 'Location_Northing_OSGR': 240900,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 486050,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 4,\n",
+ " 'Light_Conditions': 4,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 10,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 8,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Engine_Capacity_(CC)': 1339,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': 6,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 6,\n",
- " 'Engine_Capacity_(CC)': 1598,\n",
+ " 'Age_Band_of_Driver': 11,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 1,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
+ " 'Age_of_Vehicle': 8,\n",
+ " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 6,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1598,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 7,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 6,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 5,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b76a'),\n",
- " 'loc': {'coordinates': [-0.746291, 52.059766], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 9010,\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016772',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.059766,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S095022',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
" '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1158,\n",
- " 'Accident_Index': '201243S156102',\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 5,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 3,\n",
+ " 'Longitude': -0.746291,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 60,\n",
+ " 'Date': '22/02/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 2, 22, 17, 36),\n",
+ " 'Number_of_Casualties': 2,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.746291, 52.059766]},\n",
+ " 'Weather_Conditions': 5},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b851'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 5,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 8,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 8,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '21/10/2012',\n",
- " 'Datetime': datetime.datetime(2012, 10, 21, 10, 50),\n",
- " 'Day_of_Week': 1,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 3,\n",
- " 'LSOA_of_Accident_Location': 'E01016770',\n",
- " 'Latitude': 52.060134,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 487150,\n",
- " 'Location_Northing_OSGR': 240960,\n",
- " 'Longitude': -0.730235,\n",
- " 'Number_of_Casualties': 2,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 60,\n",
+ " '1st_Road_Number': 9010,\n",
" 'Time': '10:50',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 4,\n",
- " 'Age_Band_of_Driver': 5,\n",
- " 'Age_of_Vehicle': 8,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 10,\n",
- " 'Engine_Capacity_(CC)': 1199,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 1158,\n",
+ " 'Location_Northing_OSGR': 240960,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 487150,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 1,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 10,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 6,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Engine_Capacity_(CC)': 1199,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 8,\n",
- " 'Age_of_Vehicle': 1,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 8,\n",
- " 'Engine_Capacity_(CC)': 1995,\n",
+ " 'Age_Band_of_Driver': 5,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 4,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 8,\n",
+ " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 8,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 1,\n",
- " 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1995,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 8,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': 1,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b851'),\n",
- " 'loc': {'coordinates': [-0.730235, 52.060134], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 3,\n",
- " '1st_Road_Number': 509,\n",
- " '2nd_Road_Class': 5,\n",
- " '2nd_Road_Number': 9010,\n",
- " 'Accident_Index': '201243S076012',\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
+ " 'LSOA_of_Accident_Location': 'E01016770',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.060134,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S156102',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
+ " '2nd_Road_Class': 6,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 6,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.730235,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 60,\n",
+ " 'Date': '21/10/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 10, 21, 10, 50),\n",
+ " 'Number_of_Casualties': 2,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.730235, 52.060134]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b707'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 3,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 3,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 1}],\n",
- " 'Date': '20/01/2012',\n",
- " 'Datetime': datetime.datetime(2012, 1, 20, 17, 45),\n",
- " 'Day_of_Week': 6,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 1,\n",
- " 'LSOA_of_Accident_Location': 'E01016768',\n",
- " 'Latitude': 52.054086,\n",
- " 'Light_Conditions': 4,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 487310,\n",
- " 'Location_Northing_OSGR': 240290,\n",
- " 'Longitude': -0.728073,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 1,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 70,\n",
+ " '1st_Road_Number': 509,\n",
" 'Time': '17:45',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 2,\n",
- " 'Driver_Home_Area_Type': 3,\n",
- " 'Driver_IMD_Decile': 9,\n",
- " 'Engine_Capacity_(CC)': 1198,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 1,\n",
+ " '2nd_Road_Number': 9010,\n",
+ " 'Location_Northing_OSGR': 240290,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 487310,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 6,\n",
+ " 'Light_Conditions': 4,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 1,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 5,\n",
+ " 'Engine_Capacity_(CC)': 1198,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': 8,\n",
- " 'Age_of_Vehicle': 6,\n",
- " 'Driver_Home_Area_Type': 3,\n",
- " 'Driver_IMD_Decile': 9,\n",
- " 'Engine_Capacity_(CC)': 1598,\n",
+ " 'Age_Band_of_Driver': 6,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 1,\n",
+ " 'Driver_Home_Area_Type': 3,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
+ " 'Age_of_Vehicle': 2,\n",
+ " 'Vehicle_Manoeuvre': 5,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 3,\n",
+ " 'Engine_Capacity_(CC)': 1598,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 8,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 3,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 6,\n",
+ " 'Vehicle_Manoeuvre': 3,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b707'),\n",
- " 'loc': {'coordinates': [-0.728073, 52.054086], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 9010,\n",
- " '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1158,\n",
- " 'Accident_Index': '201243S094062',\n",
- " 'Accident_Severity': 2,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 5,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Junction_Detail': 1,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
+ " 'LSOA_of_Accident_Location': 'E01016768',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.054086,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S076012',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 3,\n",
+ " '2nd_Road_Class': 5,\n",
+ " 'Accident_Severity': 3,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.728073,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 70,\n",
+ " 'Date': '20/01/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 1, 20, 17, 45),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.728073, 52.054086]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b763'),\n",
+ " 'Casualties': [{'Casualty_Severity': 2,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 3,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 2,\n",
" 'Casualty_Type': 19,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 3,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 5,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1}],\n",
- " 'Date': '22/06/2012',\n",
- " 'Datetime': datetime.datetime(2012, 6, 22, 7, 40),\n",
- " 'Day_of_Week': 6,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 3,\n",
- " 'LSOA_of_Accident_Location': 'E01016770',\n",
- " 'Latitude': 52.056612,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 487250,\n",
- " 'Location_Northing_OSGR': 240570,\n",
- " 'Longitude': -0.728876,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 60,\n",
+ " '1st_Road_Number': 9010,\n",
" 'Time': '07:40',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 5,\n",
- " 'Age_of_Vehicle': 8,\n",
- " 'Driver_Home_Area_Type': 3,\n",
- " 'Driver_IMD_Decile': 9,\n",
- " 'Engine_Capacity_(CC)': 1868,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 1,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 1158,\n",
+ " 'Location_Northing_OSGR': 240570,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 487250,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 6,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 7,\n",
" 'Junction_Location': 6,\n",
- " 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 7,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Engine_Capacity_(CC)': 1868,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 19,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 8,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 5,\n",
- " 'Engine_Capacity_(CC)': 2151,\n",
+ " 'Age_Band_of_Driver': 5,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 19,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 1,\n",
- " 'Junction_Location': 1,\n",
+ " 'Driver_Home_Area_Type': 3,\n",
" 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 1,\n",
+ " 'Age_of_Vehicle': 8,\n",
+ " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 5,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 2151,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 6,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
" 'Vehicle_Type': 19,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 1,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': 8,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b763'),\n",
- " 'loc': {'coordinates': [-0.728876, 52.056612], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 3,\n",
- " '1st_Road_Number': 509,\n",
- " '2nd_Road_Class': -1,\n",
- " '2nd_Road_Number': 0,\n",
- " 'Accident_Index': '201243S146112',\n",
- " 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 7,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
+ " 'LSOA_of_Accident_Location': 'E01016770',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.056612,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S094062',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
+ " '2nd_Road_Class': 6,\n",
+ " 'Accident_Severity': 2,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.728876,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 60,\n",
+ " 'Date': '22/06/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 6, 22, 7, 40),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.728876, 52.056612]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b848'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 7,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1}],\n",
- " 'Date': '29/11/2012',\n",
- " 'Datetime': datetime.datetime(2012, 11, 29, 5, 37),\n",
- " 'Day_of_Week': 5,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': -1,\n",
- " 'Junction_Detail': 0,\n",
- " 'LSOA_of_Accident_Location': 'E01016768',\n",
- " 'Latitude': 52.054911,\n",
- " 'Light_Conditions': 4,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 487780,\n",
- " 'Location_Northing_OSGR': 240390,\n",
- " 'Longitude': -0.721195,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 3,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 70,\n",
+ " '1st_Road_Number': 509,\n",
" 'Time': '05:37',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': 5,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 4,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': 0,\n",
+ " 'Location_Northing_OSGR': 240390,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 487780,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 5,\n",
+ " 'Light_Conditions': 4,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 4,\n",
+ " 'Vehicle_Leaving_Carriageway': 4,\n",
+ " 'Junction_Location': 0,\n",
+ " 'Skidding_and_Overturning': 0,\n",
+ " 'Towing_and_Articulation': 0,\n",
+ " 'Vehicle_Location-Restricted_Lane': 0,\n",
" 'Engine_Capacity_(CC)': 1896,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 7,\n",
" 'Hit_Object_in_Carriageway': 4,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 2,\n",
- " 'Junction_Location': 0,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 1,\n",
+ " 'Age_of_Vehicle': 5,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 3,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 0,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 4,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
- " 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 3,\n",
" 'Engine_Capacity_(CC)': -1,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 6,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 2,\n",
- " 'Junction_Location': 0,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': -1,\n",
- " 'Sex_of_Driver': 1,\n",
- " 'Skidding_and_Overturning': 0,\n",
- " 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
- " 'Vehicle_Location-Restricted_Lane': 0,\n",
+ " 'Age_of_Vehicle': -1,\n",
" 'Vehicle_Manoeuvre': 2,\n",
- " 'Vehicle_Reference': 2,\n",
- " 'Vehicle_Type': 9,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b848'),\n",
- " 'loc': {'coordinates': [-0.721195, 52.054911], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 3,\n",
- " '1st_Road_Number': 509,\n",
- " '2nd_Road_Class': 5,\n",
- " '2nd_Road_Number': 9011,\n",
- " 'Accident_Index': '201243S063092',\n",
- " 'Accident_Severity': 2,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 6,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Junction_Detail': 0,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
+ " 'LSOA_of_Accident_Location': 'E01016768',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.054911,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S146112',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 3,\n",
+ " '2nd_Road_Class': -1,\n",
+ " 'Accident_Severity': 3,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.721195,\n",
+ " 'Junction_Control': -1,\n",
+ " 'Speed_limit': 70,\n",
+ " 'Date': '29/11/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 11, 29, 5, 37),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.721195, 52.054911]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b6cc'),\n",
+ " 'Casualties': [{'Casualty_Severity': 2,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 2,\n",
" 'Casualty_Type': 1,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '16/09/2012',\n",
- " 'Datetime': datetime.datetime(2012, 9, 16, 19, 55),\n",
- " 'Day_of_Week': 1,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 1,\n",
- " 'LSOA_of_Accident_Location': 'E01016785',\n",
- " 'Latitude': 52.05464,\n",
- " 'Light_Conditions': 4,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 488350,\n",
- " 'Location_Northing_OSGR': 240370,\n",
- " 'Longitude': -0.712889,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 3,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 70,\n",
+ " '1st_Road_Number': 509,\n",
" 'Time': '19:55',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 3,\n",
- " 'Age_Band_of_Driver': 8,\n",
- " 'Age_of_Vehicle': 7,\n",
- " 'Driver_Home_Area_Type': -1,\n",
- " 'Driver_IMD_Decile': -1,\n",
- " 'Engine_Capacity_(CC)': 2996,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': 9011,\n",
+ " 'Location_Northing_OSGR': 240370,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 488350,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 1,\n",
+ " 'Light_Conditions': 4,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': -1,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 4,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 5,\n",
+ " 'Engine_Capacity_(CC)': 2996,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 2,\n",
- " 'Engine_Capacity_(CC)': -1,\n",
+ " 'Age_Band_of_Driver': 8,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 3,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': -1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 7,\n",
+ " 'Vehicle_Manoeuvre': 5,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 2,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 8,\n",
- " 'Propulsion_Code': -1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': -1,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 6,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
" 'Vehicle_Type': 1,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': -1,\n",
+ " 'Age_of_Vehicle': -1,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b6cc'),\n",
- " 'loc': {'coordinates': [-0.712889, 52.05464], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 3,\n",
- " '1st_Road_Number': 509,\n",
- " '2nd_Road_Class': -1,\n",
- " '2nd_Road_Number': 0,\n",
- " 'Accident_Index': '201243S074112',\n",
+ " 'Junction_Detail': 1,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016785',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.05464,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S063092',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 3,\n",
+ " '2nd_Road_Class': 5,\n",
" 'Accident_Severity': 2,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 5,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.712889,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 70,\n",
+ " 'Date': '16/09/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 9, 16, 19, 55),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.712889, 52.05464]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b6ff'),\n",
+ " 'Casualties': [{'Casualty_Severity': 2,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 2,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 2,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 2,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 5,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1}],\n",
- " 'Date': '18/11/2012',\n",
- " 'Datetime': datetime.datetime(2012, 11, 18, 15, 25),\n",
- " 'Day_of_Week': 1,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': -1,\n",
- " 'Junction_Detail': 0,\n",
- " 'LSOA_of_Accident_Location': 'E01016768',\n",
- " 'Latitude': 52.054592,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 488090,\n",
- " 'Location_Northing_OSGR': 240360,\n",
- " 'Longitude': -0.716682,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 1,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 3,\n",
- " 'Special_Conditions_at_Site': 6,\n",
- " 'Speed_limit': 70,\n",
+ " '1st_Road_Number': 509,\n",
" 'Time': '15:25',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 4,\n",
- " 'Age_Band_of_Driver': 5,\n",
- " 'Age_of_Vehicle': 14,\n",
- " 'Driver_Home_Area_Type': 2,\n",
- " 'Driver_IMD_Decile': 10,\n",
- " 'Engine_Capacity_(CC)': 1360,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 7,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': 0,\n",
+ " 'Location_Northing_OSGR': 240360,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 1,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 488090,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 1,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 10,\n",
+ " 'Vehicle_Leaving_Carriageway': 2,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 1,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 2,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 11,\n",
+ " 'Engine_Capacity_(CC)': 1360,\n",
" 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 5,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 7,\n",
+ " '1st_Point_of_Impact': 4,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 2,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 14,\n",
+ " 'Vehicle_Manoeuvre': 11,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b6ff'),\n",
- " 'loc': {'coordinates': [-0.716682, 52.054592], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 1,\n",
- " '1st_Road_Number': 1,\n",
+ " 'Junction_Detail': 0,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
+ " 'LSOA_of_Accident_Location': 'E01016768',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.054592,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S074112',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 3,\n",
" '2nd_Road_Class': -1,\n",
- " '2nd_Road_Number': 0,\n",
- " 'Accident_Index': '201243S082012',\n",
- " 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 6,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Accident_Severity': 2,\n",
+ " 'Special_Conditions_at_Site': 6,\n",
+ " 'Longitude': -0.716682,\n",
+ " 'Junction_Control': -1,\n",
+ " 'Speed_limit': 70,\n",
+ " 'Date': '18/11/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 11, 18, 15, 25),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.716682, 52.054592]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b725'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '18/01/2012',\n",
- " 'Datetime': datetime.datetime(2012, 1, 18, 19, 15),\n",
- " 'Day_of_Week': 4,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 2,\n",
- " 'Junction_Control': -1,\n",
- " 'Junction_Detail': 0,\n",
- " 'LSOA_of_Accident_Location': 'E01016785',\n",
- " 'Latitude': 52.058637,\n",
- " 'Light_Conditions': 4,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 489210,\n",
- " 'Location_Northing_OSGR': 240830,\n",
- " 'Longitude': -0.70023,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 3,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 70,\n",
+ " '1st_Road_Number': 1,\n",
" 'Time': '19:15',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 3,\n",
- " 'Age_Band_of_Driver': -1,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': -1,\n",
- " 'Driver_IMD_Decile': -1,\n",
- " 'Engine_Capacity_(CC)': -1,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 1,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': 0,\n",
+ " 'Location_Northing_OSGR': 240830,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 489210,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 4,\n",
+ " 'Light_Conditions': 4,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': -1,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': -1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 1,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 12,\n",
+ " 'Engine_Capacity_(CC)': -1,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 21,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 2},\n",
- " {'1st_Point_of_Impact': 4,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 1,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 5,\n",
- " 'Engine_Capacity_(CC)': 1461,\n",
+ " 'Age_Band_of_Driver': -1,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 3,\n",
+ " 'Vehicle_Type': 21,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 1,\n",
+ " 'Driver_Home_Area_Type': -1,\n",
+ " 'Propulsion_Code': -1,\n",
+ " 'Age_of_Vehicle': -1,\n",
+ " 'Vehicle_Manoeuvre': 12,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 2},\n",
+ " {'Driver_IMD_Decile': 5,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1461,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 6,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 4,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 1,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': 1,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b725'),\n",
- " 'loc': {'coordinates': [-0.70023, 52.058637], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 3,\n",
- " '1st_Road_Number': 509,\n",
- " '2nd_Road_Class': 1,\n",
- " '2nd_Road_Number': 1,\n",
- " 'Accident_Index': '201243S099032',\n",
+ " 'Junction_Detail': 0,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
+ " 'LSOA_of_Accident_Location': 'E01016785',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.058637,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 2,\n",
+ " 'Accident_Index': '201243S082012',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 1,\n",
+ " '2nd_Road_Class': -1,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 4,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.70023,\n",
+ " 'Junction_Control': -1,\n",
+ " 'Speed_limit': 70,\n",
+ " 'Date': '18/01/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 1, 18, 19, 15),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.70023, 52.058637]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b77e'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 4,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2},\n",
- " {'Age_Band_of_Casualty': 4,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 1,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 1,\n",
+ " 'Age_Band_of_Casualty': 4,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '24/03/2012',\n",
- " 'Datetime': datetime.datetime(2012, 3, 24, 7, 25),\n",
- " 'Day_of_Week': 7,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 2,\n",
- " 'Junction_Detail': 1,\n",
- " 'LSOA_of_Accident_Location': 'E01016785',\n",
- " 'Latitude': 52.057912,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 489250,\n",
- " 'Location_Northing_OSGR': 240750,\n",
- " 'Longitude': -0.699667,\n",
- " 'Number_of_Casualties': 2,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 7,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 70,\n",
+ " '1st_Road_Number': 509,\n",
" 'Time': '07:25',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 4,\n",
- " 'Age_of_Vehicle': 11,\n",
- " 'Driver_Home_Area_Type': 3,\n",
- " 'Driver_IMD_Decile': 8,\n",
- " 'Engine_Capacity_(CC)': 2171,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 7,\n",
+ " '2nd_Road_Number': 1,\n",
+ " 'Location_Northing_OSGR': 240750,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 489250,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 7,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 8,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 1,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 1,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 2171,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
" 'Age_Band_of_Driver': 4,\n",
- " 'Age_of_Vehicle': 7,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 10,\n",
- " 'Engine_Capacity_(CC)': 1299,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 1,\n",
+ " 'Driver_Home_Area_Type': 3,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
+ " 'Age_of_Vehicle': 11,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 10,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 1,\n",
" 'Skidding_and_Overturning': 5,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 3,\n",
+ " 'Engine_Capacity_(CC)': 1299,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 4,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 7,\n",
+ " 'Vehicle_Manoeuvre': 3,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 7,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b77e'),\n",
- " 'loc': {'coordinates': [-0.699667, 52.057912], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 3,\n",
- " '1st_Road_Number': 509,\n",
- " '2nd_Road_Class': 5,\n",
- " '2nd_Road_Number': 26,\n",
- " 'Accident_Index': '201243S055042',\n",
+ " 'Junction_Detail': 1,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
+ " 'LSOA_of_Accident_Location': 'E01016785',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.057912,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S099032',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 3,\n",
+ " '2nd_Road_Class': 1,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 6,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.699667,\n",
+ " 'Junction_Control': 2,\n",
+ " 'Speed_limit': 70,\n",
+ " 'Date': '24/03/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 3, 24, 7, 25),\n",
+ " 'Number_of_Casualties': 2,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.699667, 52.057912]},\n",
+ " 'Weather_Conditions': 7},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b6a0'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 2,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 2,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '13/04/2012',\n",
- " 'Datetime': datetime.datetime(2012, 4, 13, 9, 0),\n",
- " 'Day_of_Week': 6,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 3,\n",
- " 'LSOA_of_Accident_Location': 'E01016803',\n",
- " 'Latitude': 52.060703,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 489220,\n",
- " 'Location_Northing_OSGR': 241060,\n",
- " 'Longitude': -0.700024,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 60,\n",
+ " '1st_Road_Number': 509,\n",
" 'Time': '09:00',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': -1,\n",
- " 'Driver_IMD_Decile': -1,\n",
- " 'Engine_Capacity_(CC)': -1,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 2,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 26,\n",
+ " 'Location_Northing_OSGR': 241060,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 489220,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 6,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': -1,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 8,\n",
- " 'Propulsion_Code': -1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Engine_Capacity_(CC)': -1,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 2},\n",
- " {'1st_Point_of_Impact': 3,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 7,\n",
- " 'Driver_Home_Area_Type': 2,\n",
- " 'Driver_IMD_Decile': 4,\n",
- " 'Engine_Capacity_(CC)': 1493,\n",
+ " 'Age_Band_of_Driver': 7,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 7,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 2,\n",
+ " 'Driver_Home_Area_Type': -1,\n",
+ " 'Propulsion_Code': -1,\n",
+ " 'Age_of_Vehicle': -1,\n",
+ " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 2},\n",
+ " {'Driver_IMD_Decile': 4,\n",
+ " 'Vehicle_Leaving_Carriageway': 1,\n",
" 'Junction_Location': 1,\n",
- " 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 1,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1493,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 6,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 7,\n",
+ " '1st_Point_of_Impact': 3,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 2,\n",
+ " 'Driver_Home_Area_Type': 2,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': 7,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b6a0'),\n",
- " 'loc': {'coordinates': [-0.700024, 52.060703], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 1,\n",
- " '1st_Road_Number': 1,\n",
- " '2nd_Road_Class': 3,\n",
- " '2nd_Road_Number': 509,\n",
- " 'Accident_Index': '201243S145052',\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
+ " 'LSOA_of_Accident_Location': 'E01016803',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.060703,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S055042',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 3,\n",
+ " '2nd_Road_Class': 5,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': -1,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.700024,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 60,\n",
+ " 'Date': '13/04/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 4, 13, 9, 0),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.700024, 52.060703]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b845'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': -1,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '27/05/2012',\n",
- " 'Datetime': datetime.datetime(2012, 5, 27, 13, 45),\n",
- " 'Day_of_Week': 1,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 2,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 5,\n",
- " 'LSOA_of_Accident_Location': 'E01016803',\n",
- " 'Latitude': 52.060845,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 488900,\n",
- " 'Location_Northing_OSGR': 241070,\n",
- " 'Longitude': -0.704688,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 7,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 70,\n",
+ " '1st_Road_Number': 1,\n",
" 'Time': '13:45',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': -1,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': -1,\n",
- " 'Driver_IMD_Decile': -1,\n",
- " 'Engine_Capacity_(CC)': -1,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 7,\n",
+ " '2nd_Road_Number': 509,\n",
+ " 'Location_Northing_OSGR': 241070,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 488900,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 1,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': -1,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 5,\n",
- " 'Propulsion_Code': -1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': -1,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
" 'Age_Band_of_Driver': -1,\n",
- " 'Age_of_Vehicle': 3,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 1,\n",
- " 'Engine_Capacity_(CC)': 1390,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': -1,\n",
+ " 'Propulsion_Code': -1,\n",
+ " 'Age_of_Vehicle': -1,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 1,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 5,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1390,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': -1,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 3,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b845'),\n",
- " 'loc': {'coordinates': [-0.704688, 52.060845], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 3,\n",
- " '1st_Road_Number': 509,\n",
- " '2nd_Road_Class': 1,\n",
- " '2nd_Road_Number': 1,\n",
- " 'Accident_Index': '201243S014062',\n",
+ " 'Junction_Detail': 5,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
+ " 'LSOA_of_Accident_Location': 'E01016803',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.060845,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 2,\n",
+ " 'Accident_Index': '201243S145052',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 1,\n",
+ " '2nd_Road_Class': 3,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 8,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.704688,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 70,\n",
+ " 'Date': '27/05/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 5, 27, 13, 45),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.704688, 52.060845]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b5ea'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 8,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2},\n",
- " {'Age_Band_of_Casualty': 7,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 1,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 1,\n",
+ " 'Age_Band_of_Casualty': 7,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '03/06/2012',\n",
- " 'Datetime': datetime.datetime(2012, 6, 3, 13, 0),\n",
- " 'Day_of_Week': 1,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 1,\n",
- " 'LSOA_of_Accident_Location': 'E01016803',\n",
- " 'Latitude': 52.059626,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 489210,\n",
- " 'Location_Northing_OSGR': 240940,\n",
- " 'Longitude': -0.700201,\n",
- " 'Number_of_Casualties': 2,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 60,\n",
+ " '1st_Road_Number': 509,\n",
" 'Time': '13:00',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 8,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 10,\n",
- " 'Engine_Capacity_(CC)': 1240,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 1,\n",
+ " 'Location_Northing_OSGR': 240940,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 489210,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 1,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 10,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 1,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 1,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 4,\n",
+ " 'Engine_Capacity_(CC)': 1240,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': 8,\n",
- " 'Age_of_Vehicle': 3,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 6,\n",
- " 'Engine_Capacity_(CC)': 1956,\n",
+ " 'Age_Band_of_Driver': 6,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 8,\n",
+ " 'Vehicle_Manoeuvre': 4,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 6,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 1,\n",
- " 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 3,\n",
+ " 'Engine_Capacity_(CC)': 1956,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 8,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': 3,\n",
+ " 'Vehicle_Manoeuvre': 3,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 2,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b5ea'),\n",
- " 'loc': {'coordinates': [-0.700201, 52.059626], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 3,\n",
- " '1st_Road_Number': 509,\n",
+ " 'Junction_Detail': 1,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
+ " 'LSOA_of_Accident_Location': 'E01016803',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.059626,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S014062',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 3,\n",
" '2nd_Road_Class': 1,\n",
- " '2nd_Road_Number': 1,\n",
- " 'Accident_Index': '201243S123092',\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 6,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 1,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.700201,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 60,\n",
+ " 'Date': '03/06/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 6, 3, 13, 0),\n",
+ " 'Number_of_Casualties': 2,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.700201, 52.059626]},\n",
+ " 'Weather_Conditions': 2},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b7fe'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 3,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 3,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 1,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 6,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 2,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 4,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 4,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 2,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 2,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 2,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 5,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 5,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 2,\n",
+ " 'Age_Band_of_Casualty': 2,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 2,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 2,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 6,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 6,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 2,\n",
+ " 'Age_Band_of_Casualty': 2,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 2,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 2,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 7,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 7,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 2,\n",
+ " 'Age_Band_of_Casualty': 2,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 2,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 2,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': -1,\n",
- " 'Casualty_Reference': 8,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 8,\n",
+ " 'Casualty_Home_Area_Type': -1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 2,\n",
+ " 'Age_Band_of_Casualty': 2,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 6,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 1,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 1,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2},\n",
- " {'Age_Band_of_Casualty': 6,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 2,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 2,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '29/09/2012',\n",
- " 'Datetime': datetime.datetime(2012, 9, 29, 17, 53),\n",
- " 'Day_of_Week': 7,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 2,\n",
- " 'Junction_Detail': 1,\n",
- " 'LSOA_of_Accident_Location': 'E01016785',\n",
- " 'Latitude': 52.058644,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 489170,\n",
- " 'Location_Northing_OSGR': 240830,\n",
- " 'Longitude': -0.700813,\n",
- " 'Number_of_Casualties': 8,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 1,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 60,\n",
+ " '1st_Road_Number': 509,\n",
" 'Time': '17:53',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 8,\n",
- " 'Age_of_Vehicle': 19,\n",
- " 'Driver_Home_Area_Type': -1,\n",
- " 'Driver_IMD_Decile': -1,\n",
- " 'Engine_Capacity_(CC)': 2200,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 1,\n",
+ " '2nd_Road_Number': 1,\n",
+ " 'Location_Northing_OSGR': 240830,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 489170,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 7,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': -1,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 8,\n",
- " 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 2200,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 8,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 2,\n",
- " 'Engine_Capacity_(CC)': 1796,\n",
+ " 'Age_Band_of_Driver': 8,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': -1,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': 19,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 2,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 8,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 4,\n",
+ " 'Engine_Capacity_(CC)': 1796,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 6,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 8,\n",
+ " 'Vehicle_Manoeuvre': 4,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b7fe'),\n",
- " 'loc': {'coordinates': [-0.700813, 52.058644], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 3,\n",
- " '1st_Road_Number': 509,\n",
- " '2nd_Road_Class': 3,\n",
- " '2nd_Road_Number': 4146,\n",
- " 'Accident_Index': '201243S116012',\n",
+ " 'Junction_Detail': 1,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
+ " 'LSOA_of_Accident_Location': 'E01016785',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.058644,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S123092',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 3,\n",
+ " '2nd_Road_Class': 1,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 4,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.700813,\n",
+ " 'Junction_Control': 2,\n",
+ " 'Speed_limit': 60,\n",
+ " 'Date': '29/09/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 9, 29, 17, 53),\n",
+ " 'Number_of_Casualties': 8,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.700813, 52.058644]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b7d5'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 4,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '26/01/2012',\n",
- " 'Datetime': datetime.datetime(2012, 1, 26, 21, 25),\n",
- " 'Day_of_Week': 5,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 1,\n",
- " 'LSOA_of_Accident_Location': 'E01016785',\n",
- " 'Latitude': 52.054169,\n",
- " 'Light_Conditions': 4,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 489050,\n",
- " 'Location_Northing_OSGR': 240330,\n",
- " 'Longitude': -0.702693,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 1,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 70,\n",
+ " '1st_Road_Number': 509,\n",
" 'Time': '21:25',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 4,\n",
- " 'Age_Band_of_Driver': 8,\n",
- " 'Age_of_Vehicle': 15,\n",
- " 'Driver_Home_Area_Type': 2,\n",
- " 'Driver_IMD_Decile': 8,\n",
- " 'Engine_Capacity_(CC)': 1896,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 1,\n",
+ " '2nd_Road_Number': 4146,\n",
+ " 'Location_Northing_OSGR': 240330,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 489050,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 5,\n",
+ " 'Light_Conditions': 4,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 8,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 8,\n",
- " 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1896,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 3,\n",
- " 'Age_Band_of_Driver': 4,\n",
- " 'Age_of_Vehicle': 3,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 8,\n",
- " 'Engine_Capacity_(CC)': 1242,\n",
+ " 'Age_Band_of_Driver': 8,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 4,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 2,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': 15,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 8,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 8,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1242,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 4,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 3,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 3,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b7d5'),\n",
- " 'loc': {'coordinates': [-0.702693, 52.054169], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 3,\n",
- " '1st_Road_Number': 509,\n",
+ " 'Junction_Detail': 1,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
+ " 'LSOA_of_Accident_Location': 'E01016785',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.054169,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S116012',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 3,\n",
" '2nd_Road_Class': 3,\n",
- " '2nd_Road_Number': 4146,\n",
- " 'Accident_Index': '201243S118022',\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 8,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.702693,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 70,\n",
+ " 'Date': '26/01/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 1, 26, 21, 25),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.702693, 52.054169]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b7e0'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 8,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '04/02/2012',\n",
- " 'Datetime': datetime.datetime(2012, 2, 4, 12, 5),\n",
- " 'Day_of_Week': 7,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 2,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 1,\n",
- " 'LSOA_of_Accident_Location': 'E01016785',\n",
- " 'Latitude': 52.05461,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 489100,\n",
- " 'Location_Northing_OSGR': 240380,\n",
- " 'Longitude': -0.701951,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 1,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 70,\n",
+ " '1st_Road_Number': 509,\n",
" 'Time': '12:05',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 4,\n",
- " 'Age_Band_of_Driver': -1,\n",
- " 'Age_of_Vehicle': 4,\n",
- " 'Driver_Home_Area_Type': -1,\n",
- " 'Driver_IMD_Decile': -1,\n",
- " 'Engine_Capacity_(CC)': 1198,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 1,\n",
+ " '2nd_Road_Number': 4146,\n",
+ " 'Location_Northing_OSGR': 240380,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 489100,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 7,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': -1,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 1,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1198,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 3,\n",
- " 'Age_Band_of_Driver': 8,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 8,\n",
- " 'Engine_Capacity_(CC)': -1,\n",
+ " 'Age_Band_of_Driver': -1,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 4,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': -1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 4,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 8,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 1,\n",
- " 'Propulsion_Code': -1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': -1,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 8,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 3,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': -1,\n",
+ " 'Age_of_Vehicle': -1,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b7e0'),\n",
- " 'loc': {'coordinates': [-0.701951, 52.05461], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 3,\n",
- " '1st_Road_Number': 5130,\n",
- " '2nd_Road_Class': -1,\n",
- " '2nd_Road_Number': 0,\n",
- " 'Accident_Index': '201243S044022',\n",
+ " 'Junction_Detail': 1,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
+ " 'LSOA_of_Accident_Location': 'E01016785',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.05461,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 2,\n",
+ " 'Accident_Index': '201243S118022',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 3,\n",
+ " '2nd_Road_Class': 3,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 8,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.701951,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 70,\n",
+ " 'Date': '04/02/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 2, 4, 12, 5),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.701951, 52.05461]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b672'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 5,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 8,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1}],\n",
- " 'Date': '13/02/2012',\n",
- " 'Datetime': datetime.datetime(2012, 2, 13, 16, 40),\n",
- " 'Day_of_Week': 2,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': -1,\n",
- " 'Junction_Detail': 0,\n",
- " 'LSOA_of_Accident_Location': 'E01016785',\n",
- " 'Latitude': 52.054331,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 489160,\n",
- " 'Location_Northing_OSGR': 240350,\n",
- " 'Longitude': -0.701084,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 1,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 3,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 40,\n",
+ " '1st_Road_Number': 5130,\n",
" 'Time': '16:40',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 3,\n",
- " 'Age_Band_of_Driver': 8,\n",
- " 'Age_of_Vehicle': 9,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 7,\n",
- " 'Engine_Capacity_(CC)': 998,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': 0,\n",
+ " 'Location_Northing_OSGR': 240350,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 1,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 489160,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 2,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 7,\n",
+ " 'Vehicle_Leaving_Carriageway': 4,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 1,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 4,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 16,\n",
+ " 'Engine_Capacity_(CC)': 998,\n",
" 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 8,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 3,\n",
" 'Vehicle_Type': 5,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 9,\n",
+ " 'Vehicle_Manoeuvre': 16,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b672'),\n",
- " 'loc': {'coordinates': [-0.701084, 52.054331], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 3,\n",
- " '1st_Road_Number': 5130,\n",
+ " 'Junction_Detail': 0,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
+ " 'LSOA_of_Accident_Location': 'E01016785',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.054331,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S044022',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 3,\n",
" '2nd_Road_Class': -1,\n",
- " '2nd_Road_Number': 0,\n",
- " 'Accident_Index': '201243S076072',\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 1,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 2,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.701084,\n",
+ " 'Junction_Control': -1,\n",
+ " 'Speed_limit': 40,\n",
+ " 'Date': '13/02/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 2, 13, 16, 40),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.701084, 52.054331]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b70a'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': -1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': -1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 2,\n",
+ " 'Age_Band_of_Casualty': 1,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 1}],\n",
- " 'Date': '16/07/2012',\n",
- " 'Datetime': datetime.datetime(2012, 7, 16, 10, 35),\n",
- " 'Day_of_Week': 2,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': -1,\n",
- " 'Junction_Detail': 0,\n",
- " 'LSOA_of_Accident_Location': 'E01016785',\n",
- " 'Latitude': 52.054415,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 489200,\n",
- " 'Location_Northing_OSGR': 240360,\n",
- " 'Longitude': -0.700498,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 1,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 3,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 30,\n",
+ " '1st_Road_Number': 5130,\n",
" 'Time': '10:35',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 10,\n",
- " 'Driver_Home_Area_Type': -1,\n",
- " 'Driver_IMD_Decile': -1,\n",
- " 'Engine_Capacity_(CC)': 1749,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 7,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': 0,\n",
+ " 'Location_Northing_OSGR': 240360,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 1,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 489200,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 2,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': -1,\n",
+ " 'Vehicle_Leaving_Carriageway': 2,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 1,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 2,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1749,\n",
" 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 6,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 7,\n",
+ " '1st_Point_of_Impact': 2,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': -1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 10,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 2,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b70a'),\n",
- " 'loc': {'coordinates': [-0.700498, 52.054415], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 3,\n",
- " '1st_Road_Number': 509,\n",
- " '2nd_Road_Class': 3,\n",
- " '2nd_Road_Number': 4146,\n",
- " 'Accident_Index': '201243S087072',\n",
+ " 'Junction_Detail': 0,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
+ " 'LSOA_of_Accident_Location': 'E01016785',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.054415,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S076072',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 3,\n",
+ " '2nd_Road_Class': -1,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 6,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.700498,\n",
+ " 'Junction_Control': -1,\n",
+ " 'Speed_limit': 30,\n",
+ " 'Date': '16/07/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 7, 16, 10, 35),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.700498, 52.054415]},\n",
+ " 'Weather_Conditions': 2},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b73e'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 1}],\n",
- " 'Date': '20/07/2012',\n",
- " 'Datetime': datetime.datetime(2012, 7, 20, 17, 50),\n",
- " 'Day_of_Week': 6,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 2,\n",
- " 'Junction_Detail': 1,\n",
- " 'LSOA_of_Accident_Location': 'E01016785',\n",
- " 'Latitude': 52.054169,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 489050,\n",
- " 'Location_Northing_OSGR': 240330,\n",
- " 'Longitude': -0.702693,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 3,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 1,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 70,\n",
+ " '1st_Road_Number': 509,\n",
" 'Time': '17:50',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 13,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 1,\n",
- " 'Engine_Capacity_(CC)': 1598,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 1,\n",
+ " '2nd_Road_Number': 4146,\n",
+ " 'Location_Northing_OSGR': 240330,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 3,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 489050,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 6,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 1,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 8,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1598,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': 8,\n",
- " 'Age_of_Vehicle': 7,\n",
- " 'Driver_Home_Area_Type': 3,\n",
- " 'Driver_IMD_Decile': 7,\n",
- " 'Engine_Capacity_(CC)': 1997,\n",
+ " 'Age_Band_of_Driver': 6,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 13,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 7,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 8,\n",
- " 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1997,\n",
" 'Vehicle_Reference': 2,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 0,\n",
" 'Age_Band_of_Driver': 8,\n",
- " 'Age_of_Vehicle': 7,\n",
- " 'Driver_Home_Area_Type': -1,\n",
- " 'Driver_IMD_Decile': -1,\n",
- " 'Engine_Capacity_(CC)': 1360,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 3,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': 7,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': -1,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 8,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Engine_Capacity_(CC)': 1360,\n",
" 'Vehicle_Reference': 3,\n",
+ " 'Age_Band_of_Driver': 8,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 0,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': -1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 7,\n",
+ " 'Vehicle_Manoeuvre': 9,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b73e'),\n",
- " 'loc': {'coordinates': [-0.702693, 52.054169], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 3,\n",
- " '1st_Road_Number': 509,\n",
- " '2nd_Road_Class': -1,\n",
- " '2nd_Road_Number': 0,\n",
- " 'Accident_Index': '201243S111082',\n",
+ " 'Junction_Detail': 1,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
+ " 'LSOA_of_Accident_Location': 'E01016785',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.054169,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S087072',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 3,\n",
+ " '2nd_Road_Class': 3,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 6,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.702693,\n",
+ " 'Junction_Control': 2,\n",
+ " 'Speed_limit': 70,\n",
+ " 'Date': '20/07/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 7, 20, 17, 50),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.702693, 52.054169]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b7bd'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 3,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 3,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 2,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 2,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 2,\n",
+ " 'Age_Band_of_Casualty': 2,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2},\n",
- " {'Age_Band_of_Casualty': 7,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 1,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 1,\n",
+ " 'Age_Band_of_Casualty': 7,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '31/08/2012',\n",
- " 'Datetime': datetime.datetime(2012, 8, 31, 10, 44),\n",
- " 'Day_of_Week': 6,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': -1,\n",
- " 'Junction_Detail': 0,\n",
- " 'LSOA_of_Accident_Location': 'E01016785',\n",
- " 'Latitude': 52.056482,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 489200,\n",
- " 'Location_Northing_OSGR': 240590,\n",
- " 'Longitude': -0.700438,\n",
- " 'Number_of_Casualties': 3,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 3,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 70,\n",
+ " '1st_Road_Number': 509,\n",
" 'Time': '10:44',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 7,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 3,\n",
- " 'Engine_Capacity_(CC)': 1390,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': 0,\n",
+ " 'Location_Northing_OSGR': 240590,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 489200,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 6,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 3,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1390,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
" 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 6,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 8,\n",
- " 'Engine_Capacity_(CC)': 1390,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 0,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
+ " 'Age_of_Vehicle': 7,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 8,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 0,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 4,\n",
+ " 'Engine_Capacity_(CC)': 1390,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 6,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 6,\n",
+ " 'Vehicle_Manoeuvre': 4,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b7bd'),\n",
- " 'loc': {'coordinates': [-0.700438, 52.056482], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 3,\n",
- " '1st_Road_Number': 509,\n",
- " '2nd_Road_Class': 3,\n",
- " '2nd_Road_Number': 4146,\n",
- " 'Accident_Index': '201243S037102',\n",
+ " 'Junction_Detail': 0,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
+ " 'LSOA_of_Accident_Location': 'E01016785',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.056482,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S111082',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 3,\n",
+ " '2nd_Road_Class': -1,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 5,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 1,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.700438,\n",
+ " 'Junction_Control': -1,\n",
+ " 'Speed_limit': 70,\n",
+ " 'Date': '31/08/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 8, 31, 10, 44),\n",
+ " 'Number_of_Casualties': 3,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.700438, 52.056482]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b655'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 1,\n",
+ " 'Age_Band_of_Casualty': 5,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '09/10/2012',\n",
- " 'Datetime': datetime.datetime(2012, 10, 9, 19, 50),\n",
- " 'Day_of_Week': 3,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 2,\n",
- " 'Junction_Detail': 1,\n",
- " 'LSOA_of_Accident_Location': 'E01016785',\n",
- " 'Latitude': 52.054169,\n",
- " 'Light_Conditions': 4,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 489050,\n",
- " 'Location_Northing_OSGR': 240330,\n",
- " 'Longitude': -0.702693,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 1,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 70,\n",
+ " '1st_Road_Number': 509,\n",
" 'Time': '19:50',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 4,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 10,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 4,\n",
- " 'Engine_Capacity_(CC)': 1753,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 1,\n",
+ " '2nd_Road_Number': 4146,\n",
+ " 'Location_Northing_OSGR': 240330,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 489050,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 3,\n",
+ " 'Light_Conditions': 4,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 4,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 8,\n",
- " 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1753,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 3,\n",
- " 'Age_Band_of_Driver': 5,\n",
- " 'Age_of_Vehicle': 8,\n",
- " 'Driver_Home_Area_Type': -1,\n",
- " 'Driver_IMD_Decile': -1,\n",
- " 'Engine_Capacity_(CC)': 1796,\n",
+ " 'Age_Band_of_Driver': 6,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 4,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': 10,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': -1,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 8,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1796,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 5,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 3,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': -1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 8,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b655'),\n",
- " 'loc': {'coordinates': [-0.702693, 52.054169], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 3,\n",
- " '1st_Road_Number': 509,\n",
+ " 'Junction_Detail': 1,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
+ " 'LSOA_of_Accident_Location': 'E01016785',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.054169,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S037102',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 3,\n",
" '2nd_Road_Class': 3,\n",
- " '2nd_Road_Number': 4146,\n",
- " 'Accident_Index': '201243S102102',\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 3,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 1,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.702693,\n",
+ " 'Junction_Control': 2,\n",
+ " 'Speed_limit': 70,\n",
+ " 'Date': '09/10/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 10, 9, 19, 50),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.702693, 52.054169]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b78d'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 3,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 3,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 1,\n",
+ " 'Age_Band_of_Casualty': 3,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '19/10/2012',\n",
- " 'Datetime': datetime.datetime(2012, 10, 19, 19, 36),\n",
- " 'Day_of_Week': 6,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 2,\n",
- " 'Junction_Detail': 1,\n",
- " 'LSOA_of_Accident_Location': 'E01016785',\n",
- " 'Latitude': 52.054079,\n",
- " 'Light_Conditions': 4,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 489050,\n",
- " 'Location_Northing_OSGR': 240320,\n",
- " 'Longitude': -0.702696,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 1,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 70,\n",
+ " '1st_Road_Number': 509,\n",
" 'Time': '19:36',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 4,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 9,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 2,\n",
- " 'Engine_Capacity_(CC)': 1598,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 1,\n",
+ " '2nd_Road_Number': 4146,\n",
+ " 'Location_Northing_OSGR': 240320,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 489050,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 6,\n",
+ " 'Light_Conditions': 4,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 2,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 8,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1598,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': 1,\n",
- " 'Driver_Home_Area_Type': 3,\n",
- " 'Driver_IMD_Decile': 6,\n",
- " 'Engine_Capacity_(CC)': 1968,\n",
+ " 'Age_Band_of_Driver': 6,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 4,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 9,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 6,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 4,\n",
- " 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 5,\n",
+ " 'Engine_Capacity_(CC)': 1968,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 7,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 3,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': 1,\n",
+ " 'Vehicle_Manoeuvre': 5,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 2,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b78d'),\n",
- " 'loc': {'coordinates': [-0.702696, 52.054079], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 3,\n",
- " '1st_Road_Number': 509,\n",
- " '2nd_Road_Class': -1,\n",
- " '2nd_Road_Number': 0,\n",
- " 'Accident_Index': '201243S008122',\n",
+ " 'Junction_Detail': 1,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
+ " 'LSOA_of_Accident_Location': 'E01016785',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.054079,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S102102',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 3,\n",
+ " '2nd_Road_Class': 3,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 3,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 2,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.702696,\n",
+ " 'Junction_Control': 2,\n",
+ " 'Speed_limit': 70,\n",
+ " 'Date': '19/10/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 10, 19, 19, 36),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.702696, 52.054079]},\n",
+ " 'Weather_Conditions': 2},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b5d4'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 2,\n",
+ " 'Age_Band_of_Casualty': 3,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2},\n",
- " {'Age_Band_of_Casualty': 6,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 1,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 3,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 1,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 3},\n",
- " {'Age_Band_of_Casualty': 9,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 3,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 3,\n",
+ " 'Casualty_Reference': 3,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 9,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 3}],\n",
- " 'Date': '02/12/2012',\n",
- " 'Datetime': datetime.datetime(2012, 12, 2, 17, 25),\n",
- " 'Day_of_Week': 1,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': -1,\n",
- " 'Junction_Detail': 0,\n",
- " 'LSOA_of_Accident_Location': 'E01016785',\n",
- " 'Latitude': 52.054568,\n",
- " 'Light_Conditions': 4,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 488918,\n",
- " 'Location_Northing_OSGR': 240372,\n",
- " 'Longitude': -0.704607,\n",
- " 'Number_of_Casualties': 3,\n",
- " 'Number_of_Vehicles': 3,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 3,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 70,\n",
+ " '1st_Road_Number': 509,\n",
" 'Time': '17:25',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 8,\n",
- " 'Age_of_Vehicle': 5,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 6,\n",
- " 'Engine_Capacity_(CC)': 1968,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': 0,\n",
+ " 'Location_Northing_OSGR': 240372,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 3,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 488918,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 1,\n",
+ " 'Light_Conditions': 4,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 6,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1968,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': 7,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 6,\n",
- " 'Engine_Capacity_(CC)': 2429,\n",
+ " 'Age_Band_of_Driver': 8,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': 5,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 6,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 3,\n",
+ " 'Engine_Capacity_(CC)': 2429,\n",
" 'Vehicle_Reference': 2,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': 9,\n",
- " 'Age_of_Vehicle': 12,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 8,\n",
- " 'Engine_Capacity_(CC)': 1997,\n",
+ " 'Age_Band_of_Driver': 7,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 0,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
+ " 'Age_of_Vehicle': 7,\n",
+ " 'Vehicle_Manoeuvre': 3,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 8,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 0,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 3,\n",
+ " 'Engine_Capacity_(CC)': 1997,\n",
" 'Vehicle_Reference': 3,\n",
+ " 'Age_Band_of_Driver': 9,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 12,\n",
+ " 'Vehicle_Manoeuvre': 3,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b5d4'),\n",
- " 'loc': {'coordinates': [-0.704607, 52.054568], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 3,\n",
- " '1st_Road_Number': 509,\n",
+ " 'Junction_Detail': 0,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
+ " 'LSOA_of_Accident_Location': 'E01016785',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.054568,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S008122',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 3,\n",
" '2nd_Road_Class': -1,\n",
- " '2nd_Road_Number': 0,\n",
- " 'Accident_Index': '201243S119112',\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 7,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.704607,\n",
+ " 'Junction_Control': -1,\n",
+ " 'Speed_limit': 70,\n",
+ " 'Date': '02/12/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 12, 2, 17, 25),\n",
+ " 'Number_of_Casualties': 3,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.704607, 52.054568]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b7ea'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 7,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '27/11/2012',\n",
- " 'Datetime': datetime.datetime(2012, 11, 27, 17, 50),\n",
- " 'Day_of_Week': 3,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': -1,\n",
- " 'Junction_Detail': 0,\n",
- " 'LSOA_of_Accident_Location': 'E01016785',\n",
- " 'Latitude': 52.054554,\n",
- " 'Light_Conditions': 4,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 488890,\n",
- " 'Location_Northing_OSGR': 240370,\n",
- " 'Longitude': -0.705015,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 3,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 3,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 70,\n",
+ " '1st_Road_Number': 509,\n",
" 'Time': '17:50',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 10,\n",
- " 'Age_of_Vehicle': 23,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 3,\n",
- " 'Engine_Capacity_(CC)': 4973,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': 0,\n",
+ " 'Location_Northing_OSGR': 240370,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 3,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 488890,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 3,\n",
+ " 'Light_Conditions': 4,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 3,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 4973,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 7,\n",
- " 'Engine_Capacity_(CC)': -1,\n",
+ " 'Age_Band_of_Driver': 10,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 2,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 23,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 7,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': -1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 3,\n",
+ " 'Engine_Capacity_(CC)': -1,\n",
" 'Vehicle_Reference': 2,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': 5,\n",
- " 'Age_of_Vehicle': 9,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 4,\n",
- " 'Engine_Capacity_(CC)': 1397,\n",
+ " 'Age_Band_of_Driver': 7,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 2,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': -1,\n",
+ " 'Age_of_Vehicle': -1,\n",
+ " 'Vehicle_Manoeuvre': 3,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 4,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 3,\n",
+ " 'Engine_Capacity_(CC)': 1397,\n",
" 'Vehicle_Reference': 3,\n",
+ " 'Age_Band_of_Driver': 5,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 2,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 9,\n",
+ " 'Vehicle_Manoeuvre': 3,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b7ea'),\n",
- " 'loc': {'coordinates': [-0.705015, 52.054554], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 146,\n",
+ " 'Junction_Detail': 0,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
+ " 'LSOA_of_Accident_Location': 'E01016785',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.054554,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S119112',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 3,\n",
" '2nd_Road_Class': -1,\n",
- " '2nd_Road_Number': 0,\n",
- " 'Accident_Index': '201243S108042',\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 6,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.705015,\n",
+ " 'Junction_Control': -1,\n",
+ " 'Speed_limit': 70,\n",
+ " 'Date': '27/11/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 11, 27, 17, 50),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.705015, 52.054554]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b7a8'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '25/04/2012',\n",
- " 'Datetime': datetime.datetime(2012, 4, 25, 12, 57),\n",
- " 'Day_of_Week': 4,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': -1,\n",
- " 'Junction_Detail': 0,\n",
- " 'LSOA_of_Accident_Location': 'E01016785',\n",
- " 'Latitude': 52.048124,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 488630,\n",
- " 'Location_Northing_OSGR': 239650,\n",
- " 'Longitude': -0.708993,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 3,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 70,\n",
+ " '1st_Road_Number': 146,\n",
" 'Time': '12:57',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 4,\n",
- " 'Age_of_Vehicle': 12,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 9,\n",
- " 'Engine_Capacity_(CC)': 1149,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 2,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': 0,\n",
+ " 'Location_Northing_OSGR': 239650,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 488630,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 4,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 1,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1149,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 7,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 6,\n",
- " 'Engine_Capacity_(CC)': 2148,\n",
+ " 'Age_Band_of_Driver': 4,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 2,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 12,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 6,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 3,\n",
+ " 'Engine_Capacity_(CC)': 2148,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 6,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 2,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': 7,\n",
+ " 'Vehicle_Manoeuvre': 3,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 2,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b7a8'),\n",
- " 'loc': {'coordinates': [-0.708993, 52.048124], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 3,\n",
- " '1st_Road_Number': 4146,\n",
- " '2nd_Road_Class': 5,\n",
- " '2nd_Road_Number': 146,\n",
- " 'Accident_Index': '201243S070052',\n",
+ " 'Junction_Detail': 0,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
+ " 'LSOA_of_Accident_Location': 'E01016785',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.048124,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S108042',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
+ " '2nd_Road_Class': -1,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 5,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 1,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.708993,\n",
+ " 'Junction_Control': -1,\n",
+ " 'Speed_limit': 70,\n",
+ " 'Date': '25/04/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 4, 25, 12, 57),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.708993, 52.048124]},\n",
+ " 'Weather_Conditions': 2},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b6ec'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 1,\n",
+ " 'Age_Band_of_Casualty': 5,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1}],\n",
- " 'Date': '15/05/2012',\n",
- " 'Datetime': datetime.datetime(2012, 5, 15, 17, 27),\n",
- " 'Day_of_Week': 3,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 2,\n",
- " 'Junction_Detail': 1,\n",
- " 'LSOA_of_Accident_Location': 'E01016785',\n",
- " 'Latitude': 52.048652,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 488700,\n",
- " 'Location_Northing_OSGR': 239710,\n",
- " 'Longitude': -0.707957,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 1,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 70,\n",
+ " '1st_Road_Number': 4146,\n",
" 'Time': '17:27',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 14,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 2,\n",
- " 'Engine_Capacity_(CC)': 1596,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 1,\n",
+ " '2nd_Road_Number': 146,\n",
+ " 'Location_Northing_OSGR': 239710,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 488700,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 3,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 2,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 8,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1596,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': 10,\n",
- " 'Age_of_Vehicle': 4,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 9,\n",
- " 'Engine_Capacity_(CC)': 1598,\n",
+ " 'Age_Band_of_Driver': 6,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 8,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
+ " 'Age_of_Vehicle': 14,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 8,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 3,\n",
+ " 'Engine_Capacity_(CC)': 1598,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 10,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 4,\n",
+ " 'Vehicle_Manoeuvre': 3,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 2,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b6ec'),\n",
- " 'loc': {'coordinates': [-0.707957, 52.048652], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 3,\n",
- " '1st_Road_Number': 4146,\n",
+ " 'Junction_Detail': 1,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
+ " 'LSOA_of_Accident_Location': 'E01016785',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.048652,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S070052',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 3,\n",
" '2nd_Road_Class': 5,\n",
- " '2nd_Road_Number': 9011,\n",
- " 'Accident_Index': '201243S047122',\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 7,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.707957,\n",
+ " 'Junction_Control': 2,\n",
+ " 'Speed_limit': 70,\n",
+ " 'Date': '15/05/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 5, 15, 17, 27),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.707957, 52.048652]},\n",
+ " 'Weather_Conditions': 2},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b682'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 7,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '07/12/2012',\n",
- " 'Datetime': datetime.datetime(2012, 12, 7, 15, 16),\n",
- " 'Day_of_Week': 6,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 2,\n",
- " 'Junction_Detail': 1,\n",
- " 'LSOA_of_Accident_Location': 'E01016785',\n",
- " 'Latitude': 52.048757,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 488717,\n",
- " 'Location_Northing_OSGR': 239722,\n",
- " 'Longitude': -0.707706,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 1,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 70,\n",
+ " '1st_Road_Number': 4146,\n",
" 'Time': '15:16',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 5,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 6,\n",
+ " 'Road_Type': 1,\n",
+ " '2nd_Road_Number': 9011,\n",
+ " 'Location_Northing_OSGR': 239722,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 488717,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 6,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 6,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 8,\n",
+ " 'Skidding_and_Overturning': 0,\n",
+ " 'Towing_and_Articulation': 0,\n",
+ " 'Vehicle_Location-Restricted_Lane': 0,\n",
" 'Engine_Capacity_(CC)': 2204,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 6,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 8,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 1,\n",
+ " 'Age_of_Vehicle': 5,\n",
+ " 'Vehicle_Manoeuvre': 3,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 4,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 8,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 3,\n",
- " 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': 4,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 4,\n",
" 'Engine_Capacity_(CC)': 2204,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 7,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 2,\n",
- " 'Junction_Location': 8,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 1,\n",
- " 'Skidding_and_Overturning': 0,\n",
- " 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
- " 'Vehicle_Location-Restricted_Lane': 0,\n",
+ " 'Age_of_Vehicle': 4,\n",
" 'Vehicle_Manoeuvre': 18,\n",
- " 'Vehicle_Reference': 2,\n",
- " 'Vehicle_Type': 9,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b682'),\n",
- " 'loc': {'coordinates': [-0.707706, 52.048757], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 3,\n",
- " '1st_Road_Number': 4146,\n",
+ " 'Junction_Detail': 1,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
+ " 'LSOA_of_Accident_Location': 'E01016785',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.048757,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S047122',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 3,\n",
" '2nd_Road_Class': 5,\n",
- " '2nd_Road_Number': 146,\n",
- " 'Accident_Index': '201243S035122',\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 9,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.707706,\n",
+ " 'Junction_Control': 2,\n",
+ " 'Speed_limit': 70,\n",
+ " 'Date': '07/12/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 12, 7, 15, 16),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.707706, 52.048757]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b648'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 2,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 2,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 9,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 1}],\n",
- " 'Date': '12/12/2012',\n",
- " 'Datetime': datetime.datetime(2012, 12, 12, 17, 31),\n",
- " 'Day_of_Week': 4,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 1,\n",
- " 'LSOA_of_Accident_Location': 'E01016785',\n",
- " 'Latitude': 52.048517,\n",
- " 'Light_Conditions': 4,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 488699,\n",
- " 'Location_Northing_OSGR': 239695,\n",
- " 'Longitude': -0.707975,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 1,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 70,\n",
+ " '1st_Road_Number': 4146,\n",
" 'Time': '17:31',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 9,\n",
- " 'Age_of_Vehicle': 9,\n",
- " 'Driver_Home_Area_Type': 2,\n",
- " 'Driver_IMD_Decile': 9,\n",
- " 'Engine_Capacity_(CC)': 1598,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 1,\n",
+ " '2nd_Road_Number': 146,\n",
+ " 'Location_Northing_OSGR': 239695,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 488699,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 4,\n",
+ " 'Light_Conditions': 4,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 4,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 5,\n",
+ " 'Engine_Capacity_(CC)': 1598,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 4,\n",
" 'Age_Band_of_Driver': 9,\n",
- " 'Age_of_Vehicle': 5,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 6,\n",
- " 'Engine_Capacity_(CC)': 1198,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 2,\n",
- " 'Junction_Location': 8,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 2,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
+ " 'Age_of_Vehicle': 9,\n",
+ " 'Vehicle_Manoeuvre': 5,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 6,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 8,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1198,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 9,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 4,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 2,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 5,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b648'),\n",
- " 'loc': {'coordinates': [-0.707975, 52.048517], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 3,\n",
- " '1st_Road_Number': 4146,\n",
- " '2nd_Road_Class': -1,\n",
- " '2nd_Road_Number': 0,\n",
- " 'Accident_Index': '201243S130032',\n",
- " 'Accident_Severity': 2,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 7,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
- " 'Casualty_Class': 3,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 2,\n",
- " 'Casualty_Type': 0,\n",
- " 'Pedestrian_Location': 9,\n",
- " 'Pedestrian_Movement': 7,\n",
- " 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1}],\n",
- " 'Date': '28/03/2012',\n",
- " 'Datetime': datetime.datetime(2012, 3, 28, 23, 45),\n",
- " 'Day_of_Week': 4,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': -1,\n",
- " 'Junction_Detail': 0,\n",
+ " 'Junction_Detail': 1,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
" 'LSOA_of_Accident_Location': 'E01016785',\n",
- " 'Latitude': 52.050142,\n",
- " 'Light_Conditions': 5,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 488940,\n",
- " 'Location_Northing_OSGR': 239880,\n",
- " 'Longitude': -0.704414,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 1,\n",
" 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.048517,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S035122',\n",
" 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
- " 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 3,\n",
+ " '1st_Road_Class': 3,\n",
+ " '2nd_Road_Class': 5,\n",
+ " 'Accident_Severity': 3,\n",
" 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.707975,\n",
+ " 'Junction_Control': 4,\n",
" 'Speed_limit': 70,\n",
+ " 'Date': '12/12/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 12, 12, 17, 31),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.707975, 52.048517]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b817'),\n",
+ " 'Casualties': [{'Casualty_Severity': 2,\n",
+ " 'Casualty_Class': 3,\n",
+ " 'Casualty_Type': 0,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
+ " 'Pedestrian_Location': 9,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 7,\n",
+ " 'Pedestrian_Road_Maintenance_Worker': 0,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 7,\n",
+ " 'Sex_of_Casualty': 1}],\n",
+ " 'Road_Surface_Conditions': 1,\n",
+ " '1st_Road_Number': 4146,\n",
" 'Time': '23:45',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 8,\n",
- " 'Age_of_Vehicle': 1,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 2,\n",
- " 'Engine_Capacity_(CC)': 12419,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 1,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': 0,\n",
+ " 'Location_Northing_OSGR': 239880,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 1,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 488940,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 4,\n",
+ " 'Light_Conditions': 5,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 2,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 1,\n",
" 'Towing_and_Articulation': 1,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 12419,\n",
" 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 8,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
" 'Vehicle_Type': 21,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 1,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': 1,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b817'),\n",
- " 'loc': {'coordinates': [-0.704414, 52.050142], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 3,\n",
- " '1st_Road_Number': 4146,\n",
+ " 'Junction_Detail': 0,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
+ " 'LSOA_of_Accident_Location': 'E01016785',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.050142,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S130032',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 3,\n",
" '2nd_Road_Class': -1,\n",
- " '2nd_Road_Number': 0,\n",
- " 'Accident_Index': '201243S034092',\n",
" 'Accident_Severity': 2,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 4,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.704414,\n",
+ " 'Junction_Control': -1,\n",
+ " 'Speed_limit': 70,\n",
+ " 'Date': '28/03/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 3, 28, 23, 45),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.704414, 52.050142]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b643'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 2,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 2,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 4,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 6,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1},\n",
+ " {'Casualty_Severity': 2,\n",
" 'Casualty_Class': 3,\n",
- " 'Casualty_Home_Area_Type': 2,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 2,\n",
" 'Casualty_Type': 0,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 2,\n",
" 'Pedestrian_Location': 5,\n",
- " 'Pedestrian_Movement': 1,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1}],\n",
- " 'Date': '07/09/2012',\n",
- " 'Datetime': datetime.datetime(2012, 9, 7, 20, 40),\n",
- " 'Day_of_Week': 6,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': -1,\n",
- " 'Junction_Detail': 0,\n",
- " 'LSOA_of_Accident_Location': 'E01016785',\n",
- " 'Latitude': 52.046421,\n",
- " 'Light_Conditions': 4,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 489160,\n",
- " 'Location_Northing_OSGR': 239470,\n",
- " 'Longitude': -0.701313,\n",
- " 'Number_of_Casualties': 2,\n",
- " 'Number_of_Vehicles': 1,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 1,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 3,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 70,\n",
+ " '1st_Road_Number': 4146,\n",
" 'Time': '20:40',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 4,\n",
- " 'Age_of_Vehicle': 11,\n",
- " 'Driver_Home_Area_Type': 2,\n",
- " 'Driver_IMD_Decile': 9,\n",
- " 'Engine_Capacity_(CC)': 1199,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': 0,\n",
+ " 'Location_Northing_OSGR': 239470,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 1,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 489160,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 6,\n",
+ " 'Light_Conditions': 4,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1199,\n",
" 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 4,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 2,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 11,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b643'),\n",
- " 'loc': {'coordinates': [-0.701313, 52.046421], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 8007,\n",
- " '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1069,\n",
- " 'Accident_Index': '201243S101012',\n",
- " 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 3,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 2,\n",
+ " 'Junction_Detail': 0,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
+ " 'LSOA_of_Accident_Location': 'E01016785',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.046421,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S034092',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 3,\n",
+ " '2nd_Road_Class': -1,\n",
+ " 'Accident_Severity': 2,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.701313,\n",
+ " 'Junction_Control': -1,\n",
+ " 'Speed_limit': 70,\n",
+ " 'Date': '07/09/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 9, 7, 20, 40),\n",
+ " 'Number_of_Casualties': 2,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.701313, 52.046421]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b787'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 3,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 3,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 2,\n",
+ " 'Age_Band_of_Casualty': 3,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 7,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 1,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 4,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 4,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 1,\n",
+ " 'Age_Band_of_Casualty': 7,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 8,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 8,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2},\n",
- " {'Age_Band_of_Casualty': 8,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 1,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 1,\n",
+ " 'Age_Band_of_Casualty': 8,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '29/01/2012',\n",
- " 'Datetime': datetime.datetime(2012, 1, 29, 19, 0),\n",
- " 'Day_of_Week': 1,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 3,\n",
- " 'LSOA_of_Accident_Location': 'E01016782',\n",
- " 'Latitude': 52.036888,\n",
- " 'Light_Conditions': 4,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 488070,\n",
- " 'Location_Northing_OSGR': 238390,\n",
- " 'Longitude': -0.717481,\n",
- " 'Number_of_Casualties': 4,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 60,\n",
+ " '1st_Road_Number': 8007,\n",
" 'Time': '19:00',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 8,\n",
- " 'Age_of_Vehicle': 7,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 8,\n",
- " 'Engine_Capacity_(CC)': 2460,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 1069,\n",
+ " 'Location_Northing_OSGR': 238390,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 488070,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 1,\n",
+ " 'Light_Conditions': 4,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 8,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 8,\n",
- " 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Engine_Capacity_(CC)': 2460,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 1,\n",
" 'Age_Band_of_Driver': 8,\n",
- " 'Age_of_Vehicle': 6,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 9,\n",
- " 'Engine_Capacity_(CC)': 1198,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': 7,\n",
+ " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 1,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 1,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1198,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 8,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 6,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b787'),\n",
- " 'loc': {'coordinates': [-0.717481, 52.036888], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 8007,\n",
- " '2nd_Road_Class': -1,\n",
- " '2nd_Road_Number': 0,\n",
- " 'Accident_Index': '201243S036112',\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
+ " 'LSOA_of_Accident_Location': 'E01016782',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.036888,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S101012',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
+ " '2nd_Road_Class': 6,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 4,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.717481,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 60,\n",
+ " 'Date': '29/01/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 1, 29, 19, 0),\n",
+ " 'Number_of_Casualties': 4,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.717481, 52.036888]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b64e'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': -1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': -1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 4,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 5,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 3,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 3,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 5,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2},\n",
- " {'Age_Band_of_Casualty': 6,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 3,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 3,\n",
+ " 'Casualty_Reference': 3,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 3}],\n",
- " 'Date': '06/11/2012',\n",
- " 'Datetime': datetime.datetime(2012, 11, 6, 17, 53),\n",
- " 'Day_of_Week': 3,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': -1,\n",
- " 'Junction_Detail': 0,\n",
- " 'LSOA_of_Accident_Location': 'E01016782',\n",
- " 'Latitude': 52.037215,\n",
- " 'Light_Conditions': 4,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 488270,\n",
- " 'Location_Northing_OSGR': 238430,\n",
- " 'Longitude': -0.714556,\n",
- " 'Number_of_Casualties': 3,\n",
- " 'Number_of_Vehicles': 3,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 60,\n",
+ " '1st_Road_Number': 8007,\n",
" 'Time': '17:53',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 4,\n",
- " 'Age_of_Vehicle': 13,\n",
- " 'Driver_Home_Area_Type': -1,\n",
- " 'Driver_IMD_Decile': -1,\n",
- " 'Engine_Capacity_(CC)': 973,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 2,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 0,\n",
+ " 'Location_Northing_OSGR': 238430,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 3,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 488270,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 3,\n",
+ " 'Light_Conditions': 4,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': -1,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 973,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': 5,\n",
- " 'Age_of_Vehicle': 3,\n",
- " 'Driver_Home_Area_Type': 3,\n",
- " 'Driver_IMD_Decile': 7,\n",
- " 'Engine_Capacity_(CC)': 1798,\n",
+ " 'Age_Band_of_Driver': 4,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 2,\n",
- " 'Junction_Location': 0,\n",
+ " 'Driver_Home_Area_Type': -1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
+ " 'Age_of_Vehicle': 13,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 7,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 0,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 3,\n",
+ " 'Engine_Capacity_(CC)': 1798,\n",
" 'Vehicle_Reference': 2,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 11,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 8,\n",
- " 'Engine_Capacity_(CC)': 1596,\n",
+ " 'Age_Band_of_Driver': 5,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 2,\n",
- " 'Junction_Location': 0,\n",
+ " 'Driver_Home_Area_Type': 3,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
+ " 'Age_of_Vehicle': 3,\n",
+ " 'Vehicle_Manoeuvre': 3,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 8,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 0,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 3,\n",
+ " 'Engine_Capacity_(CC)': 1596,\n",
" 'Vehicle_Reference': 3,\n",
+ " 'Age_Band_of_Driver': 6,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 2,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 11,\n",
+ " 'Vehicle_Manoeuvre': 3,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b64e'),\n",
- " 'loc': {'coordinates': [-0.714556, 52.037215], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 149,\n",
- " '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 441,\n",
- " 'Accident_Index': '201243S108072',\n",
+ " 'Junction_Detail': 0,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
+ " 'LSOA_of_Accident_Location': 'E01016782',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.037215,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S036112',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
+ " '2nd_Road_Class': -1,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 11,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.714556,\n",
+ " 'Junction_Control': -1,\n",
+ " 'Speed_limit': 60,\n",
+ " 'Date': '06/11/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 11, 6, 17, 53),\n",
+ " 'Number_of_Casualties': 3,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.714556, 52.037215]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b7aa'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 11,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 8,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 8,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2},\n",
- " {'Age_Band_of_Casualty': 8,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 1,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 3,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 3,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 1,\n",
+ " 'Age_Band_of_Casualty': 8,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2},\n",
- " {'Age_Band_of_Casualty': 7,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 2,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 4,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 4,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 2,\n",
+ " 'Age_Band_of_Casualty': 7,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '25/07/2012',\n",
- " 'Datetime': datetime.datetime(2012, 7, 25, 17, 55),\n",
- " 'Day_of_Week': 4,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 3,\n",
- " 'LSOA_of_Accident_Location': 'E01016712',\n",
- " 'Latitude': 52.019861,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 488310,\n",
- " 'Location_Northing_OSGR': 236500,\n",
- " 'Longitude': -0.71447,\n",
- " 'Number_of_Casualties': 4,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 3,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 70,\n",
+ " '1st_Road_Number': 149,\n",
" 'Time': '17:55',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 11,\n",
- " 'Age_of_Vehicle': 10,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 3,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': 441,\n",
+ " 'Location_Northing_OSGR': 236500,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 488310,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 4,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 3,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 8,\n",
+ " 'Skidding_and_Overturning': 0,\n",
+ " 'Towing_and_Articulation': 0,\n",
+ " 'Vehicle_Location-Restricted_Lane': 0,\n",
" 'Engine_Capacity_(CC)': 1299,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 11,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 8,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
+ " 'Age_of_Vehicle': 10,\n",
+ " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 7,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 9,\n",
- " 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 8,\n",
- " 'Age_of_Vehicle': 11,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 7,\n",
" 'Engine_Capacity_(CC)': 1242,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 8,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 1,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 2,\n",
- " 'Junction_Location': 1,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
- " 'Skidding_and_Overturning': 0,\n",
- " 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
- " 'Vehicle_Location-Restricted_Lane': 0,\n",
+ " 'Age_of_Vehicle': 11,\n",
" 'Vehicle_Manoeuvre': 18,\n",
- " 'Vehicle_Reference': 2,\n",
- " 'Vehicle_Type': 9,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b7aa'),\n",
- " 'loc': {'coordinates': [-0.71447, 52.019861], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 149,\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
+ " 'LSOA_of_Accident_Location': 'E01016712',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.019861,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S108072',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
" '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 441,\n",
- " 'Accident_Index': '201243S100102',\n",
- " 'Accident_Severity': 1,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 6,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Accident_Severity': 3,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.71447,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 70,\n",
+ " 'Date': '25/07/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 7, 25, 17, 55),\n",
+ " 'Number_of_Casualties': 4,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.71447, 52.019861]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b785'),\n",
+ " 'Casualties': [{'Casualty_Severity': 2,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 2,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 5,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1},\n",
+ " {'Casualty_Severity': 1,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 1,\n",
" 'Casualty_Type': 5,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 5,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '24/10/2012',\n",
- " 'Datetime': datetime.datetime(2012, 10, 24, 20, 0),\n",
- " 'Day_of_Week': 4,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 3,\n",
- " 'LSOA_of_Accident_Location': 'E01016712',\n",
- " 'Latitude': 52.019951,\n",
- " 'Light_Conditions': 4,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 488310,\n",
- " 'Location_Northing_OSGR': 236510,\n",
- " 'Longitude': -0.714468,\n",
- " 'Number_of_Casualties': 2,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 3,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 70,\n",
+ " '1st_Road_Number': 149,\n",
" 'Time': '20:00',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 4,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 12,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 3,\n",
- " 'Engine_Capacity_(CC)': 1360,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': 441,\n",
+ " 'Location_Northing_OSGR': 236510,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 488310,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 4,\n",
+ " 'Light_Conditions': 4,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 3,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 8,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 5,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Engine_Capacity_(CC)': 1360,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 5,\n",
- " 'Age_of_Vehicle': 13,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 8,\n",
- " 'Engine_Capacity_(CC)': 600,\n",
+ " 'Age_Band_of_Driver': 6,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 4,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 8,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
+ " 'Age_of_Vehicle': 12,\n",
+ " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 8,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 8,\n",
" 'Skidding_and_Overturning': 5,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 600,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 5,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
" 'Vehicle_Type': 5,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 13,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 2,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b785'),\n",
- " 'loc': {'coordinates': [-0.714468, 52.019951], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 3,\n",
- " '1st_Road_Number': 421,\n",
- " '2nd_Road_Class': -1,\n",
- " '2nd_Road_Number': 0,\n",
- " 'Accident_Index': '201243S095122',\n",
- " 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 2,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 10,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
+ " 'LSOA_of_Accident_Location': 'E01016712',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.019951,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S100102',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
+ " '2nd_Road_Class': 6,\n",
+ " 'Accident_Severity': 1,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.714468,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 70,\n",
+ " 'Date': '24/10/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 10, 24, 20, 0),\n",
+ " 'Number_of_Casualties': 2,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.714468, 52.019951]},\n",
+ " 'Weather_Conditions': 2},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b76f'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': -1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': -1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 10,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '19/12/2012',\n",
- " 'Datetime': datetime.datetime(2012, 12, 19, 21, 15),\n",
- " 'Day_of_Week': 4,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': -1,\n",
- " 'Junction_Detail': 0,\n",
- " 'LSOA_of_Accident_Location': 'E01016784',\n",
- " 'Latitude': 52.027272,\n",
- " 'Light_Conditions': 4,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 488224,\n",
- " 'Location_Northing_OSGR': 237323,\n",
- " 'Longitude': -0.715511,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 3,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 70,\n",
+ " '1st_Road_Number': 421,\n",
" 'Time': '21:15',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': 5,\n",
- " 'Age_of_Vehicle': 11,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 7,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': 0,\n",
+ " 'Location_Northing_OSGR': 237323,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 2,\n",
+ " 'Location_Easting_OSGR': 488224,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 4,\n",
+ " 'Light_Conditions': 4,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 7,\n",
+ " 'Vehicle_Leaving_Carriageway': 1,\n",
+ " 'Junction_Location': 0,\n",
+ " 'Skidding_and_Overturning': 0,\n",
+ " 'Towing_and_Articulation': 0,\n",
+ " 'Vehicle_Location-Restricted_Lane': 0,\n",
" 'Engine_Capacity_(CC)': 1598,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 5,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 4,\n",
+ " '1st_Point_of_Impact': 2,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 0,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
+ " 'Age_of_Vehicle': 11,\n",
+ " 'Vehicle_Manoeuvre': 2,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': -1,\n",
+ " 'Vehicle_Leaving_Carriageway': 1,\n",
+ " 'Junction_Location': 0,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 1,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 2,\n",
- " 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 10,\n",
- " 'Age_of_Vehicle': 2,\n",
- " 'Driver_Home_Area_Type': -1,\n",
- " 'Driver_IMD_Decile': -1,\n",
" 'Engine_Capacity_(CC)': 1461,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 10,\n",
" 'Hit_Object_in_Carriageway': 4,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 0,\n",
+ " 'Driver_Home_Area_Type': -1,\n",
" 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 1,\n",
- " 'Skidding_and_Overturning': 0,\n",
- " 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 1,\n",
- " 'Vehicle_Location-Restricted_Lane': 0,\n",
+ " 'Age_of_Vehicle': 2,\n",
" 'Vehicle_Manoeuvre': 18,\n",
- " 'Vehicle_Reference': 2,\n",
- " 'Vehicle_Type': 9,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 2,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b76f'),\n",
- " 'loc': {'coordinates': [-0.715511, 52.027272], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 9009,\n",
- " '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1072,\n",
- " 'Accident_Index': '201243S079102',\n",
+ " 'Junction_Detail': 0,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
+ " 'LSOA_of_Accident_Location': 'E01016784',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.027272,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S095122',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 3,\n",
+ " '2nd_Road_Class': -1,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 7,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.715511,\n",
+ " 'Junction_Control': -1,\n",
+ " 'Speed_limit': 70,\n",
+ " 'Date': '19/12/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 12, 19, 21, 15),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.715511, 52.027272]},\n",
+ " 'Weather_Conditions': 2},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b719'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 5,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 7,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1}],\n",
- " 'Date': '18/10/2012',\n",
- " 'Datetime': datetime.datetime(2012, 10, 18, 15, 45),\n",
- " 'Day_of_Week': 5,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 1,\n",
- " 'LSOA_of_Accident_Location': 'E01016820',\n",
- " 'Latitude': 52.028407,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 488830,\n",
- " 'Location_Northing_OSGR': 237460,\n",
- " 'Longitude': -0.706646,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 1,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 60,\n",
+ " '1st_Road_Number': 9009,\n",
" 'Time': '15:45',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 4,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': 6,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 8,\n",
- " 'Engine_Capacity_(CC)': 998,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 2,\n",
- " 'Journey_Purpose_of_Driver': 2,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 1072,\n",
+ " 'Location_Northing_OSGR': 237460,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 1,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 488830,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 5,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 8,\n",
+ " 'Vehicle_Leaving_Carriageway': 2,\n",
" 'Junction_Location': 1,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 1,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 2,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 998,\n",
" 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 7,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 2,\n",
+ " '1st_Point_of_Impact': 4,\n",
" 'Vehicle_Type': 5,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 2,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 6,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b719'),\n",
- " 'loc': {'coordinates': [-0.706646, 52.028407], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 9009,\n",
+ " 'Junction_Detail': 1,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
+ " 'LSOA_of_Accident_Location': 'E01016820',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.028407,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S079102',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
" '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1072,\n",
- " 'Accident_Index': '201243S142102',\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': -1,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.706646,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 60,\n",
+ " 'Date': '18/10/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 10, 18, 15, 45),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.706646, 52.028407]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b83e'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 1,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': -1,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '30/10/2012',\n",
- " 'Datetime': datetime.datetime(2012, 10, 30, 17, 0),\n",
- " 'Day_of_Week': 3,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 1,\n",
- " 'LSOA_of_Accident_Location': 'E01016820',\n",
- " 'Latitude': 52.028589,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 488820,\n",
- " 'Location_Northing_OSGR': 237480,\n",
- " 'Longitude': -0.706786,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 60,\n",
+ " '1st_Road_Number': 9009,\n",
" 'Time': '17:00',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 9,\n",
- " 'Age_of_Vehicle': 2,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 5,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 1072,\n",
+ " 'Location_Northing_OSGR': 237480,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 488820,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 3,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 5,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 4,\n",
+ " 'Skidding_and_Overturning': 0,\n",
+ " 'Towing_and_Articulation': 0,\n",
+ " 'Vehicle_Location-Restricted_Lane': 0,\n",
" 'Engine_Capacity_(CC)': 1968,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 9,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 8,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 1,\n",
- " 'Junction_Location': 4,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 1,\n",
+ " 'Age_of_Vehicle': 2,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 2,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 8,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
- " 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 8,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 4,\n",
- " 'Age_Band_of_Driver': -1,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 2,\n",
" 'Engine_Capacity_(CC)': -1,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': -1,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 4,\n",
+ " 'Vehicle_Type': 1,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 2,\n",
- " 'Junction_Location': 8,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': -1,\n",
- " 'Sex_of_Driver': 1,\n",
- " 'Skidding_and_Overturning': 0,\n",
- " 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
- " 'Vehicle_Location-Restricted_Lane': 0,\n",
+ " 'Age_of_Vehicle': -1,\n",
" 'Vehicle_Manoeuvre': 9,\n",
- " 'Vehicle_Reference': 2,\n",
- " 'Vehicle_Type': 1,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b83e'),\n",
- " 'loc': {'coordinates': [-0.706786, 52.028589], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 149,\n",
+ " 'Junction_Detail': 1,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
+ " 'LSOA_of_Accident_Location': 'E01016820',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.028589,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S142102',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
" '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1069,\n",
- " 'Accident_Index': '201243S127102',\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 7,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.706786,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 60,\n",
+ " 'Date': '30/10/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 10, 30, 17, 0),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.706786, 52.028589]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b80f'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 1,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 7,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '26/10/2012',\n",
- " 'Datetime': datetime.datetime(2012, 10, 26, 10, 10),\n",
- " 'Day_of_Week': 6,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 2,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 3,\n",
- " 'LSOA_of_Accident_Location': 'E01016820',\n",
- " 'Latitude': 52.020963,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 488730,\n",
- " 'Location_Northing_OSGR': 236630,\n",
- " 'Longitude': -0.708318,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 60,\n",
+ " '1st_Road_Number': 149,\n",
" 'Time': '10:10',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': -1,\n",
- " 'Age_of_Vehicle': 11,\n",
- " 'Driver_Home_Area_Type': -1,\n",
- " 'Driver_IMD_Decile': -1,\n",
- " 'Engine_Capacity_(CC)': 2800,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 1069,\n",
+ " 'Location_Northing_OSGR': 236630,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 488730,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 6,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': -1,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 6,\n",
- " 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 5,\n",
+ " 'Engine_Capacity_(CC)': 2800,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 10,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 3,\n",
- " 'Engine_Capacity_(CC)': -1,\n",
+ " 'Age_Band_of_Driver': -1,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 10,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': -1,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': 11,\n",
+ " 'Vehicle_Manoeuvre': 5,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 3,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 1,\n",
- " 'Propulsion_Code': -1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': -1,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 7,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
" 'Vehicle_Type': 1,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': -1,\n",
+ " 'Age_of_Vehicle': -1,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b80f'),\n",
- " 'loc': {'coordinates': [-0.708318, 52.020963], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 40,\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
+ " 'LSOA_of_Accident_Location': 'E01016820',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.020963,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 2,\n",
+ " 'Accident_Index': '201243S127102',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
" '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1072,\n",
- " 'Accident_Index': '201243S060032',\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 7,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.708318,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 60,\n",
+ " 'Date': '26/10/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 10, 26, 10, 10),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.708318, 52.020963]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b6ba'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 7,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '12/03/2012',\n",
- " 'Datetime': datetime.datetime(2012, 3, 12, 12, 30),\n",
- " 'Day_of_Week': 2,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 3,\n",
- " 'LSOA_of_Accident_Location': 'E01016820',\n",
- " 'Latitude': 52.020444,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 489160,\n",
- " 'Location_Northing_OSGR': 236580,\n",
- " 'Longitude': -0.702066,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 60,\n",
+ " '1st_Road_Number': 40,\n",
" 'Time': '12:30',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 4,\n",
- " 'Age_Band_of_Driver': 4,\n",
- " 'Age_of_Vehicle': 10,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 6,\n",
- " 'Engine_Capacity_(CC)': 1242,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 2,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 1072,\n",
+ " 'Location_Northing_OSGR': 236580,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 489160,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 2,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 6,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 6,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Engine_Capacity_(CC)': 1242,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': 3,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 10,\n",
- " 'Engine_Capacity_(CC)': 1360,\n",
+ " 'Age_Band_of_Driver': 4,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 4,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 2,\n",
- " 'Junction_Location': 1,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
+ " 'Age_of_Vehicle': 10,\n",
+ " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 10,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1360,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 7,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 2,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 3,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b6ba'),\n",
- " 'loc': {'coordinates': [-0.702066, 52.020444], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 40,\n",
- " '2nd_Road_Class': -1,\n",
- " '2nd_Road_Number': 0,\n",
- " 'Accident_Index': '201243S027112',\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016820',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.020444,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S060032',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
+ " '2nd_Road_Class': 6,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 3,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.702066,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 60,\n",
+ " 'Date': '12/03/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 3, 12, 12, 30),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.702066, 52.020444]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b61f'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 3,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 0,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 5,\n",
- " 'Pedestrian_Movement': 1,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 3,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1}],\n",
- " 'Date': '08/11/2012',\n",
- " 'Datetime': datetime.datetime(2012, 11, 8, 7, 40),\n",
- " 'Day_of_Week': 5,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': -1,\n",
- " 'Junction_Detail': 0,\n",
- " 'LSOA_of_Accident_Location': 'E01016820',\n",
- " 'Latitude': 52.019542,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 489180,\n",
- " 'Location_Northing_OSGR': 236480,\n",
- " 'Longitude': -0.7018,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 1,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 1,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 60,\n",
+ " '1st_Road_Number': 40,\n",
" 'Time': '07:40',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 9,\n",
- " 'Engine_Capacity_(CC)': -1,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 2,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 0,\n",
+ " 'Location_Northing_OSGR': 236480,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 1,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 489180,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 5,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': -1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': -1,\n",
" 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 7,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 2,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': -1,\n",
+ " 'Age_of_Vehicle': -1,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b61f'),\n",
- " 'loc': {'coordinates': [-0.7018, 52.019542], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 3,\n",
- " '1st_Road_Number': 421,\n",
+ " 'Junction_Detail': 0,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016820',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.019542,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S027112',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
" '2nd_Road_Class': -1,\n",
- " '2nd_Road_Number': 0,\n",
- " 'Accident_Index': '201243S078052',\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 7,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.7018,\n",
+ " 'Junction_Control': -1,\n",
+ " 'Speed_limit': 60,\n",
+ " 'Date': '08/11/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 11, 8, 7, 40),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.7018, 52.019542]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b714'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 7,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 9,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 9,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '15/05/2012',\n",
- " 'Datetime': datetime.datetime(2012, 5, 15, 22, 38),\n",
- " 'Day_of_Week': 3,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': -1,\n",
- " 'Junction_Detail': 0,\n",
- " 'LSOA_of_Accident_Location': 'E01016821',\n",
- " 'Latitude': 52.033269,\n",
- " 'Light_Conditions': 4,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 489340,\n",
- " 'Location_Northing_OSGR': 238010,\n",
- " 'Longitude': -0.69907,\n",
- " 'Number_of_Casualties': 2,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 3,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 70,\n",
+ " '1st_Road_Number': 421,\n",
" 'Time': '22:38',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': 10,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 5,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': 0,\n",
+ " 'Location_Northing_OSGR': 238010,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 489340,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 3,\n",
+ " 'Light_Conditions': 4,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 5,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 0,\n",
+ " 'Skidding_and_Overturning': 0,\n",
+ " 'Towing_and_Articulation': 0,\n",
+ " 'Vehicle_Location-Restricted_Lane': 0,\n",
" 'Engine_Capacity_(CC)': 1598,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 7,\n",
" 'Hit_Object_in_Carriageway': 4,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 1,\n",
- " 'Junction_Location': 0,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
+ " 'Age_of_Vehicle': 10,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 2,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 0,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
- " 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': 9,\n",
- " 'Age_of_Vehicle': 6,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 2,\n",
" 'Engine_Capacity_(CC)': 1560,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 9,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 0,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 1,\n",
- " 'Skidding_and_Overturning': 0,\n",
- " 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
- " 'Vehicle_Location-Restricted_Lane': 0,\n",
+ " 'Age_of_Vehicle': 6,\n",
" 'Vehicle_Manoeuvre': 2,\n",
- " 'Vehicle_Reference': 2,\n",
- " 'Vehicle_Type': 9,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b714'),\n",
- " 'loc': {'coordinates': [-0.69907, 52.033269], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 3,\n",
- " '1st_Road_Number': 421,\n",
- " '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1103,\n",
- " 'Accident_Index': '201243S022092',\n",
- " 'Accident_Severity': 1,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 6,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Junction_Detail': 0,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016821',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.033269,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S078052',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 3,\n",
+ " '2nd_Road_Class': -1,\n",
+ " 'Accident_Severity': 3,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.69907,\n",
+ " 'Junction_Control': -1,\n",
+ " 'Speed_limit': 70,\n",
+ " 'Date': '15/05/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 5, 15, 22, 38),\n",
+ " 'Number_of_Casualties': 2,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.69907, 52.033269]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b609'),\n",
+ " 'Casualties': [{'Casualty_Severity': 1,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 1,\n",
" 'Casualty_Type': 5,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1}],\n",
- " 'Date': '07/09/2012',\n",
- " 'Datetime': datetime.datetime(2012, 9, 7, 18, 15),\n",
- " 'Day_of_Week': 6,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 3,\n",
- " 'LSOA_of_Accident_Location': 'E01016782',\n",
- " 'Latitude': 52.032691,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 489020,\n",
- " 'Location_Northing_OSGR': 237940,\n",
- " 'Longitude': -0.703752,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 3,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 70,\n",
+ " '1st_Road_Number': 421,\n",
" 'Time': '18:15',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 2,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 8,\n",
- " 'Engine_Capacity_(CC)': 599,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 2,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': 1103,\n",
+ " 'Location_Northing_OSGR': 237940,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 489020,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 6,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 8,\n",
+ " 'Vehicle_Leaving_Carriageway': 1,\n",
" 'Junction_Location': 1,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 2,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 1,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 599,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 5,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 0,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': 5,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 9,\n",
- " 'Engine_Capacity_(CC)': 749,\n",
+ " 'Age_Band_of_Driver': 6,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 2,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 5,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 1,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
+ " 'Age_of_Vehicle': 2,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 749,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 7,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 0,\n",
" 'Vehicle_Type': 5,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 5,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b609'),\n",
- " 'loc': {'coordinates': [-0.703752, 52.032691], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 3,\n",
- " '1st_Road_Number': 421,\n",
- " '2nd_Road_Class': 5,\n",
- " '2nd_Road_Number': 9009,\n",
- " 'Accident_Index': '201243S027032',\n",
- " 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 6,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
- " 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 3,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
- " 'Casualty_Type': 9,\n",
- " 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
- " 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '03/03/2012',\n",
- " 'Datetime': datetime.datetime(2012, 3, 3, 12, 50),\n",
- " 'Day_of_Week': 7,\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016782',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.032691,\n",
+ " 'Local_Authority_(District)': 479,\n",
" 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S022092',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 3,\n",
+ " '2nd_Road_Class': 6,\n",
+ " 'Accident_Severity': 1,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.703752,\n",
" 'Junction_Control': 4,\n",
- " 'Junction_Detail': 1,\n",
- " 'LSOA_of_Accident_Location': 'E01016820',\n",
- " 'Latitude': 52.031465,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 488820,\n",
- " 'Location_Northing_OSGR': 237800,\n",
- " 'Longitude': -0.706703,\n",
+ " 'Speed_limit': 70,\n",
+ " 'Date': '07/09/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 9, 7, 18, 15),\n",
" 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.703752, 52.032691]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b61b'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
+ " 'Casualty_Class': 1,\n",
+ " 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 3,\n",
+ " 'Pedestrian_Location': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
+ " 'Pedestrian_Road_Maintenance_Worker': 0,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 1,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 70,\n",
+ " '1st_Road_Number': 421,\n",
" 'Time': '12:50',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': 14,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 5,\n",
- " 'Engine_Capacity_(CC)': 1896,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 1,\n",
+ " '2nd_Road_Number': 9009,\n",
+ " 'Location_Northing_OSGR': 237800,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 488820,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 7,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 5,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 1,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1896,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 8,\n",
- " 'Driver_Home_Area_Type': 3,\n",
- " 'Driver_IMD_Decile': 8,\n",
- " 'Engine_Capacity_(CC)': 1560,\n",
+ " 'Age_Band_of_Driver': 7,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 14,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 8,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 1,\n",
- " 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 3,\n",
+ " 'Engine_Capacity_(CC)': 1560,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 6,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 3,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': 8,\n",
+ " 'Vehicle_Manoeuvre': 3,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b61b'),\n",
- " 'loc': {'coordinates': [-0.706703, 52.031465], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 3,\n",
- " '1st_Road_Number': 421,\n",
- " '2nd_Road_Class': -1,\n",
- " '2nd_Road_Number': 0,\n",
- " 'Accident_Index': '201243S127032',\n",
+ " 'Junction_Detail': 1,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
+ " 'LSOA_of_Accident_Location': 'E01016820',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.031465,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S027032',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 3,\n",
+ " '2nd_Road_Class': 5,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 6,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.706703,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 70,\n",
+ " 'Date': '03/03/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 3, 3, 12, 50),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.706703, 52.031465]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b80d'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 3,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 5,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 3,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1}],\n",
- " 'Date': '26/03/2012',\n",
- " 'Datetime': datetime.datetime(2012, 3, 26, 13, 3),\n",
- " 'Day_of_Week': 2,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': -1,\n",
- " 'Junction_Detail': 0,\n",
- " 'LSOA_of_Accident_Location': 'E01016820',\n",
- " 'Latitude': 52.031117,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 488750,\n",
- " 'Location_Northing_OSGR': 237760,\n",
- " 'Longitude': -0.707734,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 1,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 3,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 70,\n",
+ " '1st_Road_Number': 421,\n",
" 'Time': '13:03',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 3,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': 3,\n",
- " 'Driver_IMD_Decile': 9,\n",
- " 'Engine_Capacity_(CC)': -1,\n",
- " 'Hit_Object_in_Carriageway': 10,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': 0,\n",
+ " 'Location_Northing_OSGR': 237760,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 1,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 488750,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 2,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': -1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 1,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': -1,\n",
" 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 6,\n",
+ " 'Hit_Object_in_Carriageway': 10,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 3,\n",
" 'Vehicle_Type': 5,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 3,\n",
+ " 'Propulsion_Code': -1,\n",
+ " 'Age_of_Vehicle': -1,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b80d'),\n",
- " 'loc': {'coordinates': [-0.707734, 52.031117], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 3,\n",
- " '1st_Road_Number': 421,\n",
- " '2nd_Road_Class': 5,\n",
- " '2nd_Road_Number': 9010,\n",
- " 'Accident_Index': '201243S052092',\n",
+ " 'Junction_Detail': 0,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
+ " 'LSOA_of_Accident_Location': 'E01016820',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.031117,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S127032',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 3,\n",
+ " '2nd_Road_Class': -1,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 6,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.707734,\n",
+ " 'Junction_Control': -1,\n",
+ " 'Speed_limit': 70,\n",
+ " 'Date': '26/03/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 3, 26, 13, 3),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.707734, 52.031117]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b695'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 1,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '14/09/2012',\n",
- " 'Datetime': datetime.datetime(2012, 9, 14, 22, 25),\n",
- " 'Day_of_Week': 6,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 1,\n",
- " 'LSOA_of_Accident_Location': 'E01016782',\n",
- " 'Latitude': 52.031386,\n",
- " 'Light_Conditions': 4,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 488750,\n",
- " 'Location_Northing_OSGR': 237790,\n",
- " 'Longitude': -0.707726,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 3,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 70,\n",
+ " '1st_Road_Number': 421,\n",
" 'Time': '22:25',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': 1,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 2,\n",
- " 'Engine_Capacity_(CC)': 998,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': 9010,\n",
+ " 'Location_Northing_OSGR': 237790,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 488750,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 6,\n",
+ " 'Light_Conditions': 4,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 2,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 4,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 5,\n",
+ " 'Engine_Capacity_(CC)': 998,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 4,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 9,\n",
- " 'Engine_Capacity_(CC)': -1,\n",
+ " 'Age_Band_of_Driver': 7,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 1,\n",
+ " 'Vehicle_Manoeuvre': 5,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 8,\n",
- " 'Propulsion_Code': -1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': -1,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 6,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 4,\n",
" 'Vehicle_Type': 1,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': -1,\n",
+ " 'Age_of_Vehicle': -1,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b695'),\n",
- " 'loc': {'coordinates': [-0.707726, 52.031386], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 8007,\n",
- " '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1103,\n",
- " 'Accident_Index': '201243S001042',\n",
+ " 'Junction_Detail': 1,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
+ " 'LSOA_of_Accident_Location': 'E01016782',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.031386,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S052092',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 3,\n",
+ " '2nd_Road_Class': 5,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 7,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.707726,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 70,\n",
+ " 'Date': '14/09/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 9, 14, 22, 25),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.707726, 52.031386]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b5b7'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 7,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 5,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 5,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '02/04/2012',\n",
- " 'Datetime': datetime.datetime(2012, 4, 2, 21, 45),\n",
- " 'Day_of_Week': 2,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 3,\n",
- " 'LSOA_of_Accident_Location': 'E01016782',\n",
- " 'Latitude': 52.038242,\n",
- " 'Light_Conditions': 4,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 489160,\n",
- " 'Location_Northing_OSGR': 238560,\n",
- " 'Longitude': -0.70155,\n",
- " 'Number_of_Casualties': 2,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 60,\n",
+ " '1st_Road_Number': 8007,\n",
" 'Time': '21:45',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': 14,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 9,\n",
- " 'Engine_Capacity_(CC)': 999,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 1103,\n",
+ " 'Location_Northing_OSGR': 238560,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 489160,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 2,\n",
+ " 'Light_Conditions': 4,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 6,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Engine_Capacity_(CC)': 999,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 5,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 4,\n",
- " 'Engine_Capacity_(CC)': -1,\n",
+ " 'Age_Band_of_Driver': 7,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 14,\n",
+ " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 4,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 1,\n",
- " 'Propulsion_Code': -1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': -1,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 5,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': -1,\n",
+ " 'Age_of_Vehicle': -1,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b5b7'),\n",
- " 'loc': {'coordinates': [-0.70155, 52.038242], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 3,\n",
- " '1st_Road_Number': 4146,\n",
- " '2nd_Road_Class': 5,\n",
- " '2nd_Road_Number': 8007,\n",
- " 'Accident_Index': '201243S104012',\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016782',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.038242,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S001042',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
+ " '2nd_Road_Class': 6,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 6,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.70155,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 60,\n",
+ " 'Date': '02/04/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 4, 2, 21, 45),\n",
+ " 'Number_of_Casualties': 2,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.70155, 52.038242]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b791'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '30/01/2012',\n",
- " 'Datetime': datetime.datetime(2012, 1, 30, 9, 29),\n",
- " 'Day_of_Week': 2,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 1,\n",
- " 'LSOA_of_Accident_Location': 'E01016785',\n",
- " 'Latitude': 52.040315,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 489680,\n",
- " 'Location_Northing_OSGR': 238800,\n",
- " 'Longitude': -0.693908,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 1,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 70,\n",
+ " '1st_Road_Number': 4146,\n",
" 'Time': '09:29',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 4,\n",
- " 'Age_of_Vehicle': 11,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 8,\n",
- " 'Engine_Capacity_(CC)': 1124,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 2,\n",
+ " 'Road_Type': 1,\n",
+ " '2nd_Road_Number': 8007,\n",
+ " 'Location_Northing_OSGR': 238800,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 489680,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 2,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 8,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 1,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1124,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 6,\n",
- " 'Engine_Capacity_(CC)': -1,\n",
+ " 'Age_Band_of_Driver': 4,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 2,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 11,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 6,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 1,\n",
- " 'Propulsion_Code': -1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 3,\n",
+ " 'Engine_Capacity_(CC)': -1,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 6,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
" 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b791'),\n",
- " 'loc': {'coordinates': [-0.693908, 52.040315], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 3,\n",
- " '1st_Road_Number': 4146,\n",
- " '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1103,\n",
- " 'Accident_Index': '201243S059032',\n",
- " 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 5,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
- " 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
- " 'Casualty_Type': 5,\n",
- " 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
- " 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '11/03/2012',\n",
- " 'Datetime': datetime.datetime(2012, 3, 11, 14, 8),\n",
- " 'Day_of_Week': 1,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 2,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': -1,\n",
+ " 'Age_of_Vehicle': -1,\n",
+ " 'Vehicle_Manoeuvre': 3,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
" 'Junction_Detail': 1,\n",
- " 'LSOA_of_Accident_Location': 'E01016783',\n",
- " 'Latitude': 52.04031,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 489710,\n",
- " 'Location_Northing_OSGR': 238800,\n",
- " 'Longitude': -0.693471,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016785',\n",
" 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.040315,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S104012',\n",
" 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
- " 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 1,\n",
+ " '1st_Road_Class': 3,\n",
+ " '2nd_Road_Class': 5,\n",
+ " 'Accident_Severity': 3,\n",
" 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.693908,\n",
+ " 'Junction_Control': 4,\n",
" 'Speed_limit': 70,\n",
+ " 'Date': '30/01/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 1, 30, 9, 29),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.693908, 52.040315]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b6b4'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
+ " 'Casualty_Class': 1,\n",
+ " 'Casualty_Type': 5,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
+ " 'Pedestrian_Location': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 5,\n",
+ " 'Pedestrian_Road_Maintenance_Worker': 0,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
+ " 'Road_Surface_Conditions': 1,\n",
+ " '1st_Road_Number': 4146,\n",
" 'Time': '14:08',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 3,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 10,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 7,\n",
- " 'Engine_Capacity_(CC)': 1798,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 1,\n",
+ " '2nd_Road_Number': 1103,\n",
+ " 'Location_Northing_OSGR': 238800,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 489710,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 1,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 7,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 4,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Engine_Capacity_(CC)': 1798,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 4,\n",
- " 'Age_Band_of_Driver': 5,\n",
- " 'Age_of_Vehicle': 6,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 3,\n",
- " 'Engine_Capacity_(CC)': 749,\n",
+ " 'Age_Band_of_Driver': 6,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 3,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 8,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
+ " 'Age_of_Vehicle': 10,\n",
+ " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 3,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 8,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Engine_Capacity_(CC)': 749,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 5,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 4,\n",
" 'Vehicle_Type': 5,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 6,\n",
+ " 'Vehicle_Manoeuvre': 9,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b6b4'),\n",
- " 'loc': {'coordinates': [-0.693471, 52.04031], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 3,\n",
- " '1st_Road_Number': 4146,\n",
+ " 'Junction_Detail': 1,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016783',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.04031,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S059032',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 3,\n",
" '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1103,\n",
- " 'Accident_Index': '201243S025052',\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 6,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.693471,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 70,\n",
+ " 'Date': '11/03/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 3, 11, 14, 8),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.693471, 52.04031]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b616'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '05/05/2012',\n",
- " 'Datetime': datetime.datetime(2012, 5, 5, 17, 28),\n",
- " 'Day_of_Week': 7,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 3,\n",
- " 'LSOA_of_Accident_Location': 'E01016783',\n",
- " 'Latitude': 52.038236,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 489750,\n",
- " 'Location_Northing_OSGR': 238570,\n",
- " 'Longitude': -0.692948,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 3,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 70,\n",
+ " '1st_Road_Number': 4146,\n",
" 'Time': '17:28',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 5,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 3,\n",
- " 'Engine_Capacity_(CC)': 1910,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 1,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': 1103,\n",
+ " 'Location_Northing_OSGR': 238570,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 489750,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 7,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 3,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 8,\n",
- " 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Engine_Capacity_(CC)': 1910,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 4,\n",
" 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 7,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 9,\n",
- " 'Engine_Capacity_(CC)': 1229,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 2,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 1,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': 5,\n",
+ " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 1,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1229,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 6,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 4,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 2,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 7,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b616'),\n",
- " 'loc': {'coordinates': [-0.692948, 52.038236], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 3,\n",
- " '1st_Road_Number': 4146,\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016783',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.038236,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S025052',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 3,\n",
" '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1103,\n",
- " 'Accident_Index': '201243S069052',\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 8,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.692948,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 70,\n",
+ " 'Date': '05/05/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 5, 5, 17, 28),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.692948, 52.038236]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b6e6'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 8,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '11/05/2012',\n",
- " 'Datetime': datetime.datetime(2012, 5, 11, 14, 5),\n",
- " 'Day_of_Week': 6,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 1,\n",
- " 'LSOA_of_Accident_Location': 'E01016783',\n",
- " 'Latitude': 52.040309,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 489720,\n",
- " 'Location_Northing_OSGR': 238800,\n",
- " 'Longitude': -0.693325,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 1,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 70,\n",
+ " '1st_Road_Number': 4146,\n",
" 'Time': '14:05',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 9,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': -1,\n",
- " 'Driver_IMD_Decile': -1,\n",
+ " 'Road_Type': 1,\n",
+ " '2nd_Road_Number': 1103,\n",
+ " 'Location_Northing_OSGR': 238800,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 489720,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 6,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': -1,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 1,\n",
+ " 'Skidding_and_Overturning': 0,\n",
+ " 'Towing_and_Articulation': 0,\n",
+ " 'Vehicle_Location-Restricted_Lane': 0,\n",
" 'Engine_Capacity_(CC)': -1,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 9,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 2,\n",
- " 'Junction_Location': 1,\n",
+ " 'Driver_Home_Area_Type': -1,\n",
" 'Propulsion_Code': -1,\n",
- " 'Sex_of_Driver': 1,\n",
+ " 'Age_of_Vehicle': -1,\n",
+ " 'Vehicle_Manoeuvre': 4,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 4,\n",
- " 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': 8,\n",
- " 'Age_of_Vehicle': 11,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 9,\n",
" 'Engine_Capacity_(CC)': 1590,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 8,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 1,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
- " 'Skidding_and_Overturning': 0,\n",
- " 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
- " 'Vehicle_Location-Restricted_Lane': 0,\n",
+ " 'Age_of_Vehicle': 11,\n",
" 'Vehicle_Manoeuvre': 3,\n",
- " 'Vehicle_Reference': 2,\n",
- " 'Vehicle_Type': 9,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b6e6'),\n",
- " 'loc': {'coordinates': [-0.693325, 52.040309], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 3,\n",
- " '1st_Road_Number': 4146,\n",
+ " 'Junction_Detail': 1,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016783',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.040309,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S069052',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 3,\n",
" '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1103,\n",
- " 'Accident_Index': '201243S058112',\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 5,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 1,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.693325,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 70,\n",
+ " 'Date': '11/05/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 5, 11, 14, 5),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.693325, 52.040309]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b6b1'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 2,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 2,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 1,\n",
+ " 'Age_Band_of_Casualty': 5,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 1}],\n",
- " 'Date': '15/11/2012',\n",
- " 'Datetime': datetime.datetime(2012, 11, 15, 11, 29),\n",
- " 'Day_of_Week': 5,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 3,\n",
- " 'LSOA_of_Accident_Location': 'E01016783',\n",
- " 'Latitude': 52.038325,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 489760,\n",
- " 'Location_Northing_OSGR': 238580,\n",
- " 'Longitude': -0.6928,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 1,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 3,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 70,\n",
+ " '1st_Road_Number': 4146,\n",
" 'Time': '11:29',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 8,\n",
- " 'Driver_Home_Area_Type': 2,\n",
- " 'Driver_IMD_Decile': 5,\n",
- " 'Engine_Capacity_(CC)': 1596,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 1,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': 1103,\n",
+ " 'Location_Northing_OSGR': 238580,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 1,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 489760,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 5,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 5,\n",
+ " 'Vehicle_Leaving_Carriageway': 4,\n",
" 'Junction_Location': 1,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 2,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 4,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1596,\n",
" 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 6,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 1,\n",
+ " '1st_Point_of_Impact': 1,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 2,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 8,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 7,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b6b1'),\n",
- " 'loc': {'coordinates': [-0.6928, 52.038325], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 3,\n",
- " '1st_Road_Number': 4146,\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016783',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.038325,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S058112',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 3,\n",
" '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1103,\n",
- " 'Accident_Index': '201243S126022',\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 4,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.6928,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 70,\n",
+ " 'Date': '15/11/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 11, 15, 11, 29),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.6928, 52.038325]},\n",
+ " 'Weather_Conditions': 7},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b808'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 4,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2},\n",
- " {'Age_Band_of_Casualty': 4,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 2,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 2,\n",
+ " 'Age_Band_of_Casualty': 4,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2},\n",
- " {'Age_Band_of_Casualty': 4,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 1,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 3,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 3,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 1,\n",
+ " 'Age_Band_of_Casualty': 4,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '23/02/2012',\n",
- " 'Datetime': datetime.datetime(2012, 2, 23, 20, 5),\n",
- " 'Day_of_Week': 5,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 3,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 3,\n",
- " 'LSOA_of_Accident_Location': 'E01016783',\n",
- " 'Latitude': 52.035902,\n",
- " 'Light_Conditions': 4,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 489847,\n",
- " 'Location_Northing_OSGR': 238312,\n",
- " 'Longitude': -0.691602,\n",
- " 'Number_of_Casualties': 3,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 3,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 70,\n",
+ " '1st_Road_Number': 4146,\n",
" 'Time': '20:05',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 5,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': -1,\n",
- " 'Driver_IMD_Decile': -1,\n",
- " 'Engine_Capacity_(CC)': -1,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': 1103,\n",
+ " 'Location_Northing_OSGR': 238312,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 489847,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 5,\n",
+ " 'Light_Conditions': 4,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': -1,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 6,\n",
- " 'Propulsion_Code': -1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 7,\n",
- " 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': -1},\n",
- " {'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': 4,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': -1,\n",
" 'Engine_Capacity_(CC)': -1,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 5,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 6,\n",
+ " 'Driver_Home_Area_Type': -1,\n",
" 'Propulsion_Code': -1,\n",
- " 'Sex_of_Driver': 1,\n",
+ " 'Age_of_Vehicle': -1,\n",
+ " 'Vehicle_Manoeuvre': 7,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': -1},\n",
+ " {'Driver_IMD_Decile': -1,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 6,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 8,\n",
+ " 'Engine_Capacity_(CC)': -1,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 4,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': -1,\n",
+ " 'Age_of_Vehicle': -1,\n",
+ " 'Vehicle_Manoeuvre': 8,\n",
" 'Was_Vehicle_Left_Hand_Drive?': -1}],\n",
- " 'Weather_Conditions': 9,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b808'),\n",
- " 'loc': {'coordinates': [-0.691602, 52.035902], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 3,\n",
- " '1st_Road_Number': 421,\n",
- " '2nd_Road_Class': 3,\n",
- " '2nd_Road_Number': 4146,\n",
- " 'Accident_Index': '201243S035022',\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016783',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.035902,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 3,\n",
+ " 'Accident_Index': '201243S126022',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 3,\n",
+ " '2nd_Road_Class': 6,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 7,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.691602,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 70,\n",
+ " 'Date': '23/02/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 2, 23, 20, 5),\n",
+ " 'Number_of_Casualties': 3,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.691602, 52.035902]},\n",
+ " 'Weather_Conditions': 9},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b645'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 7,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2},\n",
- " {'Age_Band_of_Casualty': 8,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 1,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 1,\n",
+ " 'Age_Band_of_Casualty': 8,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '11/02/2012',\n",
- " 'Datetime': datetime.datetime(2012, 2, 11, 15, 40),\n",
- " 'Day_of_Week': 7,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 2,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 1,\n",
- " 'LSOA_of_Accident_Location': 'E01016783',\n",
- " 'Latitude': 52.034264,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 489860,\n",
- " 'Location_Northing_OSGR': 238130,\n",
- " 'Longitude': -0.691461,\n",
- " 'Number_of_Casualties': 2,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 1,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 70,\n",
+ " '1st_Road_Number': 421,\n",
" 'Time': '15:40',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 5,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': -1,\n",
- " 'Driver_IMD_Decile': -1,\n",
- " 'Engine_Capacity_(CC)': -1,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 1,\n",
+ " '2nd_Road_Number': 4146,\n",
+ " 'Location_Northing_OSGR': 238130,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 489860,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 7,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': -1,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 1,\n",
- " 'Propulsion_Code': -1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': -1,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': 10,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 9,\n",
- " 'Engine_Capacity_(CC)': 1596,\n",
+ " 'Age_Band_of_Driver': 5,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': -1,\n",
+ " 'Propulsion_Code': -1,\n",
+ " 'Age_of_Vehicle': -1,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 1,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 3,\n",
+ " 'Engine_Capacity_(CC)': 1596,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 7,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 10,\n",
+ " 'Vehicle_Manoeuvre': 3,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b645'),\n",
- " 'loc': {'coordinates': [-0.691461, 52.034264], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 3,\n",
- " '1st_Road_Number': 421,\n",
- " '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1103,\n",
- " 'Accident_Index': '201243S047042',\n",
+ " 'Junction_Detail': 1,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016783',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.034264,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 2,\n",
+ " 'Accident_Index': '201243S035022',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 3,\n",
+ " '2nd_Road_Class': 3,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 6,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.691461,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 70,\n",
+ " 'Date': '11/02/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 2, 11, 15, 40),\n",
+ " 'Number_of_Casualties': 2,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.691461, 52.034264]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b67e'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 19,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 9,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 3,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 3,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 9,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2},\n",
- " {'Age_Band_of_Casualty': 9,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 1,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 3,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 3,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 1,\n",
+ " 'Age_Band_of_Casualty': 9,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '16/04/2012',\n",
- " 'Datetime': datetime.datetime(2012, 4, 16, 17, 23),\n",
- " 'Day_of_Week': 2,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 3,\n",
- " 'LSOA_of_Accident_Location': 'E01016783',\n",
- " 'Latitude': 52.033774,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 490110,\n",
- " 'Location_Northing_OSGR': 238080,\n",
- " 'Longitude': -0.68783,\n",
- " 'Number_of_Casualties': 3,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 3,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 70,\n",
+ " '1st_Road_Number': 421,\n",
" 'Time': '17:23',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 8,\n",
- " 'Engine_Capacity_(CC)': -1,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': 1103,\n",
+ " 'Location_Northing_OSGR': 238080,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 490110,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 2,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 8,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 1,\n",
- " 'Propulsion_Code': -1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 5,\n",
- " 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 19,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': 9,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': 3,\n",
- " 'Driver_IMD_Decile': 9,\n",
" 'Engine_Capacity_(CC)': -1,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 6,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 19,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 1,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': -1,\n",
- " 'Sex_of_Driver': 1,\n",
+ " 'Age_of_Vehicle': -1,\n",
+ " 'Vehicle_Manoeuvre': 5,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 3,\n",
+ " 'Engine_Capacity_(CC)': -1,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 9,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 3,\n",
+ " 'Propulsion_Code': -1,\n",
+ " 'Age_of_Vehicle': -1,\n",
+ " 'Vehicle_Manoeuvre': 3,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b67e'),\n",
- " 'loc': {'coordinates': [-0.68783, 52.033774], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 3,\n",
- " '1st_Road_Number': 421,\n",
- " '2nd_Road_Class': 3,\n",
- " '2nd_Road_Number': 4146,\n",
- " 'Accident_Index': '201243S035052',\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016783',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.033774,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S047042',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 3,\n",
+ " '2nd_Road_Class': 6,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 8,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.68783,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 70,\n",
+ " 'Date': '16/04/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 4, 16, 17, 23),\n",
+ " 'Number_of_Casualties': 3,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.68783, 52.033774]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b646'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 8,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '10/05/2012',\n",
- " 'Datetime': datetime.datetime(2012, 5, 10, 8, 30),\n",
- " 'Day_of_Week': 5,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 2,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 1,\n",
- " 'LSOA_of_Accident_Location': 'E01016783',\n",
- " 'Latitude': 52.033898,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 489900,\n",
- " 'Location_Northing_OSGR': 238090,\n",
- " 'Longitude': -0.690888,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 3,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 70,\n",
+ " '1st_Road_Number': 421,\n",
" 'Time': '08:30',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': -1,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': -1,\n",
- " 'Driver_IMD_Decile': -1,\n",
- " 'Engine_Capacity_(CC)': -1,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': 4146,\n",
+ " 'Location_Northing_OSGR': 238090,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 489900,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 5,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': -1,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 8,\n",
- " 'Propulsion_Code': -1,\n",
- " 'Sex_of_Driver': 3,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': -1,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': 8,\n",
- " 'Age_of_Vehicle': 12,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 4,\n",
- " 'Engine_Capacity_(CC)': 1783,\n",
+ " 'Age_Band_of_Driver': -1,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 3,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': -1,\n",
+ " 'Propulsion_Code': -1,\n",
+ " 'Age_of_Vehicle': -1,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 4,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 3,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1783,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 8,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 12,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b646'),\n",
- " 'loc': {'coordinates': [-0.690888, 52.033898], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 3,\n",
- " '1st_Road_Number': 421,\n",
+ " 'Junction_Detail': 1,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016783',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.033898,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 2,\n",
+ " 'Accident_Index': '201243S035052',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 3,\n",
" '2nd_Road_Class': 3,\n",
- " '2nd_Road_Number': 4146,\n",
- " 'Accident_Index': '201243S081052',\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 4,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 1,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.690888,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 70,\n",
+ " 'Date': '10/05/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 5, 10, 8, 30),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.690888, 52.033898]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b722'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 1,\n",
+ " 'Age_Band_of_Casualty': 4,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 4,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 2,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 2,\n",
+ " 'Age_Band_of_Casualty': 4,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1}],\n",
- " 'Date': '17/05/2012',\n",
- " 'Datetime': datetime.datetime(2012, 5, 17, 22, 5),\n",
- " 'Day_of_Week': 5,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 1,\n",
- " 'LSOA_of_Accident_Location': 'E01016783',\n",
- " 'Latitude': 52.033989,\n",
- " 'Light_Conditions': 4,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 489890,\n",
- " 'Location_Northing_OSGR': 238100,\n",
- " 'Longitude': -0.691031,\n",
- " 'Number_of_Casualties': 2,\n",
- " 'Number_of_Vehicles': 1,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 3,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 70,\n",
+ " '1st_Road_Number': 421,\n",
" 'Time': '22:05',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 4,\n",
- " 'Age_Band_of_Driver': 4,\n",
- " 'Age_of_Vehicle': 5,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 4,\n",
- " 'Engine_Capacity_(CC)': 1896,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 2,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': 4146,\n",
+ " 'Location_Northing_OSGR': 238100,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 1,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 489890,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 5,\n",
+ " 'Light_Conditions': 4,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 4,\n",
+ " 'Vehicle_Leaving_Carriageway': 1,\n",
" 'Junction_Location': 3,\n",
- " 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 1,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 1,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1896,\n",
" 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 4,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 2,\n",
+ " '1st_Point_of_Impact': 4,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': 5,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b722'),\n",
- " 'loc': {'coordinates': [-0.691031, 52.033989], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 3,\n",
- " '1st_Road_Number': 421,\n",
+ " 'Junction_Detail': 1,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016783',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.033989,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S081052',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 3,\n",
" '2nd_Road_Class': 3,\n",
- " '2nd_Road_Number': 4146,\n",
- " 'Accident_Index': '201243S029092',\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 5,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
- " 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
- " 'Casualty_Type': 9,\n",
- " 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
- " 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2},\n",
- " {'Age_Band_of_Casualty': 5,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 1,\n",
- " 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
- " 'Casualty_Type': 9,\n",
- " 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
- " 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '07/09/2012',\n",
- " 'Datetime': datetime.datetime(2012, 9, 7, 15, 5),\n",
- " 'Day_of_Week': 6,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 2,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.691031,\n",
" 'Junction_Control': 4,\n",
- " 'Junction_Detail': 1,\n",
- " 'LSOA_of_Accident_Location': 'E01016821',\n",
- " 'Latitude': 52.03319,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 489830,\n",
- " 'Location_Northing_OSGR': 238010,\n",
- " 'Longitude': -0.691929,\n",
+ " 'Speed_limit': 70,\n",
+ " 'Date': '17/05/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 5, 17, 22, 5),\n",
" 'Number_of_Casualties': 2,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.691031, 52.033989]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b626'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
+ " 'Casualty_Class': 1,\n",
+ " 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
+ " 'Pedestrian_Location': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 5,\n",
+ " 'Pedestrian_Road_Maintenance_Worker': 0,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1},\n",
+ " {'Casualty_Severity': 3,\n",
+ " 'Casualty_Class': 2,\n",
+ " 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
+ " 'Pedestrian_Location': 0,\n",
+ " 'Car_Passenger': 1,\n",
+ " 'Age_Band_of_Casualty': 5,\n",
+ " 'Pedestrian_Road_Maintenance_Worker': 0,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 3,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 70,\n",
+ " '1st_Road_Number': 421,\n",
" 'Time': '15:05',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': -1,\n",
- " 'Driver_IMD_Decile': -1,\n",
- " 'Engine_Capacity_(CC)': 1598,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': 4146,\n",
+ " 'Location_Northing_OSGR': 238010,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 489830,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 6,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': -1,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 1,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1598,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': 5,\n",
- " 'Age_of_Vehicle': 8,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 4,\n",
- " 'Engine_Capacity_(CC)': 1198,\n",
+ " 'Age_Band_of_Driver': 7,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 1,\n",
+ " 'Driver_Home_Area_Type': -1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
+ " 'Age_of_Vehicle': -1,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 4,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 3,\n",
+ " 'Engine_Capacity_(CC)': 1198,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 5,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 8,\n",
+ " 'Vehicle_Manoeuvre': 3,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b626'),\n",
- " 'loc': {'coordinates': [-0.691929, 52.03319], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 3,\n",
- " '1st_Road_Number': 421,\n",
+ " 'Junction_Detail': 1,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016821',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.03319,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 2,\n",
+ " 'Accident_Index': '201243S029092',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 3,\n",
" '2nd_Road_Class': 3,\n",
- " '2nd_Road_Number': 4146,\n",
- " 'Accident_Index': '201243S135092',\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 7,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.691929,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 70,\n",
+ " 'Date': '07/09/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 9, 7, 15, 5),\n",
+ " 'Number_of_Casualties': 2,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.691929, 52.03319]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b82d'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 7,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '10/09/2012',\n",
- " 'Datetime': datetime.datetime(2012, 9, 10, 18, 30),\n",
- " 'Day_of_Week': 2,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 2,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 1,\n",
- " 'LSOA_of_Accident_Location': 'E01016821',\n",
- " 'Latitude': 52.033548,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 489840,\n",
- " 'Location_Northing_OSGR': 238050,\n",
- " 'Longitude': -0.691773,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 3,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 70,\n",
+ " '1st_Road_Number': 421,\n",
" 'Time': '18:30',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 10,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': 4146,\n",
+ " 'Location_Northing_OSGR': 238050,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 489840,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 2,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 10,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 1,\n",
+ " 'Skidding_and_Overturning': 0,\n",
+ " 'Towing_and_Articulation': 0,\n",
+ " 'Vehicle_Location-Restricted_Lane': 0,\n",
" 'Engine_Capacity_(CC)': -1,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 6,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 1,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': -1,\n",
- " 'Sex_of_Driver': 1,\n",
+ " 'Age_of_Vehicle': -1,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 4,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
- " 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': 11,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 4,\n",
" 'Engine_Capacity_(CC)': 1108,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 7,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 1,\n",
- " 'Junction_Location': 1,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
- " 'Skidding_and_Overturning': 0,\n",
- " 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
- " 'Vehicle_Location-Restricted_Lane': 0,\n",
+ " 'Age_of_Vehicle': 11,\n",
" 'Vehicle_Manoeuvre': 3,\n",
- " 'Vehicle_Reference': 2,\n",
- " 'Vehicle_Type': 9,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b82d'),\n",
- " 'loc': {'coordinates': [-0.691773, 52.033548], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 3,\n",
- " '1st_Road_Number': 421,\n",
+ " 'Junction_Detail': 1,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016821',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.033548,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 2,\n",
+ " 'Accident_Index': '201243S135092',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 3,\n",
" '2nd_Road_Class': 3,\n",
- " '2nd_Road_Number': 4146,\n",
- " 'Accident_Index': '201243S045102',\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 7,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.691773,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 70,\n",
+ " 'Date': '10/09/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 9, 10, 18, 30),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.691773, 52.033548]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b675'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 7,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '10/10/2012',\n",
- " 'Datetime': datetime.datetime(2012, 10, 10, 17, 25),\n",
- " 'Day_of_Week': 4,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 1,\n",
- " 'LSOA_of_Accident_Location': 'E01016783',\n",
- " 'Latitude': 52.034262,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 489870,\n",
- " 'Location_Northing_OSGR': 238130,\n",
- " 'Longitude': -0.691315,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 3,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 70,\n",
+ " '1st_Road_Number': 421,\n",
" 'Time': '17:25',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 5,\n",
- " 'Age_of_Vehicle': 11,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 4,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': 4146,\n",
+ " 'Location_Northing_OSGR': 238130,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 489870,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 4,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 4,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 1,\n",
+ " 'Skidding_and_Overturning': 0,\n",
+ " 'Towing_and_Articulation': 0,\n",
+ " 'Vehicle_Location-Restricted_Lane': 0,\n",
" 'Engine_Capacity_(CC)': 5883,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 5,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 11,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 1,\n",
- " 'Junction_Location': 1,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 1,\n",
+ " 'Age_of_Vehicle': 11,\n",
+ " 'Vehicle_Manoeuvre': 4,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 8,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 4,\n",
- " 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 11,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': 7,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 8,\n",
" 'Engine_Capacity_(CC)': 1124,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 7,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 1,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
- " 'Skidding_and_Overturning': 0,\n",
- " 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
- " 'Vehicle_Location-Restricted_Lane': 0,\n",
+ " 'Age_of_Vehicle': 7,\n",
" 'Vehicle_Manoeuvre': 3,\n",
- " 'Vehicle_Reference': 2,\n",
- " 'Vehicle_Type': 9,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b675'),\n",
- " 'loc': {'coordinates': [-0.691315, 52.034262], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 3,\n",
- " '1st_Road_Number': 421,\n",
+ " 'Junction_Detail': 1,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016783',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.034262,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S045102',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 3,\n",
" '2nd_Road_Class': 3,\n",
- " '2nd_Road_Number': 4146,\n",
- " 'Accident_Index': '201243S125122',\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 6,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.691315,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 70,\n",
+ " 'Date': '10/10/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 10, 10, 17, 25),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.691315, 52.034262]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b807'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': -1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': -1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '24/12/2012',\n",
- " 'Datetime': datetime.datetime(2012, 12, 24, 17, 32),\n",
- " 'Day_of_Week': 2,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 1,\n",
- " 'LSOA_of_Accident_Location': 'E01016823',\n",
- " 'Latitude': 52.033563,\n",
- " 'Light_Conditions': 4,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 489911,\n",
- " 'Location_Northing_OSGR': 238053,\n",
- " 'Longitude': -0.690738,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 1,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 70,\n",
+ " '1st_Road_Number': 421,\n",
" 'Time': '17:32',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': 4,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 4,\n",
- " 'Engine_Capacity_(CC)': 1229,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 5,\n",
+ " 'Road_Type': 1,\n",
+ " '2nd_Road_Number': 4146,\n",
+ " 'Location_Northing_OSGR': 238053,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 489911,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 2,\n",
+ " 'Light_Conditions': 4,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 4,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 1,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1229,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 12,\n",
- " 'Driver_Home_Area_Type': -1,\n",
- " 'Driver_IMD_Decile': -1,\n",
- " 'Engine_Capacity_(CC)': 1998,\n",
+ " 'Age_Band_of_Driver': 7,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 5,\n",
- " 'Junction_Location': 1,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
+ " 'Age_of_Vehicle': 4,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': -1,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 3,\n",
+ " 'Engine_Capacity_(CC)': 1998,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 6,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 5,\n",
+ " 'Driver_Home_Area_Type': -1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 12,\n",
+ " 'Vehicle_Manoeuvre': 3,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b807'),\n",
- " 'loc': {'coordinates': [-0.690738, 52.033563], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 3,\n",
- " '1st_Road_Number': 421,\n",
+ " 'Junction_Detail': 1,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016823',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.033563,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S125122',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 3,\n",
" '2nd_Road_Class': 3,\n",
- " '2nd_Road_Number': 4146,\n",
- " 'Accident_Index': '201243S070032',\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 8,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.690738,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 70,\n",
+ " 'Date': '24/12/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 12, 24, 17, 32),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.690738, 52.033563]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b6ea'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 8,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2},\n",
- " {'Age_Band_of_Casualty': 7,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 1,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 1,\n",
+ " 'Age_Band_of_Casualty': 7,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '16/03/2012',\n",
- " 'Datetime': datetime.datetime(2012, 3, 16, 14, 0),\n",
- " 'Day_of_Week': 6,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 1,\n",
- " 'LSOA_of_Accident_Location': 'E01016783',\n",
- " 'Latitude': 52.033916,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 489790,\n",
- " 'Location_Northing_OSGR': 238090,\n",
- " 'Longitude': -0.692491,\n",
- " 'Number_of_Casualties': 2,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 3,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 70,\n",
+ " '1st_Road_Number': 421,\n",
" 'Time': '14:00',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 8,\n",
- " 'Age_of_Vehicle': 4,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 6,\n",
- " 'Engine_Capacity_(CC)': 1560,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': 4146,\n",
+ " 'Location_Northing_OSGR': 238090,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 489790,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 6,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 6,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 1,\n",
- " 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1560,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 19,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
" 'Age_Band_of_Driver': 8,\n",
- " 'Age_of_Vehicle': 10,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 7,\n",
- " 'Engine_Capacity_(CC)': 1598,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 19,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': 4,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 7,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 1,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1598,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 8,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 10,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b6ea'),\n",
- " 'loc': {'coordinates': [-0.692491, 52.033916], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 3,\n",
- " '1st_Road_Number': 421,\n",
+ " 'Junction_Detail': 1,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016783',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.033916,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S070032',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 3,\n",
" '2nd_Road_Class': 3,\n",
- " '2nd_Road_Number': 4146,\n",
- " 'Accident_Index': '201243S118072',\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 7,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.692491,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 70,\n",
+ " 'Date': '16/03/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 3, 16, 14, 0),\n",
+ " 'Number_of_Casualties': 2,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.692491, 52.033916]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b7e2'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 3,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 3,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 7,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '28/07/2012',\n",
- " 'Datetime': datetime.datetime(2012, 7, 28, 18, 37),\n",
- " 'Day_of_Week': 7,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 1,\n",
- " 'LSOA_of_Accident_Location': 'E01016783',\n",
- " 'Latitude': 52.033826,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 489790,\n",
- " 'Location_Northing_OSGR': 238080,\n",
- " 'Longitude': -0.692494,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 3,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 70,\n",
+ " '1st_Road_Number': 421,\n",
" 'Time': '18:37',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 4,\n",
- " 'Age_of_Vehicle': 7,\n",
- " 'Driver_Home_Area_Type': 3,\n",
- " 'Driver_IMD_Decile': 10,\n",
- " 'Engine_Capacity_(CC)': 1229,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': 4146,\n",
+ " 'Location_Northing_OSGR': 238080,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 489790,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 7,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 10,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 1,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 5,\n",
+ " 'Engine_Capacity_(CC)': 1229,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': 8,\n",
- " 'Driver_Home_Area_Type': 3,\n",
- " 'Driver_IMD_Decile': 9,\n",
- " 'Engine_Capacity_(CC)': 1124,\n",
+ " 'Age_Band_of_Driver': 4,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 1,\n",
+ " 'Driver_Home_Area_Type': 3,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
+ " 'Age_of_Vehicle': 7,\n",
+ " 'Vehicle_Manoeuvre': 5,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 3,\n",
+ " 'Engine_Capacity_(CC)': 1124,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 7,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 3,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 8,\n",
+ " 'Vehicle_Manoeuvre': 3,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b7e2'),\n",
- " 'loc': {'coordinates': [-0.692494, 52.033826], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 3,\n",
- " '1st_Road_Number': 421,\n",
- " '2nd_Road_Class': 3,\n",
- " '2nd_Road_Number': 4146,\n",
- " 'Accident_Index': '201243S063102',\n",
- " 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 6,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
- " 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
- " 'Casualty_Type': 9,\n",
- " 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
- " 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '16/10/2012',\n",
- " 'Datetime': datetime.datetime(2012, 10, 16, 16, 16),\n",
- " 'Day_of_Week': 3,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
" 'Junction_Detail': 1,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
" 'LSOA_of_Accident_Location': 'E01016783',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
" 'Latitude': 52.033826,\n",
- " 'Light_Conditions': 1,\n",
" 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 489790,\n",
- " 'Location_Northing_OSGR': 238080,\n",
- " 'Longitude': -0.692494,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S118072',\n",
" 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
- " 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 3,\n",
+ " '1st_Road_Class': 3,\n",
+ " '2nd_Road_Class': 3,\n",
+ " 'Accident_Severity': 3,\n",
" 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.692494,\n",
+ " 'Junction_Control': 4,\n",
" 'Speed_limit': 70,\n",
+ " 'Date': '28/07/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 7, 28, 18, 37),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.692494, 52.033826]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b6cd'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
+ " 'Casualty_Class': 1,\n",
+ " 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
+ " 'Pedestrian_Location': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
+ " 'Pedestrian_Road_Maintenance_Worker': 0,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
+ " 'Road_Surface_Conditions': 1,\n",
+ " '1st_Road_Number': 421,\n",
" 'Time': '16:16',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 10,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 7,\n",
- " 'Engine_Capacity_(CC)': 1587,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': 4146,\n",
+ " 'Location_Northing_OSGR': 238080,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 489790,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 3,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 7,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 1,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1587,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
" 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 8,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 4,\n",
- " 'Engine_Capacity_(CC)': 2188,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 10,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 4,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 1,\n",
- " 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 2188,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 6,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': 8,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b6cd'),\n",
- " 'loc': {'coordinates': [-0.692494, 52.033826], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 3,\n",
- " '1st_Road_Number': 421,\n",
+ " 'Junction_Detail': 1,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016783',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.033826,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S063102',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 3,\n",
" '2nd_Road_Class': 3,\n",
- " '2nd_Road_Number': 4146,\n",
- " 'Accident_Index': '201243S064112',\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 6,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.692494,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 70,\n",
+ " 'Date': '16/10/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 10, 16, 16, 16),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.692494, 52.033826]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b6d1'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '16/11/2012',\n",
- " 'Datetime': datetime.datetime(2012, 11, 16, 16, 4),\n",
- " 'Day_of_Week': 6,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 1,\n",
- " 'LSOA_of_Accident_Location': 'E01016821',\n",
- " 'Latitude': 52.033466,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 489790,\n",
- " 'Location_Northing_OSGR': 238040,\n",
- " 'Longitude': -0.692504,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 3,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 70,\n",
+ " '1st_Road_Number': 421,\n",
" 'Time': '16:04',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 9,\n",
- " 'Engine_Capacity_(CC)': 1968,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': 4146,\n",
+ " 'Location_Northing_OSGR': 238040,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 489790,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 6,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 3,\n",
- " 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1968,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 8,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 2,\n",
- " 'Engine_Capacity_(CC)': 1242,\n",
+ " 'Age_Band_of_Driver': 7,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': -1,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 2,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 3,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1242,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 6,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 8,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b6d1'),\n",
- " 'loc': {'coordinates': [-0.692504, 52.033466], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 149,\n",
- " '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1072,\n",
- " 'Accident_Index': '201243S110102',\n",
+ " 'Junction_Detail': 1,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016821',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.033466,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S064112',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 3,\n",
+ " '2nd_Road_Class': 3,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 5,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.692504,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 70,\n",
+ " 'Date': '16/11/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 11, 16, 16, 4),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.692504, 52.033466]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b7b7'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 5,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 3,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 2,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 2,\n",
+ " 'Age_Band_of_Casualty': 3,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '24/10/2012',\n",
- " 'Datetime': datetime.datetime(2012, 10, 24, 8, 30),\n",
- " 'Day_of_Week': 4,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 3,\n",
- " 'LSOA_of_Accident_Location': 'E01016823',\n",
- " 'Latitude': 52.024946,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 489670,\n",
- " 'Location_Northing_OSGR': 237090,\n",
- " 'Longitude': -0.694502,\n",
- " 'Number_of_Casualties': 2,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 60,\n",
+ " '1st_Road_Number': 149,\n",
" 'Time': '08:30',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 5,\n",
- " 'Age_of_Vehicle': 10,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 9,\n",
- " 'Engine_Capacity_(CC)': 1124,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 3,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 1072,\n",
+ " 'Location_Northing_OSGR': 237090,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 489670,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 4,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 6,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Engine_Capacity_(CC)': 1124,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': 16,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 6,\n",
- " 'Engine_Capacity_(CC)': 1196,\n",
+ " 'Age_Band_of_Driver': 5,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 3,\n",
- " 'Junction_Location': 1,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
+ " 'Age_of_Vehicle': 10,\n",
+ " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 6,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1196,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 7,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 3,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 16,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 7,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b7b7'),\n",
- " 'loc': {'coordinates': [-0.694502, 52.024946], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 3,\n",
- " '1st_Road_Number': 4146,\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016823',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.024946,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S110102',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
" '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1072,\n",
- " 'Accident_Index': '201243S115072',\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 6,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.694502,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 60,\n",
+ " 'Date': '24/10/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 10, 24, 8, 30),\n",
+ " 'Number_of_Casualties': 2,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.694502, 52.024946]},\n",
+ " 'Weather_Conditions': 7},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b7d2'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1}],\n",
- " 'Date': '28/07/2012',\n",
- " 'Datetime': datetime.datetime(2012, 7, 28, 3, 5),\n",
- " 'Day_of_Week': 7,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 3,\n",
- " 'LSOA_of_Accident_Location': 'E01016822',\n",
- " 'Latitude': 52.022175,\n",
- " 'Light_Conditions': 4,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 490130,\n",
- " 'Location_Northing_OSGR': 236790,\n",
- " 'Longitude': -0.687878,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 1,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 3,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 70,\n",
+ " '1st_Road_Number': 4146,\n",
" 'Time': '03:05',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 10,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 8,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': 1072,\n",
+ " 'Location_Northing_OSGR': 236790,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 1,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 490130,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 7,\n",
+ " 'Light_Conditions': 4,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 8,\n",
+ " 'Vehicle_Leaving_Carriageway': 1,\n",
+ " 'Junction_Location': 1,\n",
+ " 'Skidding_and_Overturning': 0,\n",
+ " 'Towing_and_Articulation': 0,\n",
+ " 'Vehicle_Location-Restricted_Lane': 0,\n",
" 'Engine_Capacity_(CC)': 2401,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 6,\n",
" 'Hit_Object_in_Carriageway': 10,\n",
" 'Hit_Object_off_Carriageway': 4,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 1,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 1,\n",
- " 'Skidding_and_Overturning': 0,\n",
- " 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 1,\n",
- " 'Vehicle_Location-Restricted_Lane': 0,\n",
+ " 'Age_of_Vehicle': 10,\n",
" 'Vehicle_Manoeuvre': 7,\n",
- " 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b7d2'),\n",
- " 'loc': {'coordinates': [-0.687878, 52.022175], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 3,\n",
- " '1st_Road_Number': 4146,\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016822',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.022175,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S115072',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 3,\n",
" '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1072,\n",
- " 'Accident_Index': '201243S082092',\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 6,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.687878,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 70,\n",
+ " 'Date': '28/07/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 7, 28, 3, 5),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.687878, 52.022175]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b728'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '11/09/2012',\n",
- " 'Datetime': datetime.datetime(2012, 9, 11, 18, 30),\n",
- " 'Day_of_Week': 3,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 3,\n",
- " 'LSOA_of_Accident_Location': 'E01016822',\n",
- " 'Latitude': 52.022543,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 490080,\n",
- " 'Location_Northing_OSGR': 236830,\n",
- " 'Longitude': -0.688596,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 3,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 70,\n",
+ " '1st_Road_Number': 4146,\n",
" 'Time': '18:30',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': 3,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 5,\n",
- " 'Engine_Capacity_(CC)': 1329,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 1,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': 1072,\n",
+ " 'Location_Northing_OSGR': 236830,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 490080,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 3,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 5,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 1,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 7,\n",
+ " 'Engine_Capacity_(CC)': 1329,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 5,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 9,\n",
- " 'Engine_Capacity_(CC)': 1798,\n",
+ " 'Age_Band_of_Driver': 7,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 1,\n",
- " 'Junction_Location': 1,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
+ " 'Age_of_Vehicle': 3,\n",
+ " 'Vehicle_Manoeuvre': 7,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 7,\n",
+ " 'Engine_Capacity_(CC)': 1798,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 6,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 1,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 5,\n",
+ " 'Vehicle_Manoeuvre': 7,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b728'),\n",
- " 'loc': {'coordinates': [-0.688596, 52.022543], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 3,\n",
- " '1st_Road_Number': 4146,\n",
- " '2nd_Road_Class': 5,\n",
- " '2nd_Road_Number': 149,\n",
- " 'Accident_Index': '201243S024062',\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016822',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.022543,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S082092',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 3,\n",
+ " '2nd_Road_Class': 6,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 7,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.688596,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 70,\n",
+ " 'Date': '11/09/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 9, 11, 18, 30),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.688596, 52.022543]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b611'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 7,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 1}],\n",
- " 'Date': '07/06/2012',\n",
- " 'Datetime': datetime.datetime(2012, 6, 7, 14, 35),\n",
- " 'Day_of_Week': 5,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 1,\n",
- " 'LSOA_of_Accident_Location': 'E01016823',\n",
- " 'Latitude': 52.02616,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 489950,\n",
- " 'Location_Northing_OSGR': 237230,\n",
- " 'Longitude': -0.690385,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 1,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 1,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 70,\n",
+ " '1st_Road_Number': 4146,\n",
" 'Time': '14:35',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': 14,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 10,\n",
- " 'Engine_Capacity_(CC)': 973,\n",
- " 'Hit_Object_in_Carriageway': 9,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 1,\n",
+ " '2nd_Road_Number': 149,\n",
+ " 'Location_Northing_OSGR': 237230,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 1,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 489950,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 5,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 10,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 8,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 5,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Engine_Capacity_(CC)': 973,\n",
" 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 7,\n",
+ " 'Hit_Object_in_Carriageway': 9,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 14,\n",
+ " 'Vehicle_Manoeuvre': 9,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 5,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b611'),\n",
- " 'loc': {'coordinates': [-0.690385, 52.02616], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 3,\n",
- " '1st_Road_Number': 4146,\n",
- " '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1103,\n",
- " 'Accident_Index': '201243S091072',\n",
+ " 'Junction_Detail': 1,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016823',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.02616,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S024062',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 3,\n",
+ " '2nd_Road_Class': 5,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 7,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.690385,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 70,\n",
+ " 'Date': '07/06/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 6, 7, 14, 35),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.690385, 52.02616]},\n",
+ " 'Weather_Conditions': 5},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b754'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 2,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 2,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 7,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 6,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '20/07/2012',\n",
- " 'Datetime': datetime.datetime(2012, 7, 20, 17, 10),\n",
- " 'Day_of_Week': 6,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 3,\n",
- " 'LSOA_of_Accident_Location': 'E01016823',\n",
- " 'Latitude': 52.0295,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 489860,\n",
- " 'Location_Northing_OSGR': 237600,\n",
- " 'Longitude': -0.6916,\n",
- " 'Number_of_Casualties': 2,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 3,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 70,\n",
+ " '1st_Road_Number': 4146,\n",
" 'Time': '17:10',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 4,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': 1,\n",
- " 'Driver_Home_Area_Type': 2,\n",
- " 'Driver_IMD_Decile': 10,\n",
- " 'Engine_Capacity_(CC)': 1956,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 2,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': 1103,\n",
+ " 'Location_Northing_OSGR': 237600,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 489860,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 6,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 10,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 8,\n",
- " 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Engine_Capacity_(CC)': 1956,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 3,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 10,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 9,\n",
- " 'Engine_Capacity_(CC)': 1997,\n",
+ " 'Age_Band_of_Driver': 7,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 1,\n",
- " 'Propulsion_Code': 2,\n",
+ " '1st_Point_of_Impact': 4,\n",
+ " 'Vehicle_Type': 9,\n",
" 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 2,\n",
+ " 'Driver_Home_Area_Type': 2,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': 1,\n",
+ " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 1,\n",
" 'Skidding_and_Overturning': 1,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1997,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 6,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 3,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': 10,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b754'),\n",
- " 'loc': {'coordinates': [-0.6916, 52.0295], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 3,\n",
- " '1st_Road_Number': 4146,\n",
- " '2nd_Road_Class': 5,\n",
- " '2nd_Road_Number': 149,\n",
- " 'Accident_Index': '201243S110092',\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016823',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.0295,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S091072',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 3,\n",
+ " '2nd_Road_Class': 6,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 6,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.6916,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 70,\n",
+ " 'Date': '20/07/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 7, 20, 17, 10),\n",
+ " 'Number_of_Casualties': 2,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.6916, 52.0295]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b7b6'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '24/09/2012',\n",
- " 'Datetime': datetime.datetime(2012, 9, 24, 6, 35),\n",
- " 'Day_of_Week': 2,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 1,\n",
- " 'LSOA_of_Accident_Location': 'E01016823',\n",
- " 'Latitude': 52.025797,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 489970,\n",
- " 'Location_Northing_OSGR': 237190,\n",
- " 'Longitude': -0.690105,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 3,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 70,\n",
+ " '1st_Road_Number': 4146,\n",
" 'Time': '06:35',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 9,\n",
- " 'Age_of_Vehicle': 8,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 5,\n",
- " 'Engine_Capacity_(CC)': 1242,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 2,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': 149,\n",
+ " 'Location_Northing_OSGR': 237190,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 489970,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 2,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 5,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 1,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 5,\n",
- " 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 8,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 3,\n",
" 'Engine_Capacity_(CC)': 1242,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 9,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 2,\n",
- " 'Junction_Location': 1,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
+ " 'Age_of_Vehicle': 8,\n",
+ " 'Vehicle_Manoeuvre': 5,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 3,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 3,\n",
+ " 'Engine_Capacity_(CC)': 1242,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 6,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 2,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 8,\n",
+ " 'Vehicle_Manoeuvre': 3,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 2,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b7b6'),\n",
- " 'loc': {'coordinates': [-0.690105, 52.025797], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 150,\n",
- " '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1072,\n",
- " 'Accident_Index': '201243S109092',\n",
- " 'Accident_Severity': 2,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 6,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Junction_Detail': 1,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016823',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.025797,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S110092',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 3,\n",
+ " '2nd_Road_Class': 5,\n",
+ " 'Accident_Severity': 3,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.690105,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 70,\n",
+ " 'Date': '24/09/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 9, 24, 6, 35),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.690105, 52.025797]},\n",
+ " 'Weather_Conditions': 2},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b7ae'),\n",
+ " 'Casualties': [{'Casualty_Severity': 2,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 2,\n",
" 'Casualty_Type': 5,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1}],\n",
- " 'Date': '24/09/2012',\n",
- " 'Datetime': datetime.datetime(2012, 9, 24, 20, 58),\n",
- " 'Day_of_Week': 2,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 1,\n",
- " 'LSOA_of_Accident_Location': 'E01016824',\n",
- " 'Latitude': 52.019658,\n",
- " 'Light_Conditions': 4,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 490634,\n",
- " 'Location_Northing_OSGR': 236519,\n",
- " 'Longitude': -0.680607,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 1,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 60,\n",
+ " '1st_Road_Number': 150,\n",
" 'Time': '20:58',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 14,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 8,\n",
- " 'Engine_Capacity_(CC)': 600,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 1072,\n",
+ " 'Location_Northing_OSGR': 236519,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 1,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 490634,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 2,\n",
+ " 'Light_Conditions': 4,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 8,\n",
+ " 'Vehicle_Leaving_Carriageway': 3,\n",
" 'Junction_Location': 4,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 2,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 3,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 17,\n",
+ " 'Engine_Capacity_(CC)': 600,\n",
" 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 6,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
" 'Vehicle_Type': 5,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 14,\n",
+ " 'Vehicle_Manoeuvre': 17,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b7ae'),\n",
- " 'loc': {'coordinates': [-0.680607, 52.019658], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 6,\n",
- " '1st_Road_Number': 1072,\n",
+ " 'Junction_Detail': 1,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
+ " 'LSOA_of_Accident_Location': 'E01016824',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.019658,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S109092',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
" '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1072,\n",
- " 'Accident_Index': '201243S100112',\n",
- " 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 6,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Accident_Severity': 2,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.680607,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 60,\n",
+ " 'Date': '24/09/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 9, 24, 20, 58),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.680607, 52.019658]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b786'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2},\n",
- " {'Age_Band_of_Casualty': 6,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 1,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 1,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '23/11/2012',\n",
- " 'Datetime': datetime.datetime(2012, 11, 23, 10, 50),\n",
- " 'Day_of_Week': 6,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 3,\n",
- " 'LSOA_of_Accident_Location': 'E01016824',\n",
- " 'Latitude': 52.021149,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 490360,\n",
- " 'Location_Northing_OSGR': 236680,\n",
- " 'Longitude': -0.684556,\n",
- " 'Number_of_Casualties': 2,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 30,\n",
+ " '1st_Road_Number': 1072,\n",
" 'Time': '10:50',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 3,\n",
- " 'Age_Band_of_Driver': 8,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 8,\n",
- " 'Engine_Capacity_(CC)': -1,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 1072,\n",
+ " 'Location_Northing_OSGR': 236680,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 490360,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 6,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 8,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 8,\n",
- " 'Propulsion_Code': -1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': -1,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 3,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 7,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 10,\n",
- " 'Engine_Capacity_(CC)': 1341,\n",
+ " 'Age_Band_of_Driver': 8,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 3,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': -1,\n",
+ " 'Age_of_Vehicle': -1,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 10,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 8,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1341,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 6,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 3,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 7,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b786'),\n",
- " 'loc': {'coordinates': [-0.684556, 52.021149], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 3,\n",
- " '1st_Road_Number': 421,\n",
- " '2nd_Road_Class': 3,\n",
- " '2nd_Road_Number': 5130,\n",
- " 'Accident_Index': '201243S096022',\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016824',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.021149,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S100112',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 6,\n",
+ " '2nd_Road_Class': 6,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 6,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.684556,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 30,\n",
+ " 'Date': '23/11/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 11, 23, 10, 50),\n",
+ " 'Number_of_Casualties': 2,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.684556, 52.021149]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b770'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '23/02/2012',\n",
- " 'Datetime': datetime.datetime(2012, 2, 23, 17, 35),\n",
- " 'Day_of_Week': 5,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 1,\n",
- " 'LSOA_of_Accident_Location': 'E01016735',\n",
- " 'Latitude': 52.032852,\n",
- " 'Light_Conditions': 4,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 490800,\n",
- " 'Location_Northing_OSGR': 237990,\n",
- " 'Longitude': -0.677799,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 1,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 70,\n",
+ " '1st_Road_Number': 421,\n",
" 'Time': '17:35',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 4,\n",
- " 'Age_Band_of_Driver': 9,\n",
- " 'Age_of_Vehicle': 1,\n",
- " 'Driver_Home_Area_Type': 2,\n",
- " 'Driver_IMD_Decile': 6,\n",
- " 'Engine_Capacity_(CC)': 12777,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 1,\n",
+ " 'Road_Type': 1,\n",
+ " '2nd_Road_Number': 5130,\n",
+ " 'Location_Northing_OSGR': 237990,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 490800,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 5,\n",
+ " 'Light_Conditions': 4,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 6,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 4,\n",
- " 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 4,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Engine_Capacity_(CC)': 12777,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 21,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 3,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 3,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 8,\n",
- " 'Engine_Capacity_(CC)': 1995,\n",
+ " 'Age_Band_of_Driver': 9,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 2,\n",
- " 'Junction_Location': 4,\n",
+ " '1st_Point_of_Impact': 4,\n",
+ " 'Vehicle_Type': 21,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 1,\n",
+ " 'Driver_Home_Area_Type': 2,\n",
" 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 2,\n",
+ " 'Age_of_Vehicle': 1,\n",
+ " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 8,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 4,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 3,\n",
+ " 'Engine_Capacity_(CC)': 1995,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 6,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 3,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 2,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': 3,\n",
+ " 'Vehicle_Manoeuvre': 3,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b770'),\n",
- " 'loc': {'coordinates': [-0.677799, 52.032852], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 3,\n",
- " '1st_Road_Number': 421,\n",
- " '2nd_Road_Class': 5,\n",
- " '2nd_Road_Number': 149,\n",
- " 'Accident_Index': '201243S103032',\n",
+ " 'Junction_Detail': 1,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
+ " 'LSOA_of_Accident_Location': 'E01016735',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.032852,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S096022',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 3,\n",
+ " '2nd_Road_Class': 3,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 8,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.677799,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 70,\n",
+ " 'Date': '23/02/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 2, 23, 17, 35),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.677799, 52.032852]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b78e'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 3,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 5,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 3,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 8,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '20/03/2012',\n",
- " 'Datetime': datetime.datetime(2012, 3, 20, 16, 0),\n",
- " 'Day_of_Week': 3,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 1,\n",
- " 'LSOA_of_Accident_Location': 'E01016823',\n",
- " 'Latitude': 52.032864,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 490730,\n",
- " 'Location_Northing_OSGR': 237990,\n",
- " 'Longitude': -0.678819,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 1,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 70,\n",
+ " '1st_Road_Number': 421,\n",
" 'Time': '16:00',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 3,\n",
- " 'Age_Band_of_Driver': 5,\n",
- " 'Age_of_Vehicle': 3,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 9,\n",
- " 'Engine_Capacity_(CC)': 1368,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 1,\n",
+ " '2nd_Road_Number': 149,\n",
+ " 'Location_Northing_OSGR': 237990,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 490730,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 3,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 8,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1368,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 4,\n",
- " 'Age_Band_of_Driver': 8,\n",
- " 'Age_of_Vehicle': 3,\n",
- " 'Driver_Home_Area_Type': 3,\n",
- " 'Driver_IMD_Decile': 6,\n",
- " 'Engine_Capacity_(CC)': 1050,\n",
+ " 'Age_Band_of_Driver': 5,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 1,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 3,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 8,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
+ " 'Age_of_Vehicle': 3,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 6,\n",
+ " 'Vehicle_Leaving_Carriageway': 7,\n",
+ " 'Junction_Location': 8,\n",
" 'Skidding_and_Overturning': 2,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 7,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1050,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 8,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 1,\n",
+ " '1st_Point_of_Impact': 4,\n",
" 'Vehicle_Type': 5,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 3,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 3,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b78e'),\n",
- " 'loc': {'coordinates': [-0.678819, 52.032864], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 3,\n",
- " '1st_Road_Number': 421,\n",
- " '2nd_Road_Class': 3,\n",
- " '2nd_Road_Number': 5130,\n",
- " 'Accident_Index': '201243S075052',\n",
+ " 'Junction_Detail': 1,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
+ " 'LSOA_of_Accident_Location': 'E01016823',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.032864,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S103032',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 3,\n",
+ " '2nd_Road_Class': 5,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 5,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.678819,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 70,\n",
+ " 'Date': '20/03/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 3, 20, 16, 0),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.678819, 52.032864]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b703'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 5,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2},\n",
- " {'Age_Band_of_Casualty': 7,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 1,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 3,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 3,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 1,\n",
+ " 'Age_Band_of_Casualty': 7,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '16/05/2012',\n",
- " 'Datetime': datetime.datetime(2012, 5, 16, 11, 0),\n",
- " 'Day_of_Week': 4,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 1,\n",
- " 'LSOA_of_Accident_Location': 'E01016735',\n",
- " 'Latitude': 52.032852,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 490800,\n",
- " 'Location_Northing_OSGR': 237990,\n",
- " 'Longitude': -0.677799,\n",
- " 'Number_of_Casualties': 2,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 3,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 70,\n",
+ " '1st_Road_Number': 421,\n",
" 'Time': '11:00',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 9,\n",
- " 'Age_of_Vehicle': 1,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 6,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': 5130,\n",
+ " 'Location_Northing_OSGR': 237990,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 490800,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 4,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 6,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 1,\n",
+ " 'Skidding_and_Overturning': 0,\n",
+ " 'Towing_and_Articulation': 0,\n",
+ " 'Vehicle_Location-Restricted_Lane': 0,\n",
" 'Engine_Capacity_(CC)': 9200,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 9,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 21,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 1,\n",
- " 'Junction_Location': 1,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 1,\n",
+ " 'Age_of_Vehicle': 1,\n",
+ " 'Vehicle_Manoeuvre': 5,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 8,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 5,\n",
- " 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 21,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': 5,\n",
- " 'Age_of_Vehicle': 4,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 8,\n",
" 'Engine_Capacity_(CC)': 1299,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 5,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 1,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
- " 'Skidding_and_Overturning': 0,\n",
- " 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
- " 'Vehicle_Location-Restricted_Lane': 0,\n",
+ " 'Age_of_Vehicle': 4,\n",
" 'Vehicle_Manoeuvre': 3,\n",
- " 'Vehicle_Reference': 2,\n",
- " 'Vehicle_Type': 9,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b703'),\n",
- " 'loc': {'coordinates': [-0.677799, 52.032852], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 3,\n",
- " '1st_Road_Number': 421,\n",
- " '2nd_Road_Class': 3,\n",
- " '2nd_Road_Number': 5130,\n",
- " 'Accident_Index': '201243S091082',\n",
- " 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 9,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
- " 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
- " 'Casualty_Type': 21,\n",
- " 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
- " 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1}],\n",
- " 'Date': '28/08/2012',\n",
- " 'Datetime': datetime.datetime(2012, 8, 28, 15, 55),\n",
- " 'Day_of_Week': 3,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
" 'Junction_Detail': 1,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
" 'LSOA_of_Accident_Location': 'E01016735',\n",
- " 'Latitude': 52.033214,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 490790,\n",
- " 'Location_Northing_OSGR': 238030,\n",
- " 'Longitude': -0.677934,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 1,\n",
" 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.032852,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S075052',\n",
" 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
- " 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 1,\n",
+ " '1st_Road_Class': 3,\n",
+ " '2nd_Road_Class': 3,\n",
+ " 'Accident_Severity': 3,\n",
" 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.677799,\n",
+ " 'Junction_Control': 4,\n",
" 'Speed_limit': 70,\n",
+ " 'Date': '16/05/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 5, 16, 11, 0),\n",
+ " 'Number_of_Casualties': 2,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.677799, 52.032852]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b755'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
+ " 'Casualty_Class': 1,\n",
+ " 'Casualty_Type': 21,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
+ " 'Pedestrian_Location': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 9,\n",
+ " 'Pedestrian_Road_Maintenance_Worker': 0,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
+ " 'Road_Surface_Conditions': 1,\n",
+ " '1st_Road_Number': 421,\n",
" 'Time': '15:55',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 4,\n",
- " 'Age_Band_of_Driver': 9,\n",
- " 'Age_of_Vehicle': 4,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 4,\n",
- " 'Engine_Capacity_(CC)': 15607,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 1,\n",
+ " 'Road_Type': 1,\n",
+ " '2nd_Road_Number': 5130,\n",
+ " 'Location_Northing_OSGR': 238030,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 1,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 490790,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 3,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 4,\n",
+ " 'Vehicle_Leaving_Carriageway': 1,\n",
" 'Junction_Location': 3,\n",
- " 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 2,\n",
" 'Towing_and_Articulation': 1,\n",
- " 'Vehicle_Leaving_Carriageway': 1,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 15607,\n",
" 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 9,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 4,\n",
" 'Vehicle_Type': 21,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 1,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': 4,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b755'),\n",
- " 'loc': {'coordinates': [-0.677934, 52.033214], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 3,\n",
- " '1st_Road_Number': 421,\n",
- " '2nd_Road_Class': -1,\n",
- " '2nd_Road_Number': 0,\n",
- " 'Accident_Index': '201243S105082',\n",
+ " 'Junction_Detail': 1,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
+ " 'LSOA_of_Accident_Location': 'E01016735',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.033214,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S091082',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 3,\n",
+ " '2nd_Road_Class': 3,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 7,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.677934,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 70,\n",
+ " 'Date': '28/08/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 8, 28, 15, 55),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.677934, 52.033214]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b79d'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': -1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': -1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 7,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2},\n",
- " {'Age_Band_of_Casualty': 3,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 2,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': -1,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': -1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 2,\n",
+ " 'Age_Band_of_Casualty': 3,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2},\n",
- " {'Age_Band_of_Casualty': 4,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 2,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': -1,\n",
- " 'Casualty_Reference': 3,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 3,\n",
+ " 'Casualty_Home_Area_Type': -1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 2,\n",
+ " 'Age_Band_of_Casualty': 4,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '31/08/2012',\n",
- " 'Datetime': datetime.datetime(2012, 8, 31, 15, 35),\n",
- " 'Day_of_Week': 6,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': -1,\n",
- " 'Junction_Detail': 0,\n",
- " 'LSOA_of_Accident_Location': 'E01016823',\n",
- " 'Latitude': 52.033143,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 490670,\n",
- " 'Location_Northing_OSGR': 238020,\n",
- " 'Longitude': -0.679685,\n",
- " 'Number_of_Casualties': 3,\n",
- " 'Number_of_Vehicles': 4,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 3,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 70,\n",
+ " '1st_Road_Number': 421,\n",
" 'Time': '15:35',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 15,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 2,\n",
- " 'Engine_Capacity_(CC)': 2495,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 1,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': 0,\n",
+ " 'Location_Northing_OSGR': 238020,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 4,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 490670,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 6,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 2,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 1,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 2495,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': 12,\n",
- " 'Driver_Home_Area_Type': -1,\n",
- " 'Driver_IMD_Decile': -1,\n",
- " 'Engine_Capacity_(CC)': 1796,\n",
+ " 'Age_Band_of_Driver': 6,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 0,\n",
- " 'Propulsion_Code': 1,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
" 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 1,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': 15,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': -1,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 0,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 3,\n",
+ " 'Engine_Capacity_(CC)': 1796,\n",
" 'Vehicle_Reference': 2,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 10,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 9,\n",
- " 'Engine_Capacity_(CC)': 1596,\n",
+ " 'Age_Band_of_Driver': 7,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 0,\n",
+ " 'Driver_Home_Area_Type': -1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
+ " 'Age_of_Vehicle': 12,\n",
+ " 'Vehicle_Manoeuvre': 3,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 0,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 3,\n",
+ " 'Engine_Capacity_(CC)': 1596,\n",
" 'Vehicle_Reference': 3,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': 6,\n",
- " 'Driver_Home_Area_Type': 2,\n",
- " 'Driver_IMD_Decile': 8,\n",
- " 'Engine_Capacity_(CC)': 1995,\n",
+ " 'Age_Band_of_Driver': 6,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 10,\n",
+ " 'Vehicle_Manoeuvre': 3,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 8,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 3,\n",
+ " 'Engine_Capacity_(CC)': 1995,\n",
" 'Vehicle_Reference': 4,\n",
+ " 'Age_Band_of_Driver': 7,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 2,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': 6,\n",
+ " 'Vehicle_Manoeuvre': 3,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b79d'),\n",
- " 'loc': {'coordinates': [-0.679685, 52.033143], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 3,\n",
- " '1st_Road_Number': 421,\n",
- " '2nd_Road_Class': 3,\n",
- " '2nd_Road_Number': 5130,\n",
- " 'Accident_Index': '201243S161122',\n",
+ " 'Junction_Detail': 0,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016823',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.033143,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S105082',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 3,\n",
+ " '2nd_Road_Class': -1,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 5,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.679685,\n",
+ " 'Junction_Control': -1,\n",
+ " 'Speed_limit': 70,\n",
+ " 'Date': '31/08/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 8, 31, 15, 35),\n",
+ " 'Number_of_Casualties': 3,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.679685, 52.033143]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b854'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 5,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '31/12/2012',\n",
- " 'Datetime': datetime.datetime(2012, 12, 31, 17, 0),\n",
- " 'Day_of_Week': 2,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 2,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 1,\n",
- " 'LSOA_of_Accident_Location': 'E01016822',\n",
- " 'Latitude': 52.032966,\n",
- " 'Light_Conditions': 4,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 490767,\n",
- " 'Location_Northing_OSGR': 238002,\n",
- " 'Longitude': -0.678276,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 1,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 60,\n",
+ " '1st_Road_Number': 421,\n",
" 'Time': '17:00',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 8,\n",
- " 'Age_of_Vehicle': 8,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 8,\n",
- " 'Engine_Capacity_(CC)': 1299,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 5,\n",
+ " 'Road_Type': 1,\n",
+ " '2nd_Road_Number': 5130,\n",
+ " 'Location_Northing_OSGR': 238002,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 490767,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 2,\n",
+ " 'Light_Conditions': 4,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 8,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 1,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 4,\n",
+ " 'Engine_Capacity_(CC)': 1299,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': 5,\n",
- " 'Age_of_Vehicle': 12,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 8,\n",
- " 'Engine_Capacity_(CC)': 1149,\n",
+ " 'Age_Band_of_Driver': 8,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 5,\n",
- " 'Junction_Location': 1,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
+ " 'Age_of_Vehicle': 8,\n",
+ " 'Vehicle_Manoeuvre': 4,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 8,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 3,\n",
+ " 'Engine_Capacity_(CC)': 1149,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 5,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 5,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 12,\n",
+ " 'Vehicle_Manoeuvre': 3,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b854'),\n",
- " 'loc': {'coordinates': [-0.678276, 52.032966], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 6,\n",
- " '1st_Road_Number': 1103,\n",
- " '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1103,\n",
- " 'Accident_Index': '201243S088122',\n",
+ " 'Junction_Detail': 1,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
+ " 'LSOA_of_Accident_Location': 'E01016822',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.032966,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 2,\n",
+ " 'Accident_Index': '201243S161122',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 3,\n",
+ " '2nd_Road_Class': 3,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 8,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.678276,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 60,\n",
+ " 'Date': '31/12/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 12, 31, 17, 0),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.678276, 52.032966]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b747'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 8,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '17/12/2012',\n",
- " 'Datetime': datetime.datetime(2012, 12, 17, 13, 2),\n",
- " 'Day_of_Week': 2,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 3,\n",
- " 'LSOA_of_Accident_Location': 'E01016823',\n",
- " 'Latitude': 52.031524,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 490347,\n",
- " 'Location_Northing_OSGR': 237834,\n",
- " 'Longitude': -0.684441,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 30,\n",
+ " '1st_Road_Number': 1103,\n",
" 'Time': '13:02',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 8,\n",
- " 'Age_of_Vehicle': 2,\n",
- " 'Driver_Home_Area_Type': 2,\n",
- " 'Driver_IMD_Decile': 10,\n",
- " 'Engine_Capacity_(CC)': 9200,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 1,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 1103,\n",
+ " 'Location_Northing_OSGR': 237834,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 490347,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 2,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 10,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 8,\n",
- " 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 1,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 5,\n",
+ " 'Engine_Capacity_(CC)': 9200,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 21,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 3,\n",
" 'Age_Band_of_Driver': 8,\n",
- " 'Age_of_Vehicle': 7,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 5,\n",
- " 'Engine_Capacity_(CC)': 1398,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 2,\n",
- " 'Junction_Location': 8,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 21,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 1,\n",
+ " 'Driver_Home_Area_Type': 2,\n",
" 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 2,\n",
+ " 'Age_of_Vehicle': 2,\n",
+ " 'Vehicle_Manoeuvre': 5,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 5,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 8,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1398,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 8,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 3,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 2,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': 7,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b747'),\n",
- " 'loc': {'coordinates': [-0.684441, 52.031524], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 3,\n",
- " '1st_Road_Number': 5130,\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016823',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.031524,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S088122',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 6,\n",
" '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1103,\n",
- " 'Accident_Index': '201243S085032',\n",
- " 'Accident_Severity': 2,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 10,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 1,\n",
+ " 'Accident_Severity': 3,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.684441,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 30,\n",
+ " 'Date': '17/12/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 12, 17, 13, 2),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.684441, 52.031524]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b733'),\n",
+ " 'Casualties': [{'Casualty_Severity': 2,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 2,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 1,\n",
+ " 'Age_Band_of_Casualty': 10,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 10,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 3,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 3,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 10,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 7,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 1,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 1,\n",
+ " 'Age_Band_of_Casualty': 7,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2},\n",
- " {'Age_Band_of_Casualty': 6,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
- " 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 4,\n",
- " 'Casualty_Severity': 3,\n",
- " 'Casualty_Type': 9,\n",
- " 'Pedestrian_Location': 0,\n",
" 'Pedestrian_Movement': 0,\n",
- " 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '07/03/2012',\n",
- " 'Datetime': datetime.datetime(2012, 3, 7, 12, 46),\n",
- " 'Day_of_Week': 4,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 3,\n",
- " 'LSOA_of_Accident_Location': 'E01016783',\n",
- " 'Latitude': 52.036703,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 490890,\n",
- " 'Location_Northing_OSGR': 238420,\n",
- " 'Longitude': -0.676373,\n",
- " 'Number_of_Casualties': 4,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Sex_of_Casualty': 2},\n",
+ " {'Casualty_Severity': 3,\n",
+ " 'Casualty_Class': 1,\n",
+ " 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 4,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
+ " 'Pedestrian_Location': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
+ " 'Pedestrian_Road_Maintenance_Worker': 0,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 40,\n",
+ " '1st_Road_Number': 5130,\n",
" 'Time': '12:46',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 10,\n",
- " 'Age_of_Vehicle': 1,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 8,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 1103,\n",
+ " 'Location_Northing_OSGR': 238420,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 490890,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 4,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 8,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 6,\n",
+ " 'Skidding_and_Overturning': 0,\n",
+ " 'Towing_and_Articulation': 0,\n",
+ " 'Vehicle_Location-Restricted_Lane': 0,\n",
" 'Engine_Capacity_(CC)': 1248,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 10,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
+ " 'Age_of_Vehicle': 1,\n",
+ " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 8,\n",
+ " 'Vehicle_Leaving_Carriageway': 7,\n",
+ " 'Junction_Location': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 9,\n",
- " 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 1,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 8,\n",
" 'Engine_Capacity_(CC)': 1799,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 6,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 2,\n",
- " 'Junction_Location': 1,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
- " 'Skidding_and_Overturning': 0,\n",
- " 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 7,\n",
- " 'Vehicle_Location-Restricted_Lane': 0,\n",
+ " 'Age_of_Vehicle': 1,\n",
" 'Vehicle_Manoeuvre': 18,\n",
- " 'Vehicle_Reference': 2,\n",
- " 'Vehicle_Type': 9,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 2,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b733'),\n",
- " 'loc': {'coordinates': [-0.676373, 52.036703], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 3,\n",
- " '1st_Road_Number': 5130,\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
+ " 'LSOA_of_Accident_Location': 'E01016783',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.036703,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S085032',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 3,\n",
" '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1103,\n",
- " 'Accident_Index': '201243S121072',\n",
- " 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 7,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Accident_Severity': 2,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.676373,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 40,\n",
+ " 'Date': '07/03/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 3, 7, 12, 46),\n",
+ " 'Number_of_Casualties': 4,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.676373, 52.036703]},\n",
+ " 'Weather_Conditions': 2},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b7f1'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 7,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2},\n",
- " {'Age_Band_of_Casualty': 7,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 1,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 1,\n",
+ " 'Age_Band_of_Casualty': 7,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2},\n",
- " {'Age_Band_of_Casualty': 1,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 2,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 3,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 3,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 2,\n",
+ " 'Age_Band_of_Casualty': 1,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '29/07/2012',\n",
- " 'Datetime': datetime.datetime(2012, 7, 29, 13, 45),\n",
- " 'Day_of_Week': 1,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 3,\n",
- " 'LSOA_of_Accident_Location': 'E01016783',\n",
- " 'Latitude': 52.036703,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 490890,\n",
- " 'Location_Northing_OSGR': 238420,\n",
- " 'Longitude': -0.676373,\n",
- " 'Number_of_Casualties': 3,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 40,\n",
+ " '1st_Road_Number': 5130,\n",
" 'Time': '13:45',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 5,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 4,\n",
- " 'Engine_Capacity_(CC)': 1596,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 1103,\n",
+ " 'Location_Northing_OSGR': 238420,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 490890,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 1,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 4,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 8,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Engine_Capacity_(CC)': 1596,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': 7,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 4,\n",
- " 'Engine_Capacity_(CC)': 1769,\n",
+ " 'Age_Band_of_Driver': 6,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 1,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
+ " 'Age_of_Vehicle': 5,\n",
+ " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 4,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1769,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 7,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 7,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b7f1'),\n",
- " 'loc': {'coordinates': [-0.676373, 52.036703], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 1,\n",
- " '1st_Road_Number': 1,\n",
- " '2nd_Road_Class': -1,\n",
- " '2nd_Road_Number': 0,\n",
- " 'Accident_Index': '201243S072112',\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
+ " 'LSOA_of_Accident_Location': 'E01016783',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.036703,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S121072',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 3,\n",
+ " '2nd_Road_Class': 6,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 2,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 2,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.676373,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 40,\n",
+ " 'Date': '29/07/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 7, 29, 13, 45),\n",
+ " 'Number_of_Casualties': 3,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.676373, 52.036703]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b6f6'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 2,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 2,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 2,\n",
+ " 'Age_Band_of_Casualty': 2,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2},\n",
- " {'Age_Band_of_Casualty': 2,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 2,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 2,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 2,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 2,\n",
+ " 'Age_Band_of_Casualty': 2,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2},\n",
- " {'Age_Band_of_Casualty': 1,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 2,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 2,\n",
- " 'Casualty_Reference': 3,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 3,\n",
+ " 'Casualty_Home_Area_Type': 2,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 2,\n",
+ " 'Age_Band_of_Casualty': 1,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '18/11/2012',\n",
- " 'Datetime': datetime.datetime(2012, 11, 18, 9, 10),\n",
- " 'Day_of_Week': 1,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': -1,\n",
- " 'Junction_Detail': 0,\n",
- " 'LSOA_of_Accident_Location': 'E01016803',\n",
- " 'Latitude': 52.05128,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 490790,\n",
- " 'Location_Northing_OSGR': 240040,\n",
- " 'Longitude': -0.6774,\n",
- " 'Number_of_Casualties': 3,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 3,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 70,\n",
+ " '1st_Road_Number': 1,\n",
" 'Time': '09:10',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 4,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 10,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 1,\n",
- " 'Engine_Capacity_(CC)': 1598,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 9,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': 0,\n",
+ " 'Location_Northing_OSGR': 240040,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 490790,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 1,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 1,\n",
+ " 'Vehicle_Leaving_Carriageway': 1,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 1,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 1,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
- " 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 3,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': 11,\n",
- " 'Driver_Home_Area_Type': 2,\n",
- " 'Driver_IMD_Decile': 8,\n",
" 'Engine_Capacity_(CC)': 1598,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 6,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 9,\n",
+ " '1st_Point_of_Impact': 4,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 0,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
+ " 'Age_of_Vehicle': 10,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 8,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 0,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1598,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 7,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 3,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 2,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 11,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b6f6'),\n",
- " 'loc': {'coordinates': [-0.6774, 52.05128], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 1,\n",
- " '1st_Road_Number': 1,\n",
+ " 'Junction_Detail': 0,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
+ " 'LSOA_of_Accident_Location': 'E01016803',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.05128,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S072112',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 1,\n",
" '2nd_Road_Class': -1,\n",
- " '2nd_Road_Number': 0,\n",
- " 'Accident_Index': '201243S134112',\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 6,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.6774,\n",
+ " 'Junction_Control': -1,\n",
+ " 'Speed_limit': 70,\n",
+ " 'Date': '18/11/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 11, 18, 9, 10),\n",
+ " 'Number_of_Casualties': 3,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.6774, 52.05128]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b829'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '30/11/2012',\n",
- " 'Datetime': datetime.datetime(2012, 11, 30, 19, 55),\n",
- " 'Day_of_Week': 6,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': -1,\n",
- " 'Junction_Detail': 0,\n",
- " 'LSOA_of_Accident_Location': 'E01016785',\n",
- " 'Latitude': 52.051292,\n",
- " 'Light_Conditions': 5,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 490720,\n",
- " 'Location_Northing_OSGR': 240040,\n",
- " 'Longitude': -0.678421,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 3,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 70,\n",
+ " '1st_Road_Number': 1,\n",
" 'Time': '19:55',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 3,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': -1,\n",
- " 'Driver_IMD_Decile': -1,\n",
- " 'Engine_Capacity_(CC)': -1,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 1,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': 0,\n",
+ " 'Location_Northing_OSGR': 240040,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 490720,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 6,\n",
+ " 'Light_Conditions': 5,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': -1,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': -1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 1,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 12,\n",
+ " 'Engine_Capacity_(CC)': -1,\n",
" 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 7,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 3,\n",
" 'Vehicle_Type': 21,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 1,\n",
+ " 'Driver_Home_Area_Type': -1,\n",
+ " 'Propulsion_Code': -1,\n",
+ " 'Age_of_Vehicle': -1,\n",
+ " 'Vehicle_Manoeuvre': 12,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 2},\n",
- " {'1st_Point_of_Impact': 4,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 15,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 8,\n",
- " 'Engine_Capacity_(CC)': 1390,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 9,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " {'Driver_IMD_Decile': 8,\n",
+ " 'Vehicle_Leaving_Carriageway': 1,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 1,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 13,\n",
+ " 'Engine_Capacity_(CC)': 1390,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 6,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 9,\n",
+ " '1st_Point_of_Impact': 4,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 15,\n",
+ " 'Vehicle_Manoeuvre': 13,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b829'),\n",
- " 'loc': {'coordinates': [-0.678421, 52.051292], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 3,\n",
- " '1st_Road_Number': 4146,\n",
+ " 'Junction_Detail': 0,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
+ " 'LSOA_of_Accident_Location': 'E01016785',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.051292,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S134112',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 1,\n",
" '2nd_Road_Class': -1,\n",
- " '2nd_Road_Number': 0,\n",
- " 'Accident_Index': '201243S150052',\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 5,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.678421,\n",
+ " 'Junction_Control': -1,\n",
+ " 'Speed_limit': 70,\n",
+ " 'Date': '30/11/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 11, 30, 19, 55),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.678421, 52.051292]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b84b'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 5,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 1}],\n",
- " 'Date': '31/05/2012',\n",
- " 'Datetime': datetime.datetime(2012, 5, 31, 7, 30),\n",
- " 'Day_of_Week': 5,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': -1,\n",
- " 'Junction_Detail': 0,\n",
- " 'LSOA_of_Accident_Location': 'E01016785',\n",
- " 'Latitude': 52.042676,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 489530,\n",
- " 'Location_Northing_OSGR': 239060,\n",
- " 'Longitude': -0.696027,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 1,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 3,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 70,\n",
+ " '1st_Road_Number': 4146,\n",
" 'Time': '07:30',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 4,\n",
- " 'Age_Band_of_Driver': 5,\n",
- " 'Age_of_Vehicle': 8,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 8,\n",
- " 'Engine_Capacity_(CC)': 1150,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': 0,\n",
+ " 'Location_Northing_OSGR': 239060,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 1,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 489530,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 5,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 8,\n",
+ " 'Vehicle_Leaving_Carriageway': 1,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 5,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 1,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1150,\n",
" 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 5,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 4,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 8,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b84b'),\n",
- " 'loc': {'coordinates': [-0.696027, 52.042676], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 3,\n",
- " '1st_Road_Number': 4146,\n",
- " '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1103,\n",
- " 'Accident_Index': '201243S041072',\n",
+ " 'Junction_Detail': 0,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016785',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.042676,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S150052',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 3,\n",
+ " '2nd_Road_Class': -1,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 7,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.696027,\n",
+ " 'Junction_Control': -1,\n",
+ " 'Speed_limit': 70,\n",
+ " 'Date': '31/05/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 5, 31, 7, 30),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.696027, 52.042676]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b668'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 7,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1}],\n",
- " 'Date': '08/07/2012',\n",
- " 'Datetime': datetime.datetime(2012, 7, 8, 1, 5),\n",
- " 'Day_of_Week': 1,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 3,\n",
- " 'LSOA_of_Accident_Location': 'E01016785',\n",
- " 'Latitude': 52.043944,\n",
- " 'Light_Conditions': 4,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 489470,\n",
- " 'Location_Northing_OSGR': 239200,\n",
- " 'Longitude': -0.696865,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 3,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 70,\n",
+ " '1st_Road_Number': 4146,\n",
" 'Time': '01:05',\n",
- " 'Urban_or_Rural_Area': 1,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': 11,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 3,\n",
- " 'Engine_Capacity_(CC)': 998,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': 1103,\n",
+ " 'Location_Northing_OSGR': 239200,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 489470,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 1,\n",
+ " 'Light_Conditions': 4,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 3,\n",
+ " 'Vehicle_Leaving_Carriageway': 1,\n",
" 'Junction_Location': 6,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 1,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 7,\n",
+ " 'Engine_Capacity_(CC)': 998,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 5,\n",
- " 'Age_of_Vehicle': 2,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 5,\n",
- " 'Engine_Capacity_(CC)': 1390,\n",
+ " 'Age_Band_of_Driver': 7,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 1,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
+ " 'Age_of_Vehicle': 11,\n",
+ " 'Vehicle_Manoeuvre': 7,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 5,\n",
+ " 'Vehicle_Leaving_Carriageway': 4,\n",
+ " 'Junction_Location': 1,\n",
" 'Skidding_and_Overturning': 1,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 4,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 12,\n",
+ " 'Engine_Capacity_(CC)': 1390,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 5,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 2,\n",
+ " 'Vehicle_Manoeuvre': 12,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b668'),\n",
- " 'loc': {'coordinates': [-0.696865, 52.043944], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 6,\n",
- " '1st_Road_Number': 1103,\n",
- " '2nd_Road_Class': -1,\n",
- " '2nd_Road_Number': 0,\n",
- " 'Accident_Index': '201243S076092',\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 1,\n",
+ " 'LSOA_of_Accident_Location': 'E01016785',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.043944,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S041072',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 3,\n",
+ " '2nd_Road_Class': 6,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 4,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.696865,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 70,\n",
+ " 'Date': '08/07/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 7, 8, 1, 5),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.696865, 52.043944]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b70c'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 3,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 0,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 6,\n",
- " 'Pedestrian_Movement': 9,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 4,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 1}],\n",
- " 'Date': '18/09/2012',\n",
- " 'Datetime': datetime.datetime(2012, 9, 18, 22, 0),\n",
- " 'Day_of_Week': 3,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 2,\n",
- " 'Junction_Control': -1,\n",
- " 'Junction_Detail': 0,\n",
- " 'LSOA_of_Accident_Location': 'E01016785',\n",
- " 'Latitude': 52.041023,\n",
- " 'Light_Conditions': 4,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 489750,\n",
- " 'Location_Northing_OSGR': 238880,\n",
- " 'Longitude': -0.692867,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 1,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 9,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 30,\n",
+ " '1st_Road_Number': 1103,\n",
" 'Time': '22:00',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 0,\n",
- " 'Age_Band_of_Driver': 8,\n",
- " 'Age_of_Vehicle': 5,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 8,\n",
- " 'Engine_Capacity_(CC)': 1896,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 1,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 0,\n",
+ " 'Location_Northing_OSGR': 238880,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 1,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 489750,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 3,\n",
+ " 'Light_Conditions': 4,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 8,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 5,\n",
+ " 'Engine_Capacity_(CC)': 1896,\n",
" 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 8,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 0,\n",
" 'Vehicle_Type': 8,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 1,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': 5,\n",
+ " 'Vehicle_Manoeuvre': 5,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b70c'),\n",
- " 'loc': {'coordinates': [-0.692867, 52.041023], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 3,\n",
- " '1st_Road_Number': 5130,\n",
- " '2nd_Road_Class': 5,\n",
- " '2nd_Road_Number': 40,\n",
- " 'Accident_Index': '201243S126122',\n",
+ " 'Junction_Detail': 0,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
+ " 'LSOA_of_Accident_Location': 'E01016785',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.041023,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 2,\n",
+ " 'Accident_Index': '201243S076092',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 6,\n",
+ " '2nd_Road_Class': -1,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 10,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 1,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.692867,\n",
+ " 'Junction_Control': -1,\n",
+ " 'Speed_limit': 30,\n",
+ " 'Date': '18/09/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 9, 18, 22, 0),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.692867, 52.041023]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b80c'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 2,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 2,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 1,\n",
+ " 'Age_Band_of_Casualty': 10,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2},\n",
- " {'Age_Band_of_Casualty': 10,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 2,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 2,\n",
+ " 'Age_Band_of_Casualty': 10,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '22/12/2012',\n",
- " 'Datetime': datetime.datetime(2012, 12, 22, 17, 37),\n",
- " 'Day_of_Week': 7,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 3,\n",
- " 'LSOA_of_Accident_Location': 'E01016785',\n",
- " 'Latitude': 52.050415,\n",
- " 'Light_Conditions': 4,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 489699,\n",
- " 'Location_Northing_OSGR': 239924,\n",
- " 'Longitude': -0.693337,\n",
- " 'Number_of_Casualties': 2,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 30,\n",
+ " '1st_Road_Number': 5130,\n",
" 'Time': '17:37',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 10,\n",
- " 'Age_of_Vehicle': 4,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 9,\n",
- " 'Engine_Capacity_(CC)': 1422,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 5,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 40,\n",
+ " 'Location_Northing_OSGR': 239924,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 489699,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 7,\n",
+ " 'Light_Conditions': 4,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 8,\n",
- " 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Engine_Capacity_(CC)': 1422,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 1,\n",
" 'Age_Band_of_Driver': 10,\n",
- " 'Age_of_Vehicle': 5,\n",
- " 'Driver_Home_Area_Type': 2,\n",
- " 'Driver_IMD_Decile': 9,\n",
- " 'Engine_Capacity_(CC)': 1242,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 5,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': 4,\n",
+ " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 8,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 1,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1242,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 10,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 5,\n",
+ " 'Driver_Home_Area_Type': 2,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 5,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 2,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b80c'),\n",
- " 'loc': {'coordinates': [-0.693337, 52.050415], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 1,\n",
- " '1st_Road_Number': 1,\n",
- " '2nd_Road_Class': -1,\n",
- " '2nd_Road_Number': 0,\n",
- " 'Accident_Index': '201243S019022',\n",
- " 'Accident_Severity': 2,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 6,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
+ " 'LSOA_of_Accident_Location': 'E01016785',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.050415,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S126122',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 3,\n",
+ " '2nd_Road_Class': 5,\n",
+ " 'Accident_Severity': 3,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.693337,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 30,\n",
+ " 'Date': '22/12/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 12, 22, 17, 37),\n",
+ " 'Number_of_Casualties': 2,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.693337, 52.050415]},\n",
+ " 'Weather_Conditions': 2},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b5fa'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2},\n",
- " {'Age_Band_of_Casualty': 9,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 1,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1},\n",
+ " {'Casualty_Severity': 2,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 2,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 1,\n",
+ " 'Age_Band_of_Casualty': 9,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '01/02/2012',\n",
- " 'Datetime': datetime.datetime(2012, 2, 1, 9, 0),\n",
- " 'Day_of_Week': 4,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': -1,\n",
- " 'Junction_Detail': 0,\n",
- " 'LSOA_of_Accident_Location': 'E01016785',\n",
- " 'Latitude': 52.0553,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 489840,\n",
- " 'Location_Northing_OSGR': 240470,\n",
- " 'Longitude': -0.691138,\n",
- " 'Number_of_Casualties': 2,\n",
- " 'Number_of_Vehicles': 3,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 3,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 70,\n",
+ " '1st_Road_Number': 1,\n",
" 'Time': '09:00',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 5,\n",
- " 'Age_of_Vehicle': 9,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 8,\n",
- " 'Engine_Capacity_(CC)': 2496,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': 0,\n",
+ " 'Location_Northing_OSGR': 240470,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 3,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 489840,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 4,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 8,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 1,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 2496,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 9,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 6,\n",
- " 'Engine_Capacity_(CC)': 1396,\n",
+ " 'Age_Band_of_Driver': 5,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': 9,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 6,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 3,\n",
+ " 'Engine_Capacity_(CC)': 1396,\n",
" 'Vehicle_Reference': 2,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
" 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 8,\n",
- " 'Driver_Home_Area_Type': 2,\n",
- " 'Driver_IMD_Decile': 9,\n",
- " 'Engine_Capacity_(CC)': 1998,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 0,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
+ " 'Age_of_Vehicle': 9,\n",
+ " 'Vehicle_Manoeuvre': 3,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 0,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 3,\n",
+ " 'Engine_Capacity_(CC)': 1998,\n",
" 'Vehicle_Reference': 3,\n",
+ " 'Age_Band_of_Driver': 6,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 2,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 8,\n",
+ " 'Vehicle_Manoeuvre': 3,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b5fa'),\n",
- " 'loc': {'coordinates': [-0.691138, 52.0553], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 1,\n",
- " '1st_Road_Number': 1,\n",
+ " 'Junction_Detail': 0,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
+ " 'LSOA_of_Accident_Location': 'E01016785',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.0553,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S019022',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 1,\n",
" '2nd_Road_Class': -1,\n",
- " '2nd_Road_Number': 0,\n",
- " 'Accident_Index': '201243S032112',\n",
" 'Accident_Severity': 2,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 7,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.691138,\n",
+ " 'Junction_Control': -1,\n",
+ " 'Speed_limit': 70,\n",
+ " 'Date': '01/02/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 2, 1, 9, 0),\n",
+ " 'Number_of_Casualties': 2,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.691138, 52.0553]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b638'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 21,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 7,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 8,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1},\n",
+ " {'Casualty_Severity': 2,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 2,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 8,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2},\n",
- " {'Age_Band_of_Casualty': 6,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 3,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 3,\n",
+ " 'Casualty_Reference': 3,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 3},\n",
- " {'Age_Band_of_Casualty': 8,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 4,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 4,\n",
+ " 'Casualty_Reference': 4,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 8,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 4},\n",
- " {'Age_Band_of_Casualty': 8,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 5,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 5,\n",
+ " 'Casualty_Reference': 5,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 8,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 5},\n",
- " {'Age_Band_of_Casualty': 9,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 6,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 7,\n",
+ " 'Casualty_Reference': 6,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 9,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 7}],\n",
- " 'Date': '09/11/2012',\n",
- " 'Datetime': datetime.datetime(2012, 11, 9, 8, 30),\n",
- " 'Day_of_Week': 6,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': -1,\n",
- " 'Junction_Detail': 0,\n",
- " 'LSOA_of_Accident_Location': 'E01016785',\n",
- " 'Latitude': 52.055672,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 489760,\n",
- " 'Location_Northing_OSGR': 240510,\n",
- " 'Longitude': -0.692294,\n",
- " 'Number_of_Casualties': 6,\n",
- " 'Number_of_Vehicles': 7,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 3,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 70,\n",
+ " '1st_Road_Number': 1,\n",
" 'Time': '08:30',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': 1,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 4,\n",
- " 'Engine_Capacity_(CC)': 12777,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 1,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': 0,\n",
+ " 'Location_Northing_OSGR': 240510,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 7,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 489760,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 6,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 4,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 1,\n",
" 'Towing_and_Articulation': 1,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 12777,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 21,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': 8,\n",
- " 'Age_of_Vehicle': 8,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 10,\n",
- " 'Engine_Capacity_(CC)': 1199,\n",
+ " 'Age_Band_of_Driver': 7,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 2,\n",
- " 'Junction_Location': 0,\n",
- " 'Propulsion_Code': 1,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 21,\n",
" 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 1,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': 1,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 10,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 0,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 4,\n",
+ " 'Engine_Capacity_(CC)': 1199,\n",
" 'Vehicle_Reference': 2,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 6,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 7,\n",
- " 'Engine_Capacity_(CC)': 1560,\n",
+ " 'Age_Band_of_Driver': 8,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 2,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 8,\n",
+ " 'Vehicle_Manoeuvre': 4,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 7,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 4,\n",
+ " 'Engine_Capacity_(CC)': 1560,\n",
" 'Vehicle_Reference': 3,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': 8,\n",
- " 'Age_of_Vehicle': 5,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 9,\n",
- " 'Engine_Capacity_(CC)': 1796,\n",
+ " 'Age_Band_of_Driver': 6,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 2,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': 6,\n",
+ " 'Vehicle_Manoeuvre': 4,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 4,\n",
+ " 'Engine_Capacity_(CC)': 1796,\n",
" 'Vehicle_Reference': 4,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
" 'Age_Band_of_Driver': 8,\n",
- " 'Age_of_Vehicle': 5,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 7,\n",
- " 'Engine_Capacity_(CC)': 1149,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 2,\n",
- " 'Junction_Location': 0,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
+ " 'Age_of_Vehicle': 5,\n",
+ " 'Vehicle_Manoeuvre': 4,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 7,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 0,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 4,\n",
+ " 'Engine_Capacity_(CC)': 1149,\n",
" 'Vehicle_Reference': 5,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': 10,\n",
- " 'Driver_Home_Area_Type': 2,\n",
- " 'Driver_IMD_Decile': 10,\n",
- " 'Engine_Capacity_(CC)': 2148,\n",
+ " 'Age_Band_of_Driver': 8,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 2,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 5,\n",
+ " 'Vehicle_Manoeuvre': 4,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 10,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 4,\n",
+ " 'Engine_Capacity_(CC)': 2148,\n",
" 'Vehicle_Reference': 6,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': 9,\n",
- " 'Age_of_Vehicle': 5,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 6,\n",
- " 'Engine_Capacity_(CC)': 2982,\n",
+ " 'Age_Band_of_Driver': 7,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 2,\n",
- " 'Junction_Location': 0,\n",
+ " 'Driver_Home_Area_Type': 2,\n",
" 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 2,\n",
+ " 'Age_of_Vehicle': 10,\n",
+ " 'Vehicle_Manoeuvre': 4,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 6,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 0,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 4,\n",
+ " 'Engine_Capacity_(CC)': 2982,\n",
" 'Vehicle_Reference': 7,\n",
+ " 'Age_Band_of_Driver': 9,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 2,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': 5,\n",
+ " 'Vehicle_Manoeuvre': 4,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b638'),\n",
- " 'loc': {'coordinates': [-0.692294, 52.055672], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 1,\n",
- " '1st_Road_Number': 1,\n",
+ " 'Junction_Detail': 0,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
+ " 'LSOA_of_Accident_Location': 'E01016785',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.055672,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S032112',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 1,\n",
" '2nd_Road_Class': -1,\n",
- " '2nd_Road_Number': 0,\n",
- " 'Accident_Index': '201243S111022',\n",
- " 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 9,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Accident_Severity': 2,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.692294,\n",
+ " 'Junction_Control': -1,\n",
+ " 'Speed_limit': 70,\n",
+ " 'Date': '09/11/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 11, 9, 8, 30),\n",
+ " 'Number_of_Casualties': 6,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.692294, 52.055672]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b7b9'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 19,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 9,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '13/02/2012',\n",
- " 'Datetime': datetime.datetime(2012, 2, 13, 8, 15),\n",
- " 'Day_of_Week': 2,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 2,\n",
- " 'Junction_Control': -1,\n",
- " 'Junction_Detail': 0,\n",
- " 'LSOA_of_Accident_Location': 'E01016785',\n",
- " 'Latitude': 52.056225,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 489680,\n",
- " 'Location_Northing_OSGR': 240570,\n",
- " 'Longitude': -0.693444,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 3,\n",
- " 'Special_Conditions_at_Site': 4,\n",
- " 'Speed_limit': 70,\n",
+ " '1st_Road_Number': 1,\n",
" 'Time': '08:15',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 2,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 10,\n",
- " 'Engine_Capacity_(CC)': 1595,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': 0,\n",
+ " 'Location_Northing_OSGR': 240570,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 489680,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 2,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 10,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1595,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': 9,\n",
- " 'Age_of_Vehicle': 3,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 4,\n",
- " 'Engine_Capacity_(CC)': 2198,\n",
+ " 'Age_Band_of_Driver': 6,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 0,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 1,\n",
+ " 'Age_of_Vehicle': 2,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 4,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 0,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 4,\n",
+ " 'Engine_Capacity_(CC)': 2198,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 9,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
" 'Vehicle_Type': 19,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': 3,\n",
+ " 'Vehicle_Manoeuvre': 4,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b7b9'),\n",
- " 'loc': {'coordinates': [-0.693444, 52.056225], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 1,\n",
- " '1st_Road_Number': 1,\n",
+ " 'Junction_Detail': 0,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
+ " 'LSOA_of_Accident_Location': 'E01016785',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.056225,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 2,\n",
+ " 'Accident_Index': '201243S111022',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 1,\n",
" '2nd_Road_Class': -1,\n",
- " '2nd_Road_Number': 0,\n",
- " 'Accident_Index': '201243S034072',\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 10,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 4,\n",
+ " 'Longitude': -0.693444,\n",
+ " 'Junction_Control': -1,\n",
+ " 'Speed_limit': 70,\n",
+ " 'Date': '13/02/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 2, 13, 8, 15),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.693444, 52.056225]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b642'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 3,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 10,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 3}],\n",
- " 'Date': '09/07/2012',\n",
- " 'Datetime': datetime.datetime(2012, 7, 9, 12, 15),\n",
- " 'Day_of_Week': 2,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': -1,\n",
- " 'Junction_Detail': 0,\n",
- " 'LSOA_of_Accident_Location': 'E01016785',\n",
- " 'Latitude': 52.05595,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 489710,\n",
- " 'Location_Northing_OSGR': 240540,\n",
- " 'Longitude': -0.693015,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 3,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 3,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 70,\n",
+ " '1st_Road_Number': 1,\n",
" 'Time': '12:15',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 4,\n",
- " 'Age_Band_of_Driver': 9,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 3,\n",
- " 'Engine_Capacity_(CC)': -1,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': 0,\n",
+ " 'Location_Northing_OSGR': 240540,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 3,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 489710,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 2,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 3,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': -1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 11,\n",
- " 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 8,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': -1,\n",
- " 'Driver_IMD_Decile': -1,\n",
" 'Engine_Capacity_(CC)': -1,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 9,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 1,\n",
- " 'Junction_Location': 0,\n",
- " 'Propulsion_Code': -1,\n",
+ " '1st_Point_of_Impact': 4,\n",
+ " 'Vehicle_Type': 9,\n",
" 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': -1,\n",
+ " 'Age_of_Vehicle': -1,\n",
+ " 'Vehicle_Manoeuvre': 11,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': -1,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 0,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 1,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': -1,\n",
" 'Vehicle_Reference': 2,\n",
- " 'Vehicle_Type': 21,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 2},\n",
- " {'1st_Point_of_Impact': 3,\n",
- " 'Age_Band_of_Driver': 10,\n",
- " 'Age_of_Vehicle': 4,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 6,\n",
- " 'Engine_Capacity_(CC)': 1388,\n",
+ " 'Age_Band_of_Driver': 8,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 21,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 1,\n",
+ " 'Driver_Home_Area_Type': -1,\n",
+ " 'Propulsion_Code': -1,\n",
+ " 'Age_of_Vehicle': -1,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 2},\n",
+ " {'Driver_IMD_Decile': 6,\n",
+ " 'Vehicle_Leaving_Carriageway': 1,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 2,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 1,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1388,\n",
" 'Vehicle_Reference': 3,\n",
+ " 'Age_Band_of_Driver': 10,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 3,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 4,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b642'),\n",
- " 'loc': {'coordinates': [-0.693015, 52.05595], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 1,\n",
- " '1st_Road_Number': 1,\n",
- " '2nd_Road_Class': 1,\n",
- " '2nd_Road_Number': 1,\n",
- " 'Accident_Index': '201243S068102',\n",
+ " 'Junction_Detail': 0,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
+ " 'LSOA_of_Accident_Location': 'E01016785',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.05595,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S034072',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 1,\n",
+ " '2nd_Road_Class': -1,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 8,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.693015,\n",
+ " 'Junction_Control': -1,\n",
+ " 'Speed_limit': 70,\n",
+ " 'Date': '09/07/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 7, 9, 12, 15),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.693015, 52.05595]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b6e2'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 8,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '15/10/2012',\n",
- " 'Datetime': datetime.datetime(2012, 10, 15, 9, 6),\n",
- " 'Day_of_Week': 2,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 5,\n",
- " 'LSOA_of_Accident_Location': 'E01016785',\n",
- " 'Latitude': 52.056417,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 489600,\n",
- " 'Location_Northing_OSGR': 240590,\n",
- " 'Longitude': -0.694606,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 3,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 70,\n",
+ " '1st_Road_Number': 1,\n",
" 'Time': '09:06',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 8,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': -1,\n",
- " 'Driver_IMD_Decile': -1,\n",
- " 'Engine_Capacity_(CC)': -1,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 1,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': 1,\n",
+ " 'Location_Northing_OSGR': 240590,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 489600,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 2,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': -1,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 1,\n",
- " 'Propulsion_Code': -1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 1,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': -1,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 21,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 2},\n",
- " {'1st_Point_of_Impact': 4,\n",
" 'Age_Band_of_Driver': 8,\n",
- " 'Age_of_Vehicle': 13,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 3,\n",
- " 'Engine_Capacity_(CC)': 4266,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 7,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 21,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 1,\n",
+ " 'Driver_Home_Area_Type': -1,\n",
+ " 'Propulsion_Code': -1,\n",
+ " 'Age_of_Vehicle': -1,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 2},\n",
+ " {'Driver_IMD_Decile': 3,\n",
+ " 'Vehicle_Leaving_Carriageway': 1,\n",
" 'Junction_Location': 1,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 1,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 4266,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 8,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 7,\n",
+ " '1st_Point_of_Impact': 4,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 13,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 2,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b6e2'),\n",
- " 'loc': {'coordinates': [-0.694606, 52.056417], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 1,\n",
- " '1st_Road_Number': 1,\n",
- " '2nd_Road_Class': -1,\n",
- " '2nd_Road_Number': 0,\n",
- " 'Accident_Index': '201243S136122',\n",
+ " 'Junction_Detail': 5,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
+ " 'LSOA_of_Accident_Location': 'E01016785',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.056417,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S068102',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 1,\n",
+ " '2nd_Road_Class': 1,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 3,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 2,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.694606,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 70,\n",
+ " 'Date': '15/10/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 10, 15, 9, 6),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.694606, 52.056417]},\n",
+ " 'Weather_Conditions': 2},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b831'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 3,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 3,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 2,\n",
+ " 'Age_Band_of_Casualty': 3,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 1}],\n",
- " 'Date': '24/12/2012',\n",
- " 'Datetime': datetime.datetime(2012, 12, 24, 16, 25),\n",
- " 'Day_of_Week': 2,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': -1,\n",
- " 'Junction_Detail': 0,\n",
- " 'LSOA_of_Accident_Location': 'E01016803',\n",
- " 'Latitude': 52.057188,\n",
- " 'Light_Conditions': 4,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 489504,\n",
- " 'Location_Northing_OSGR': 240674,\n",
- " 'Longitude': -0.695983,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 3,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 70,\n",
+ " '1st_Road_Number': 1,\n",
" 'Time': '16:25',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 8,\n",
- " 'Age_of_Vehicle': 12,\n",
- " 'Driver_Home_Area_Type': 3,\n",
- " 'Driver_IMD_Decile': 8,\n",
- " 'Engine_Capacity_(CC)': 1994,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 5,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': 0,\n",
+ " 'Location_Northing_OSGR': 240674,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 489504,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 2,\n",
+ " 'Light_Conditions': 4,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 8,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1994,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 6,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 7,\n",
- " 'Engine_Capacity_(CC)': 1596,\n",
+ " 'Age_Band_of_Driver': 8,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 5,\n",
+ " 'Driver_Home_Area_Type': 3,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': 12,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 7,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 4,\n",
+ " 'Engine_Capacity_(CC)': 1596,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 6,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 5,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 6,\n",
+ " 'Vehicle_Manoeuvre': 4,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b831'),\n",
- " 'loc': {'coordinates': [-0.695983, 52.057188], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 3,\n",
- " '1st_Road_Number': 509,\n",
+ " 'Junction_Detail': 0,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
+ " 'LSOA_of_Accident_Location': 'E01016803',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.057188,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S136122',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 1,\n",
" '2nd_Road_Class': -1,\n",
- " '2nd_Road_Number': 0,\n",
- " 'Accident_Index': '201243S036092',\n",
- " 'Accident_Severity': 2,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 4,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Accident_Severity': 3,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.695983,\n",
+ " 'Junction_Control': -1,\n",
+ " 'Speed_limit': 70,\n",
+ " 'Date': '24/12/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 12, 24, 16, 25),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.695983, 52.057188]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b64d'),\n",
+ " 'Casualties': [{'Casualty_Severity': 2,\n",
" 'Casualty_Class': 3,\n",
- " 'Casualty_Home_Area_Type': 2,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 2,\n",
" 'Casualty_Type': 0,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 2,\n",
" 'Pedestrian_Location': 9,\n",
- " 'Pedestrian_Movement': 5,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 4,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1}],\n",
- " 'Date': '09/09/2012',\n",
- " 'Datetime': datetime.datetime(2012, 9, 9, 5, 40),\n",
- " 'Day_of_Week': 1,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': -1,\n",
- " 'Junction_Detail': 0,\n",
- " 'LSOA_of_Accident_Location': 'E01016803',\n",
- " 'Latitude': 52.066563,\n",
- " 'Light_Conditions': 6,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 489110,\n",
- " 'Location_Northing_OSGR': 241710,\n",
- " 'Longitude': -0.701458,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 1,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 5,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 60,\n",
+ " '1st_Road_Number': 509,\n",
" 'Time': '05:40',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': 16,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 4,\n",
- " 'Engine_Capacity_(CC)': 1598,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 0,\n",
+ " 'Location_Northing_OSGR': 241710,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 1,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 489110,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 1,\n",
+ " 'Light_Conditions': 6,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 4,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1598,\n",
" 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 7,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 16,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b64d'),\n",
- " 'loc': {'coordinates': [-0.701458, 52.066563], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 3,\n",
- " '1st_Road_Number': 509,\n",
- " '2nd_Road_Class': -1,\n",
- " '2nd_Road_Number': 0,\n",
- " 'Accident_Index': '201243S094112',\n",
- " 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 6,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
- " 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
- " 'Casualty_Type': 9,\n",
- " 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
- " 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 1}],\n",
- " 'Date': '23/11/2012',\n",
- " 'Datetime': datetime.datetime(2012, 11, 23, 22, 25),\n",
- " 'Day_of_Week': 6,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': -1,\n",
" 'Junction_Detail': 0,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
" 'LSOA_of_Accident_Location': 'E01016803',\n",
- " 'Latitude': 52.065124,\n",
- " 'Light_Conditions': 6,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 489120,\n",
- " 'Location_Northing_OSGR': 241550,\n",
- " 'Longitude': -0.701354,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 1,\n",
" 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.066563,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S036092',\n",
" 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
- " 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 6,\n",
+ " '1st_Road_Class': 3,\n",
+ " '2nd_Road_Class': -1,\n",
+ " 'Accident_Severity': 2,\n",
" 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.701458,\n",
+ " 'Junction_Control': -1,\n",
" 'Speed_limit': 60,\n",
+ " 'Date': '09/09/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 9, 9, 5, 40),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.701458, 52.066563]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b768'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
+ " 'Casualty_Class': 1,\n",
+ " 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
+ " 'Pedestrian_Location': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
+ " 'Pedestrian_Road_Maintenance_Worker': 0,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
+ " 'Road_Surface_Conditions': 2,\n",
+ " '1st_Road_Number': 509,\n",
" 'Time': '22:25',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 11,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 2,\n",
- " 'Engine_Capacity_(CC)': 1390,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 9,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 0,\n",
+ " 'Location_Northing_OSGR': 241550,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 1,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 489120,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 6,\n",
+ " 'Light_Conditions': 6,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 2,\n",
+ " 'Vehicle_Leaving_Carriageway': 7,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 2,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 7,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1390,\n",
" 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 6,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 9,\n",
+ " '1st_Point_of_Impact': 1,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 11,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b768'),\n",
- " 'loc': {'coordinates': [-0.701354, 52.065124], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 1,\n",
- " '1st_Road_Number': 1,\n",
+ " 'Junction_Detail': 0,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
+ " 'LSOA_of_Accident_Location': 'E01016803',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.065124,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S094112',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 3,\n",
" '2nd_Road_Class': -1,\n",
- " '2nd_Road_Number': 0,\n",
- " 'Accident_Index': '201243S107042',\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 5,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.701354,\n",
+ " 'Junction_Control': -1,\n",
+ " 'Speed_limit': 60,\n",
+ " 'Date': '23/11/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 11, 23, 22, 25),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.701354, 52.065124]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b7a3'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 3,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 3,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 5,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 6,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '30/04/2012',\n",
- " 'Datetime': datetime.datetime(2012, 4, 30, 8, 20),\n",
- " 'Day_of_Week': 2,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': -1,\n",
- " 'Junction_Detail': 0,\n",
- " 'LSOA_of_Accident_Location': 'E01016803',\n",
- " 'Latitude': 52.063244,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 488510,\n",
- " 'Location_Northing_OSGR': 241330,\n",
- " 'Longitude': -0.710307,\n",
- " 'Number_of_Casualties': 2,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 3,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 70,\n",
+ " '1st_Road_Number': 1,\n",
" 'Time': '08:20',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 5,\n",
- " 'Age_of_Vehicle': 8,\n",
- " 'Driver_Home_Area_Type': 3,\n",
- " 'Driver_IMD_Decile': 10,\n",
- " 'Engine_Capacity_(CC)': 2993,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 1,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': 0,\n",
+ " 'Location_Northing_OSGR': 241330,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 488510,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 2,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 10,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 11,\n",
+ " 'Engine_Capacity_(CC)': 2993,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 1,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 8,\n",
- " 'Engine_Capacity_(CC)': 1968,\n",
+ " 'Age_Band_of_Driver': 5,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 1,\n",
- " 'Junction_Location': 0,\n",
+ " 'Driver_Home_Area_Type': 3,\n",
" 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 2,\n",
+ " 'Age_of_Vehicle': 8,\n",
+ " 'Vehicle_Manoeuvre': 11,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 8,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 0,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1968,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 6,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 1,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': 1,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b7a3'),\n",
- " 'loc': {'coordinates': [-0.710307, 52.063244], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 1,\n",
- " '1st_Road_Number': 1,\n",
+ " 'Junction_Detail': 0,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
+ " 'LSOA_of_Accident_Location': 'E01016803',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.063244,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S107042',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 1,\n",
" '2nd_Road_Class': -1,\n",
- " '2nd_Road_Number': 0,\n",
- " 'Accident_Index': '201243S111112',\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 5,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.710307,\n",
+ " 'Junction_Control': -1,\n",
+ " 'Speed_limit': 70,\n",
+ " 'Date': '30/04/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 4, 30, 8, 20),\n",
+ " 'Number_of_Casualties': 2,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.710307, 52.063244]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b7bf'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 5,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 9,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 2,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 2,\n",
+ " 'Age_Band_of_Casualty': 9,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 1}],\n",
- " 'Date': '26/11/2012',\n",
- " 'Datetime': datetime.datetime(2012, 11, 26, 19, 20),\n",
- " 'Day_of_Week': 2,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': -1,\n",
- " 'Junction_Detail': 0,\n",
- " 'LSOA_of_Accident_Location': 'E01016785',\n",
- " 'Latitude': 52.062233,\n",
- " 'Light_Conditions': 5,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 488650,\n",
- " 'Location_Northing_OSGR': 241220,\n",
- " 'Longitude': -0.708294,\n",
- " 'Number_of_Casualties': 2,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 3,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 70,\n",
+ " '1st_Road_Number': 1,\n",
" 'Time': '19:20',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 5,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 1,\n",
- " 'Engine_Capacity_(CC)': 1242,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 1,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': 0,\n",
+ " 'Location_Northing_OSGR': 241220,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 488650,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 2,\n",
+ " 'Light_Conditions': 5,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 1,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1242,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': 8,\n",
- " 'Age_of_Vehicle': 4,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 1,\n",
- " 'Engine_Capacity_(CC)': 1390,\n",
+ " 'Age_Band_of_Driver': 5,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 1,\n",
- " 'Junction_Location': 0,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
+ " 'Age_of_Vehicle': -1,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 1,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 0,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 2,\n",
+ " 'Engine_Capacity_(CC)': 1390,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 8,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 1,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 4,\n",
+ " 'Vehicle_Manoeuvre': 2,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b7bf'),\n",
- " 'loc': {'coordinates': [-0.708294, 52.062233], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 1,\n",
- " '1st_Road_Number': 1,\n",
+ " 'Junction_Detail': 0,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
+ " 'LSOA_of_Accident_Location': 'E01016785',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.062233,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S111112',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 1,\n",
" '2nd_Road_Class': -1,\n",
- " '2nd_Road_Number': 0,\n",
- " 'Accident_Index': '201243S017062',\n",
- " 'Accident_Severity': 2,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 9,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 2,\n",
+ " 'Accident_Severity': 3,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.708294,\n",
+ " 'Junction_Control': -1,\n",
+ " 'Speed_limit': 70,\n",
+ " 'Date': '26/11/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 11, 26, 19, 20),\n",
+ " 'Number_of_Casualties': 2,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.708294, 52.062233]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b5f4'),\n",
+ " 'Casualties': [{'Casualty_Severity': 2,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': -1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 2,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': -1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 2,\n",
+ " 'Age_Band_of_Casualty': 9,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 9,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 1,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': -1,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': -1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 1,\n",
+ " 'Age_Band_of_Casualty': 9,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 8,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 2,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': -1,\n",
- " 'Casualty_Reference': 3,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 3,\n",
+ " 'Casualty_Home_Area_Type': -1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 2,\n",
+ " 'Age_Band_of_Casualty': 8,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 1}],\n",
- " 'Date': '09/06/2012',\n",
- " 'Datetime': datetime.datetime(2012, 6, 9, 23, 50),\n",
- " 'Day_of_Week': 7,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': -1,\n",
- " 'Junction_Detail': 0,\n",
- " 'LSOA_of_Accident_Location': 'E01016769',\n",
- " 'Latitude': 52.063801,\n",
- " 'Light_Conditions': 4,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 488400,\n",
- " 'Location_Northing_OSGR': 241390,\n",
- " 'Longitude': -0.711896,\n",
- " 'Number_of_Casualties': 3,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 3,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 70,\n",
+ " '1st_Road_Number': 1,\n",
" 'Time': '23:50',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 3,\n",
- " 'Age_Band_of_Driver': 9,\n",
- " 'Age_of_Vehicle': 14,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 5,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': 0,\n",
+ " 'Location_Northing_OSGR': 241390,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 488400,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 7,\n",
+ " 'Light_Conditions': 4,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 5,\n",
+ " 'Vehicle_Leaving_Carriageway': 4,\n",
+ " 'Junction_Location': 0,\n",
+ " 'Skidding_and_Overturning': 0,\n",
+ " 'Towing_and_Articulation': 0,\n",
+ " 'Vehicle_Location-Restricted_Lane': 0,\n",
" 'Engine_Capacity_(CC)': 3199,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 9,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 6,\n",
+ " '1st_Point_of_Impact': 3,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 0,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
+ " 'Age_of_Vehicle': 14,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': -1,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 0,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 4,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
- " 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 0,\n",
- " 'Age_Band_of_Driver': -1,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': -1,\n",
- " 'Driver_IMD_Decile': -1,\n",
" 'Engine_Capacity_(CC)': -1,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': -1,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 0,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 3,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 0,\n",
+ " 'Driver_Home_Area_Type': -1,\n",
" 'Propulsion_Code': -1,\n",
- " 'Sex_of_Driver': 3,\n",
- " 'Skidding_and_Overturning': 0,\n",
- " 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
- " 'Vehicle_Location-Restricted_Lane': 0,\n",
+ " 'Age_of_Vehicle': -1,\n",
" 'Vehicle_Manoeuvre': 11,\n",
- " 'Vehicle_Reference': 2,\n",
- " 'Vehicle_Type': 9,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b5f4'),\n",
- " 'loc': {'coordinates': [-0.711896, 52.063801], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 1,\n",
- " '1st_Road_Number': 1,\n",
+ " 'Junction_Detail': 0,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
+ " 'LSOA_of_Accident_Location': 'E01016769',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.063801,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S017062',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 1,\n",
" '2nd_Road_Class': -1,\n",
- " '2nd_Road_Number': 0,\n",
- " 'Accident_Index': '201243S070062',\n",
- " 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 6,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 2,\n",
+ " 'Accident_Severity': 2,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.711896,\n",
+ " 'Junction_Control': -1,\n",
+ " 'Speed_limit': 70,\n",
+ " 'Date': '09/06/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 6, 9, 23, 50),\n",
+ " 'Number_of_Casualties': 3,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.711896, 52.063801]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b6ed'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 2,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 1}],\n",
- " 'Date': '20/06/2012',\n",
- " 'Datetime': datetime.datetime(2012, 6, 20, 15, 6),\n",
- " 'Day_of_Week': 4,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': -1,\n",
- " 'Junction_Detail': 0,\n",
- " 'LSOA_of_Accident_Location': 'E01016803',\n",
- " 'Latitude': 52.065369,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 488150,\n",
- " 'Location_Northing_OSGR': 241560,\n",
- " 'Longitude': -0.715498,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 1,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 3,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 70,\n",
+ " '1st_Road_Number': 1,\n",
" 'Time': '15:06',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 3,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 12,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 1,\n",
- " 'Engine_Capacity_(CC)': 1324,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 6,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': 0,\n",
+ " 'Location_Northing_OSGR': 241560,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 1,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 488150,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 4,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 1,\n",
+ " 'Vehicle_Leaving_Carriageway': 4,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 4,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1324,\n",
" 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 6,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 6,\n",
+ " '1st_Point_of_Impact': 3,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 12,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b6ed'),\n",
- " 'loc': {'coordinates': [-0.715498, 52.065369], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 1,\n",
- " '1st_Road_Number': 1,\n",
+ " 'Junction_Detail': 0,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
+ " 'LSOA_of_Accident_Location': 'E01016803',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.065369,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S070062',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 1,\n",
" '2nd_Road_Class': -1,\n",
- " '2nd_Road_Number': 0,\n",
- " 'Accident_Index': '201243S114082',\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 8,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.715498,\n",
+ " 'Junction_Control': -1,\n",
+ " 'Speed_limit': 70,\n",
+ " 'Date': '20/06/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 6, 20, 15, 6),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.715498, 52.065369]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b7cb'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 8,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1}],\n",
- " 'Date': '06/08/2012',\n",
- " 'Datetime': datetime.datetime(2012, 8, 6, 8, 10),\n",
- " 'Day_of_Week': 2,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': -1,\n",
- " 'Junction_Detail': 0,\n",
- " 'LSOA_of_Accident_Location': 'E01016803',\n",
- " 'Latitude': 52.064906,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 488230,\n",
- " 'Location_Northing_OSGR': 241510,\n",
- " 'Longitude': -0.714344,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 1,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 3,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 70,\n",
+ " '1st_Road_Number': 1,\n",
" 'Time': '08:10',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 8,\n",
- " 'Age_of_Vehicle': 13,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 2,\n",
- " 'Engine_Capacity_(CC)': 1299,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 7,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': 0,\n",
+ " 'Location_Northing_OSGR': 241510,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 1,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 488230,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 2,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 2,\n",
+ " 'Vehicle_Leaving_Carriageway': 2,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 1,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 2,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1299,\n",
" 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 8,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 7,\n",
+ " '1st_Point_of_Impact': 1,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 13,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b7cb'),\n",
- " 'loc': {'coordinates': [-0.714344, 52.064906], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 1,\n",
- " '1st_Road_Number': 1,\n",
+ " 'Junction_Detail': 0,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
+ " 'LSOA_of_Accident_Location': 'E01016803',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.064906,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S114082',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 1,\n",
" '2nd_Road_Class': -1,\n",
- " '2nd_Road_Number': 0,\n",
- " 'Accident_Index': '201243S117102',\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 9,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.714344,\n",
+ " 'Junction_Control': -1,\n",
+ " 'Speed_limit': 70,\n",
+ " 'Date': '06/08/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 8, 6, 8, 10),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.714344, 52.064906]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b7dd'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 9,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2},\n",
- " {'Age_Band_of_Casualty': 6,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 3,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 3}],\n",
- " 'Date': '25/10/2012',\n",
- " 'Datetime': datetime.datetime(2012, 10, 25, 8, 50),\n",
- " 'Day_of_Week': 5,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': -1,\n",
- " 'Junction_Detail': 0,\n",
- " 'LSOA_of_Accident_Location': 'E01016803',\n",
- " 'Latitude': 52.064996,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 488230,\n",
- " 'Location_Northing_OSGR': 241520,\n",
- " 'Longitude': -0.714342,\n",
- " 'Number_of_Casualties': 2,\n",
- " 'Number_of_Vehicles': 4,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 3,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 70,\n",
+ " '1st_Road_Number': 1,\n",
" 'Time': '08:50',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 8,\n",
- " 'Age_of_Vehicle': 4,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 9,\n",
- " 'Engine_Capacity_(CC)': 2148,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 1,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': 0,\n",
+ " 'Location_Northing_OSGR': 241520,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 4,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 488230,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 5,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 2148,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': 9,\n",
- " 'Age_of_Vehicle': 3,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 9,\n",
- " 'Engine_Capacity_(CC)': 1797,\n",
+ " 'Age_Band_of_Driver': 8,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 1,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': 4,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': 8,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 4,\n",
+ " 'Engine_Capacity_(CC)': 1797,\n",
" 'Vehicle_Reference': 2,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 5,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 4,\n",
- " 'Engine_Capacity_(CC)': 1998,\n",
+ " 'Age_Band_of_Driver': 9,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 1,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 8,\n",
+ " 'Age_of_Vehicle': 3,\n",
+ " 'Vehicle_Manoeuvre': 4,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 4,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 4,\n",
+ " 'Engine_Capacity_(CC)': 1998,\n",
" 'Vehicle_Reference': 3,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': 8,\n",
- " 'Age_of_Vehicle': 10,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 8,\n",
- " 'Engine_Capacity_(CC)': 1896,\n",
+ " 'Age_Band_of_Driver': 6,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 1,\n",
- " 'Junction_Location': 0,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 2,\n",
+ " 'Age_of_Vehicle': 5,\n",
+ " 'Vehicle_Manoeuvre': 4,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 8,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 0,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 4,\n",
+ " 'Engine_Capacity_(CC)': 1896,\n",
" 'Vehicle_Reference': 4,\n",
+ " 'Age_Band_of_Driver': 8,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 1,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': 10,\n",
+ " 'Vehicle_Manoeuvre': 4,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b7dd'),\n",
- " 'loc': {'coordinates': [-0.714342, 52.064996], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 5,\n",
- " '1st_Road_Number': 144,\n",
- " '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1158,\n",
- " 'Accident_Index': '201243S085022',\n",
- " 'Accident_Severity': 2,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 4,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Junction_Detail': 0,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
+ " 'LSOA_of_Accident_Location': 'E01016803',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.064996,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S117102',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 1,\n",
+ " '2nd_Road_Class': -1,\n",
+ " 'Accident_Severity': 3,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.714342,\n",
+ " 'Junction_Control': -1,\n",
+ " 'Speed_limit': 70,\n",
+ " 'Date': '25/10/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 10, 25, 8, 50),\n",
+ " 'Number_of_Casualties': 2,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.714342, 52.064996]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b732'),\n",
+ " 'Casualties': [{'Casualty_Severity': 2,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 2,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 4,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 4,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 1,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 1,\n",
+ " 'Age_Band_of_Casualty': 4,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 4,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 2,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2},\n",
+ " {'Casualty_Severity': 2,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 3,\n",
- " 'Casualty_Severity': 2,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 3,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 2,\n",
+ " 'Age_Band_of_Casualty': 4,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 1}],\n",
- " 'Date': '24/02/2012',\n",
- " 'Datetime': datetime.datetime(2012, 2, 24, 4, 29),\n",
- " 'Day_of_Week': 6,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 1,\n",
- " 'LSOA_of_Accident_Location': 'E01016763',\n",
- " 'Latitude': 52.066509,\n",
- " 'Light_Conditions': 4,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 487760,\n",
- " 'Location_Northing_OSGR': 241680,\n",
- " 'Longitude': -0.721155,\n",
- " 'Number_of_Casualties': 3,\n",
- " 'Number_of_Vehicles': 1,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 1,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 60,\n",
+ " '1st_Road_Number': 144,\n",
" 'Time': '04:29',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 4,\n",
- " 'Age_of_Vehicle': 5,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 5,\n",
- " 'Engine_Capacity_(CC)': 1896,\n",
- " 'Hit_Object_in_Carriageway': 10,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 1,\n",
+ " '2nd_Road_Number': 1158,\n",
+ " 'Location_Northing_OSGR': 241680,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 1,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 487760,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 6,\n",
+ " 'Light_Conditions': 4,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 5,\n",
+ " 'Vehicle_Leaving_Carriageway': 3,\n",
" 'Junction_Location': 4,\n",
- " 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 3,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1896,\n",
" 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 4,\n",
+ " 'Hit_Object_in_Carriageway': 10,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': 5,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b732'),\n",
- " 'loc': {'coordinates': [-0.721155, 52.066509], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 1,\n",
- " '1st_Road_Number': 1,\n",
- " '2nd_Road_Class': -1,\n",
- " '2nd_Road_Number': 0,\n",
- " 'Accident_Index': '201243S100042',\n",
- " 'Accident_Severity': 1,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 6,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Junction_Detail': 1,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
+ " 'LSOA_of_Accident_Location': 'E01016763',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.066509,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S085022',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 5,\n",
+ " '2nd_Road_Class': 6,\n",
+ " 'Accident_Severity': 2,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.721155,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 60,\n",
+ " 'Date': '24/02/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 2, 24, 4, 29),\n",
+ " 'Number_of_Casualties': 3,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.721155, 52.066509]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b782'),\n",
+ " 'Casualties': [{'Casualty_Severity': 1,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 1,\n",
" 'Casualty_Type': 19,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 7,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1},\n",
+ " {'Casualty_Severity': 1,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 1,\n",
" 'Casualty_Type': 19,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 7,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1}],\n",
- " 'Date': '26/04/2012',\n",
- " 'Datetime': datetime.datetime(2012, 4, 26, 5, 6),\n",
- " 'Day_of_Week': 5,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': -1,\n",
- " 'Junction_Detail': 0,\n",
- " 'LSOA_of_Accident_Location': 'E01016735',\n",
- " 'Latitude': 52.042953,\n",
- " 'Light_Conditions': 4,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 492230,\n",
- " 'Location_Northing_OSGR': 239140,\n",
- " 'Longitude': -0.656649,\n",
- " 'Number_of_Casualties': 2,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 3,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 70,\n",
+ " '1st_Road_Number': 1,\n",
" 'Time': '05:06',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 9,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 3,\n",
- " 'Engine_Capacity_(CC)': 2402,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 1,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': 0,\n",
+ " 'Location_Northing_OSGR': 239140,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 492230,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 5,\n",
+ " 'Light_Conditions': 4,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 3,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 2402,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 19,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': 6,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 5,\n",
- " 'Engine_Capacity_(CC)': 10308,\n",
+ " 'Age_Band_of_Driver': 6,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 19,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 1,\n",
- " 'Junction_Location': 0,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 1,\n",
+ " 'Age_of_Vehicle': 9,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 5,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 0,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 1,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 3,\n",
+ " 'Engine_Capacity_(CC)': 10308,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 7,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
" 'Vehicle_Type': 21,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 1,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': 6,\n",
+ " 'Vehicle_Manoeuvre': 3,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 2,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b782'),\n",
- " 'loc': {'coordinates': [-0.656649, 52.042953], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 1,\n",
- " '1st_Road_Number': 1,\n",
+ " 'Junction_Detail': 0,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
+ " 'LSOA_of_Accident_Location': 'E01016735',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.042953,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S100042',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 1,\n",
" '2nd_Road_Class': -1,\n",
- " '2nd_Road_Number': 0,\n",
- " 'Accident_Index': '201243S068062',\n",
- " 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 5,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 1,\n",
+ " 'Accident_Severity': 1,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.656649,\n",
+ " 'Junction_Control': -1,\n",
+ " 'Speed_limit': 70,\n",
+ " 'Date': '26/04/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 4, 26, 5, 6),\n",
+ " 'Number_of_Casualties': 2,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.656649, 52.042953]},\n",
+ " 'Weather_Conditions': 2},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b6df'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 1,\n",
+ " 'Age_Band_of_Casualty': 5,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 4,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 2,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 2,\n",
+ " 'Age_Band_of_Casualty': 4,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 1}],\n",
- " 'Date': '10/06/2012',\n",
- " 'Datetime': datetime.datetime(2012, 6, 10, 2, 0),\n",
- " 'Day_of_Week': 1,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': -1,\n",
- " 'Junction_Detail': 0,\n",
- " 'LSOA_of_Accident_Location': 'E01016785',\n",
- " 'Latitude': 52.049241,\n",
- " 'Light_Conditions': 4,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 491170,\n",
- " 'Location_Northing_OSGR': 239820,\n",
- " 'Longitude': -0.671919,\n",
- " 'Number_of_Casualties': 2,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 3,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 70,\n",
+ " '1st_Road_Number': 1,\n",
" 'Time': '02:00',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 4,\n",
- " 'Age_Band_of_Driver': 5,\n",
- " 'Age_of_Vehicle': 7,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 8,\n",
- " 'Engine_Capacity_(CC)': 1598,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 6,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': 0,\n",
+ " 'Location_Northing_OSGR': 239820,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 491170,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 1,\n",
+ " 'Light_Conditions': 4,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 8,\n",
+ " 'Vehicle_Leaving_Carriageway': 5,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 1,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 5,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1598,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 3,\n",
- " 'Age_Band_of_Driver': 9,\n",
- " 'Age_of_Vehicle': 8,\n",
- " 'Driver_Home_Area_Type': 3,\n",
- " 'Driver_IMD_Decile': 9,\n",
- " 'Engine_Capacity_(CC)': 12000,\n",
+ " 'Age_Band_of_Driver': 5,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 6,\n",
+ " '1st_Point_of_Impact': 4,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 7,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 12000,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 9,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 3,\n",
" 'Vehicle_Type': 11,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 3,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': 8,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b6df'),\n",
- " 'loc': {'coordinates': [-0.671919, 52.049241], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 1,\n",
- " '1st_Road_Number': 1,\n",
+ " 'Junction_Detail': 0,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
+ " 'LSOA_of_Accident_Location': 'E01016785',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.049241,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S068062',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 1,\n",
" '2nd_Road_Class': -1,\n",
- " '2nd_Road_Number': 0,\n",
- " 'Accident_Index': '201243S104062',\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 4,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 1,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.671919,\n",
+ " 'Junction_Control': -1,\n",
+ " 'Speed_limit': 70,\n",
+ " 'Date': '10/06/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 6, 10, 2, 0),\n",
+ " 'Number_of_Casualties': 2,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.671919, 52.049241]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b794'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 1,\n",
+ " 'Age_Band_of_Casualty': 4,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 4,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 2,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 2,\n",
+ " 'Age_Band_of_Casualty': 4,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1}],\n",
- " 'Date': '26/06/2012',\n",
- " 'Datetime': datetime.datetime(2012, 6, 26, 1, 43),\n",
- " 'Day_of_Week': 3,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': -1,\n",
- " 'Junction_Detail': 0,\n",
- " 'LSOA_of_Accident_Location': 'E01016735',\n",
- " 'Latitude': 52.04831,\n",
- " 'Light_Conditions': 4,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 491360,\n",
- " 'Location_Northing_OSGR': 239720,\n",
- " 'Longitude': -0.669176,\n",
- " 'Number_of_Casualties': 2,\n",
- " 'Number_of_Vehicles': 1,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 3,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 70,\n",
+ " '1st_Road_Number': 1,\n",
" 'Time': '01:43',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 3,\n",
- " 'Age_Band_of_Driver': 4,\n",
- " 'Age_of_Vehicle': 3,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 1,\n",
- " 'Engine_Capacity_(CC)': 1229,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 6,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': 0,\n",
+ " 'Location_Northing_OSGR': 239720,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 1,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 491360,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 3,\n",
+ " 'Light_Conditions': 4,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 1,\n",
+ " 'Vehicle_Leaving_Carriageway': 5,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 5,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1229,\n",
" 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 4,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 6,\n",
+ " '1st_Point_of_Impact': 3,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 3,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b794'),\n",
- " 'loc': {'coordinates': [-0.669176, 52.04831], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 1,\n",
- " '1st_Road_Number': 1,\n",
+ " 'Junction_Detail': 0,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
+ " 'LSOA_of_Accident_Location': 'E01016735',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.04831,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S104062',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 1,\n",
" '2nd_Road_Class': -1,\n",
- " '2nd_Road_Number': 0,\n",
- " 'Accident_Index': '201243S130062',\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 6,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.669176,\n",
+ " 'Junction_Control': -1,\n",
+ " 'Speed_limit': 70,\n",
+ " 'Date': '26/06/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 6, 26, 1, 43),\n",
+ " 'Number_of_Casualties': 2,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.669176, 52.04831]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b818'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 7,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': -1,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 19,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': -1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 7,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2},\n",
- " {'Age_Band_of_Casualty': 5,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': -1,\n",
- " 'Casualty_Reference': 3,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 19,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 3,\n",
+ " 'Casualty_Home_Area_Type': -1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 5,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2},\n",
- " {'Age_Band_of_Casualty': 6,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': -1,\n",
- " 'Casualty_Reference': 4,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 19,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 4,\n",
+ " 'Casualty_Home_Area_Type': -1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '26/06/2012',\n",
- " 'Datetime': datetime.datetime(2012, 6, 26, 14, 0),\n",
- " 'Day_of_Week': 3,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': -1,\n",
- " 'Junction_Detail': 0,\n",
- " 'LSOA_of_Accident_Location': 'E01016785',\n",
- " 'Latitude': 52.048863,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 491280,\n",
- " 'Location_Northing_OSGR': 239780,\n",
- " 'Longitude': -0.670326,\n",
- " 'Number_of_Casualties': 4,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 3,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 70,\n",
+ " '1st_Road_Number': 1,\n",
" 'Time': '14:00',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 14,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 1,\n",
- " 'Engine_Capacity_(CC)': 1997,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': 0,\n",
+ " 'Location_Northing_OSGR': 239780,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 491280,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 3,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 1,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1997,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': 13,\n",
- " 'Driver_Home_Area_Type': -1,\n",
- " 'Driver_IMD_Decile': -1,\n",
- " 'Engine_Capacity_(CC)': 2800,\n",
+ " 'Age_Band_of_Driver': 6,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 6,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 0,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 1,\n",
+ " 'Age_of_Vehicle': 14,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': -1,\n",
+ " 'Vehicle_Leaving_Carriageway': 5,\n",
+ " 'Junction_Location': 0,\n",
" 'Skidding_and_Overturning': 2,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 5,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 2800,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 7,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 6,\n",
+ " '1st_Point_of_Impact': 2,\n",
" 'Vehicle_Type': 19,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': -1,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': 13,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b818'),\n",
- " 'loc': {'coordinates': [-0.670326, 52.048863], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 6,\n",
- " '1st_Road_Number': 1307,\n",
+ " 'Junction_Detail': 0,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
+ " 'LSOA_of_Accident_Location': 'E01016785',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.048863,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S130062',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 1,\n",
" '2nd_Road_Class': -1,\n",
- " '2nd_Road_Number': 0,\n",
- " 'Accident_Index': '201243S129092',\n",
- " 'Accident_Severity': 2,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 6,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Accident_Severity': 3,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.670326,\n",
+ " 'Junction_Control': -1,\n",
+ " 'Speed_limit': 70,\n",
+ " 'Date': '26/06/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 6, 26, 14, 0),\n",
+ " 'Number_of_Casualties': 4,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.670326, 52.048863]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b816'),\n",
+ " 'Casualties': [{'Casualty_Severity': 2,\n",
" 'Casualty_Class': 3,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 2,\n",
" 'Casualty_Type': 0,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 5,\n",
- " 'Pedestrian_Movement': 2,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 1}],\n",
- " 'Date': '27/09/2012',\n",
- " 'Datetime': datetime.datetime(2012, 9, 27, 22, 26),\n",
- " 'Day_of_Week': 5,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': -1,\n",
- " 'Junction_Detail': 0,\n",
- " 'LSOA_of_Accident_Location': 'E01016735',\n",
- " 'Latitude': 52.036748,\n",
- " 'Light_Conditions': 4,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 491710,\n",
- " 'Location_Northing_OSGR': 238440,\n",
- " 'Longitude': -0.664417,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 1,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 2,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 3,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 30,\n",
+ " '1st_Road_Number': 1307,\n",
" 'Time': '22:26',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 8,\n",
- " 'Age_of_Vehicle': 15,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 2,\n",
- " 'Engine_Capacity_(CC)': 1390,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': 0,\n",
+ " 'Location_Northing_OSGR': 238440,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 1,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 491710,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 5,\n",
+ " 'Light_Conditions': 4,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 2,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1390,\n",
" 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 8,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 15,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b816'),\n",
- " 'loc': {'coordinates': [-0.664417, 52.036748], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 3,\n",
- " '1st_Road_Number': 421,\n",
- " '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1307,\n",
- " 'Accident_Index': '201243S086082',\n",
+ " 'Junction_Detail': 0,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
+ " 'LSOA_of_Accident_Location': 'E01016735',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.036748,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S129092',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 6,\n",
+ " '2nd_Road_Class': -1,\n",
" 'Accident_Severity': 2,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 5,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.664417,\n",
+ " 'Junction_Control': -1,\n",
+ " 'Speed_limit': 30,\n",
+ " 'Date': '27/09/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 9, 27, 22, 26),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.664417, 52.036748]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b739'),\n",
+ " 'Casualties': [{'Casualty_Severity': 2,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 2,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 5,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1}],\n",
- " 'Date': '27/08/2012',\n",
- " 'Datetime': datetime.datetime(2012, 8, 27, 3, 35),\n",
- " 'Day_of_Week': 2,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 1,\n",
- " 'LSOA_of_Accident_Location': 'E01016735',\n",
- " 'Latitude': 52.035032,\n",
- " 'Light_Conditions': 4,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 491760,\n",
- " 'Location_Northing_OSGR': 238250,\n",
- " 'Longitude': -0.663739,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 1,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 60,\n",
+ " '1st_Road_Number': 421,\n",
" 'Time': '03:35',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 5,\n",
- " 'Age_of_Vehicle': 10,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 1,\n",
- " 'Engine_Capacity_(CC)': 2446,\n",
- " 'Hit_Object_in_Carriageway': 9,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 1307,\n",
+ " 'Location_Northing_OSGR': 238250,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 1,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 491760,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 2,\n",
+ " 'Light_Conditions': 4,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 1,\n",
+ " 'Vehicle_Leaving_Carriageway': 1,\n",
" 'Junction_Location': 4,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 2,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 1,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 2446,\n",
" 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 5,\n",
+ " 'Hit_Object_in_Carriageway': 9,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 10,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b739'),\n",
- " 'loc': {'coordinates': [-0.663739, 52.035032], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 3,\n",
- " '1st_Road_Number': 5130,\n",
+ " 'Junction_Detail': 1,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
+ " 'LSOA_of_Accident_Location': 'E01016735',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.035032,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S086082',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 3,\n",
" '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1307,\n",
- " 'Accident_Index': '201243S104082',\n",
- " 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 11,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Accident_Severity': 2,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.663739,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 60,\n",
+ " 'Date': '27/08/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 8, 27, 3, 35),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.663739, 52.035032]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b796'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 11,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '23/08/2012',\n",
- " 'Datetime': datetime.datetime(2012, 8, 23, 15, 13),\n",
- " 'Day_of_Week': 5,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 3,\n",
- " 'LSOA_of_Accident_Location': 'E01016734',\n",
- " 'Latitude': 52.027897,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 491420,\n",
- " 'Location_Northing_OSGR': 237450,\n",
- " 'Longitude': -0.668907,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 40,\n",
+ " '1st_Road_Number': 5130,\n",
" 'Time': '15:13',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 4,\n",
- " 'Age_Band_of_Driver': 9,\n",
- " 'Age_of_Vehicle': 9,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 9,\n",
- " 'Engine_Capacity_(CC)': 1781,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 1307,\n",
+ " 'Location_Northing_OSGR': 237450,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 491420,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 5,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 8,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1781,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 11,\n",
- " 'Age_of_Vehicle': 2,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 8,\n",
- " 'Engine_Capacity_(CC)': 1360,\n",
+ " 'Age_Band_of_Driver': 9,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 4,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
+ " 'Age_of_Vehicle': 9,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 8,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 6,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1360,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 11,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 2,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b796'),\n",
- " 'loc': {'coordinates': [-0.668907, 52.027897], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 3,\n",
- " '1st_Road_Number': 5130,\n",
- " '2nd_Road_Class': -1,\n",
- " '2nd_Road_Number': 0,\n",
- " 'Accident_Index': '201243S074102',\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
+ " 'LSOA_of_Accident_Location': 'E01016734',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.027897,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S104082',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 3,\n",
+ " '2nd_Road_Class': 6,\n",
" 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 9,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.668907,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 40,\n",
+ " 'Date': '23/08/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 8, 23, 15, 13),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.668907, 52.027897]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b6fe'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': -1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': -1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 9,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 6,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 2,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 19,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 2,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '05/10/2012',\n",
- " 'Datetime': datetime.datetime(2012, 10, 5, 6, 59),\n",
- " 'Day_of_Week': 6,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': -1,\n",
- " 'Junction_Detail': 0,\n",
- " 'LSOA_of_Accident_Location': 'E01016734',\n",
- " 'Latitude': 52.027534,\n",
- " 'Light_Conditions': 4,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 491440,\n",
- " 'Location_Northing_OSGR': 237410,\n",
- " 'Longitude': -0.668627,\n",
- " 'Number_of_Casualties': 2,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 2,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 40,\n",
+ " '1st_Road_Number': 5130,\n",
" 'Time': '06:59',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 9,\n",
- " 'Age_of_Vehicle': 3,\n",
- " 'Driver_Home_Area_Type': -1,\n",
- " 'Driver_IMD_Decile': -1,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 0,\n",
+ " 'Location_Northing_OSGR': 237410,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 491440,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 6,\n",
+ " 'Light_Conditions': 4,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': -1,\n",
+ " 'Vehicle_Leaving_Carriageway': 2,\n",
+ " 'Junction_Location': 0,\n",
+ " 'Skidding_and_Overturning': 0,\n",
+ " 'Towing_and_Articulation': 0,\n",
+ " 'Vehicle_Location-Restricted_Lane': 0,\n",
" 'Engine_Capacity_(CC)': 1997,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 9,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 0,\n",
+ " 'Driver_Home_Area_Type': -1,\n",
" 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 2,\n",
+ " 'Age_of_Vehicle': 3,\n",
+ " 'Vehicle_Manoeuvre': 17,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 8,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 0,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 2,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 17,\n",
- " 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 1,\n",
- " 'Driver_Home_Area_Type': 2,\n",
- " 'Driver_IMD_Decile': 8,\n",
" 'Engine_Capacity_(CC)': 2198,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 6,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 19,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 1,\n",
- " 'Junction_Location': 0,\n",
+ " 'Driver_Home_Area_Type': 2,\n",
" 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 1,\n",
- " 'Skidding_and_Overturning': 0,\n",
- " 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
- " 'Vehicle_Location-Restricted_Lane': 0,\n",
+ " 'Age_of_Vehicle': 1,\n",
" 'Vehicle_Manoeuvre': 18,\n",
- " 'Vehicle_Reference': 2,\n",
- " 'Vehicle_Type': 19,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b6fe'),\n",
- " 'loc': {'coordinates': [-0.668627, 52.027534], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 3,\n",
- " '1st_Road_Number': 5130,\n",
- " '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1307,\n",
- " 'Accident_Index': '201243S057112',\n",
- " 'Accident_Severity': 2,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 5,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
- " 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 2,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 2,\n",
- " 'Casualty_Type': 9,\n",
- " 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
- " 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '15/11/2012',\n",
- " 'Datetime': datetime.datetime(2012, 11, 15, 14, 10),\n",
- " 'Day_of_Week': 5,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 3,\n",
+ " 'Junction_Detail': 0,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
" 'LSOA_of_Accident_Location': 'E01016734',\n",
- " 'Latitude': 52.027897,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 491420,\n",
- " 'Location_Northing_OSGR': 237450,\n",
- " 'Longitude': -0.668907,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
" 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.027534,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S074102',\n",
" 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " '1st_Road_Class': 3,\n",
+ " '2nd_Road_Class': -1,\n",
+ " 'Accident_Severity': 3,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.668627,\n",
+ " 'Junction_Control': -1,\n",
+ " 'Speed_limit': 40,\n",
+ " 'Date': '05/10/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 10, 5, 6, 59),\n",
+ " 'Number_of_Casualties': 2,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.668627, 52.027534]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b6ac'),\n",
+ " 'Casualties': [{'Casualty_Severity': 2,\n",
+ " 'Casualty_Class': 1,\n",
+ " 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 2,\n",
+ " 'Pedestrian_Location': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 5,\n",
+ " 'Pedestrian_Road_Maintenance_Worker': 0,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 40,\n",
+ " '1st_Road_Number': 5130,\n",
" 'Time': '14:10',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 3,\n",
- " 'Age_Band_of_Driver': 10,\n",
- " 'Age_of_Vehicle': 4,\n",
- " 'Driver_Home_Area_Type': 3,\n",
- " 'Driver_IMD_Decile': 9,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 1307,\n",
+ " 'Location_Northing_OSGR': 237450,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 491420,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 5,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 6,\n",
+ " 'Skidding_and_Overturning': 0,\n",
+ " 'Towing_and_Articulation': 0,\n",
+ " 'Vehicle_Location-Restricted_Lane': 0,\n",
" 'Engine_Capacity_(CC)': 1896,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 10,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 3,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 6,\n",
+ " 'Driver_Home_Area_Type': 3,\n",
" 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 1,\n",
+ " 'Age_of_Vehicle': 4,\n",
+ " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 10,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 9,\n",
- " 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 5,\n",
- " 'Age_of_Vehicle': 12,\n",
- " 'Driver_Home_Area_Type': 2,\n",
- " 'Driver_IMD_Decile': 10,\n",
" 'Engine_Capacity_(CC)': 1242,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 5,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 1,\n",
- " 'Junction_Location': 1,\n",
+ " 'Driver_Home_Area_Type': 2,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
- " 'Skidding_and_Overturning': 0,\n",
- " 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
- " 'Vehicle_Location-Restricted_Lane': 0,\n",
+ " 'Age_of_Vehicle': 12,\n",
" 'Vehicle_Manoeuvre': 17,\n",
- " 'Vehicle_Reference': 2,\n",
- " 'Vehicle_Type': 9,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b6ac'),\n",
- " 'loc': {'coordinates': [-0.668907, 52.027897], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 3,\n",
- " '1st_Road_Number': 5130,\n",
- " '2nd_Road_Class': -1,\n",
- " '2nd_Road_Number': -1,\n",
- " 'Accident_Index': '201243S020112',\n",
- " 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 6,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
+ " 'LSOA_of_Accident_Location': 'E01016734',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.027897,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S057112',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 3,\n",
+ " '2nd_Road_Class': 6,\n",
+ " 'Accident_Severity': 2,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.668907,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 40,\n",
+ " 'Date': '15/11/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 11, 15, 14, 10),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.668907, 52.027897]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b602'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '08/11/2012',\n",
- " 'Datetime': datetime.datetime(2012, 11, 8, 16, 15),\n",
- " 'Day_of_Week': 5,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 2,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 8,\n",
- " 'LSOA_of_Accident_Location': 'E01016735',\n",
- " 'Latitude': 52.021215,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 492150,\n",
- " 'Location_Northing_OSGR': 236720,\n",
- " 'Longitude': -0.658467,\n",
- " 'Number_of_Casualties': 1,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 40,\n",
+ " '1st_Road_Number': 5130,\n",
" 'Time': '16:15',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 4,\n",
- " 'Age_Band_of_Driver': 4,\n",
- " 'Age_of_Vehicle': 8,\n",
- " 'Driver_Home_Area_Type': -1,\n",
- " 'Driver_IMD_Decile': -1,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': -1,\n",
+ " 'Location_Northing_OSGR': 236720,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 492150,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 5,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': -1,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 6,\n",
+ " 'Skidding_and_Overturning': 0,\n",
+ " 'Towing_and_Articulation': 0,\n",
+ " 'Vehicle_Location-Restricted_Lane': 0,\n",
" 'Engine_Capacity_(CC)': 1242,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Age_Band_of_Driver': 4,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 4,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 6,\n",
+ " 'Driver_Home_Area_Type': -1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 2,\n",
+ " 'Age_of_Vehicle': 8,\n",
+ " 'Vehicle_Manoeuvre': 9,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 9,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 8,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 9,\n",
- " 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 3,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 11,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 9,\n",
" 'Engine_Capacity_(CC)': 998,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 6,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 3,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 1,\n",
- " 'Junction_Location': 8,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
- " 'Skidding_and_Overturning': 0,\n",
- " 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
- " 'Vehicle_Location-Restricted_Lane': 0,\n",
+ " 'Age_of_Vehicle': 11,\n",
" 'Vehicle_Manoeuvre': 18,\n",
- " 'Vehicle_Reference': 2,\n",
- " 'Vehicle_Type': 9,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b602'),\n",
- " 'loc': {'coordinates': [-0.658467, 52.021215], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 6,\n",
- " '1st_Road_Number': 1307,\n",
- " '2nd_Road_Class': 6,\n",
- " '2nd_Road_Number': 1307,\n",
- " 'Accident_Index': '201243S056022',\n",
- " 'Accident_Severity': 2,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 8,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Junction_Detail': 8,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
+ " 'LSOA_of_Accident_Location': 'E01016735',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.021215,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 2,\n",
+ " 'Accident_Index': '201243S020112',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 3,\n",
+ " '2nd_Road_Class': -1,\n",
+ " 'Accident_Severity': 3,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.658467,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 40,\n",
+ " 'Date': '08/11/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 11, 8, 16, 15),\n",
+ " 'Number_of_Casualties': 1,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.658467, 52.021215]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b6a6'),\n",
+ " 'Casualties': [{'Casualty_Severity': 2,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 2,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 1,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 8,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 1,\n",
- " 'Vehicle_Reference': 1},\n",
- " {'Age_Band_of_Casualty': 8,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 1},\n",
+ " {'Casualty_Severity': 2,\n",
" 'Casualty_Class': 1,\n",
- " 'Casualty_Home_Area_Type': 2,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 2,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 2,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 2,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 0,\n",
+ " 'Age_Band_of_Casualty': 8,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 2}],\n",
- " 'Date': '15/02/2012',\n",
- " 'Datetime': datetime.datetime(2012, 2, 15, 11, 5),\n",
- " 'Day_of_Week': 4,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': 4,\n",
- " 'Junction_Detail': 3,\n",
- " 'LSOA_of_Accident_Location': 'E01016735',\n",
- " 'Latitude': 52.031838,\n",
- " 'Light_Conditions': 1,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 492590,\n",
- " 'Location_Northing_OSGR': 237910,\n",
- " 'Longitude': -0.651734,\n",
- " 'Number_of_Casualties': 2,\n",
- " 'Number_of_Vehicles': 2,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 6,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 60,\n",
+ " '1st_Road_Number': 1307,\n",
" 'Time': '11:05',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 4,\n",
- " 'Age_Band_of_Driver': 8,\n",
- " 'Age_of_Vehicle': 10,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 10,\n",
- " 'Engine_Capacity_(CC)': 1796,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 6,\n",
+ " '2nd_Road_Number': 1307,\n",
+ " 'Location_Northing_OSGR': 237910,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 2,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 492590,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 4,\n",
+ " 'Light_Conditions': 1,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 10,\n",
+ " 'Vehicle_Leaving_Carriageway': 7,\n",
" 'Junction_Location': 1,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 1,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 7,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 17,\n",
+ " 'Engine_Capacity_(CC)': 1796,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 1,\n",
" 'Age_Band_of_Driver': 8,\n",
- " 'Age_of_Vehicle': 4,\n",
- " 'Driver_Home_Area_Type': 2,\n",
- " 'Driver_IMD_Decile': 10,\n",
- " 'Engine_Capacity_(CC)': 1991,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 4,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 10,\n",
+ " 'Vehicle_Manoeuvre': 17,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 10,\n",
+ " 'Vehicle_Leaving_Carriageway': 1,\n",
" 'Junction_Location': 1,\n",
- " 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 2,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 1,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1991,\n",
" 'Vehicle_Reference': 2,\n",
+ " 'Age_Band_of_Driver': 8,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 2,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 2,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': 4,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b6a6'),\n",
- " 'loc': {'coordinates': [-0.651734, 52.031838], 'type': 'Point'}},\n",
- " {'1st_Road_Class': 1,\n",
- " '1st_Road_Number': 1,\n",
- " '2nd_Road_Class': -1,\n",
- " '2nd_Road_Number': 0,\n",
- " 'Accident_Index': '201243S039042',\n",
- " 'Accident_Severity': 3,\n",
- " 'Carriageway_Hazards': 0,\n",
- " 'Casualties': [{'Age_Band_of_Casualty': 9,\n",
- " 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 2,\n",
+ " 'Junction_Detail': 3,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
+ " 'LSOA_of_Accident_Location': 'E01016735',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.031838,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S056022',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 6,\n",
+ " '2nd_Road_Class': 6,\n",
+ " 'Accident_Severity': 2,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.651734,\n",
+ " 'Junction_Control': 4,\n",
+ " 'Speed_limit': 60,\n",
+ " 'Date': '15/02/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 2, 15, 11, 5),\n",
+ " 'Number_of_Casualties': 2,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.651734, 52.031838]},\n",
+ " 'Weather_Conditions': 1},\n",
+ " {'_id': ObjectId('52a9c98292c4e16686d2b65b'),\n",
+ " 'Casualties': [{'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 1,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 3,\n",
+ " 'Casualty_Reference': 1,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 2,\n",
+ " 'Age_Band_of_Casualty': 9,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 3},\n",
- " {'Age_Band_of_Casualty': 6,\n",
" 'Bus_or_Coach_Passenger': 0,\n",
- " 'Car_Passenger': 1,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2},\n",
+ " {'Casualty_Severity': 3,\n",
" 'Casualty_Class': 2,\n",
- " 'Casualty_Home_Area_Type': 1,\n",
- " 'Casualty_Reference': 2,\n",
- " 'Casualty_Severity': 3,\n",
" 'Casualty_Type': 9,\n",
+ " 'Vehicle_Reference': 3,\n",
+ " 'Casualty_Reference': 2,\n",
+ " 'Casualty_Home_Area_Type': 1,\n",
" 'Pedestrian_Location': 0,\n",
- " 'Pedestrian_Movement': 0,\n",
+ " 'Car_Passenger': 1,\n",
+ " 'Age_Band_of_Casualty': 6,\n",
" 'Pedestrian_Road_Maintenance_Worker': 0,\n",
- " 'Sex_of_Casualty': 2,\n",
- " 'Vehicle_Reference': 3}],\n",
- " 'Date': '14/04/2012',\n",
- " 'Datetime': datetime.datetime(2012, 4, 14, 23, 10),\n",
- " 'Day_of_Week': 7,\n",
- " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
- " 'Junction_Control': -1,\n",
- " 'Junction_Detail': 0,\n",
- " 'LSOA_of_Accident_Location': 'E01016735',\n",
- " 'Latitude': 52.040833,\n",
- " 'Light_Conditions': 4,\n",
- " 'Local_Authority_(District)': 479,\n",
- " 'Local_Authority_(Highway)': 'E06000042',\n",
- " 'Location_Easting_OSGR': 492550,\n",
- " 'Location_Northing_OSGR': 238910,\n",
- " 'Longitude': -0.652047,\n",
- " 'Number_of_Casualties': 2,\n",
- " 'Number_of_Vehicles': 6,\n",
- " 'Pedestrian_Crossing-Human_Control': 0,\n",
- " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
- " 'Police_Force': 43,\n",
+ " 'Bus_or_Coach_Passenger': 0,\n",
+ " 'Pedestrian_Movement': 0,\n",
+ " 'Sex_of_Casualty': 2}],\n",
" 'Road_Surface_Conditions': 1,\n",
- " 'Road_Type': 3,\n",
- " 'Special_Conditions_at_Site': 0,\n",
- " 'Speed_limit': 70,\n",
+ " '1st_Road_Number': 1,\n",
" 'Time': '23:10',\n",
- " 'Urban_or_Rural_Area': 2,\n",
- " 'Vehicles': [{'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': 9,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 6,\n",
- " 'Engine_Capacity_(CC)': 3301,\n",
- " 'Hit_Object_in_Carriageway': 0,\n",
- " 'Hit_Object_off_Carriageway': 0,\n",
- " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Road_Type': 3,\n",
+ " '2nd_Road_Number': 0,\n",
+ " 'Location_Northing_OSGR': 238910,\n",
+ " 'Police_Force': 43,\n",
+ " 'Number_of_Vehicles': 6,\n",
+ " 'Carriageway_Hazards': 0,\n",
+ " 'Location_Easting_OSGR': 492550,\n",
+ " 'Local_Authority_(Highway)': 'E06000042',\n",
+ " 'Day_of_Week': 7,\n",
+ " 'Light_Conditions': 4,\n",
+ " 'Vehicles': [{'Driver_IMD_Decile': 6,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 3301,\n",
" 'Vehicle_Reference': 1,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': 9,\n",
- " 'Age_of_Vehicle': 1,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 4,\n",
- " 'Engine_Capacity_(CC)': 2993,\n",
+ " 'Age_Band_of_Driver': 7,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 9,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 4,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': 2,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 2993,\n",
" 'Vehicle_Reference': 2,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 14,\n",
- " 'Driver_Home_Area_Type': -1,\n",
- " 'Driver_IMD_Decile': -1,\n",
- " 'Engine_Capacity_(CC)': 1590,\n",
+ " 'Age_Band_of_Driver': 9,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 2,\n",
+ " 'Age_of_Vehicle': 1,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': -1,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1590,\n",
" 'Vehicle_Reference': 3,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
" 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': -1,\n",
- " 'Driver_Home_Area_Type': -1,\n",
- " 'Driver_IMD_Decile': -1,\n",
- " 'Engine_Capacity_(CC)': -1,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': -1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 14,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': -1,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': -1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': -1,\n",
" 'Vehicle_Reference': 4,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 1,\n",
- " 'Age_Band_of_Driver': 7,\n",
- " 'Age_of_Vehicle': 12,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 1,\n",
- " 'Engine_Capacity_(CC)': 1396,\n",
+ " 'Age_Band_of_Driver': 6,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': -1,\n",
+ " 'Propulsion_Code': -1,\n",
+ " 'Age_of_Vehicle': -1,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 1,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Junction_Location': 0,\n",
- " 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1396,\n",
" 'Vehicle_Reference': 5,\n",
- " 'Vehicle_Type': 9,\n",
- " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
- " {'1st_Point_of_Impact': 2,\n",
- " 'Age_Band_of_Driver': 6,\n",
- " 'Age_of_Vehicle': 9,\n",
- " 'Driver_Home_Area_Type': 1,\n",
- " 'Driver_IMD_Decile': 3,\n",
- " 'Engine_Capacity_(CC)': 1299,\n",
+ " 'Age_Band_of_Driver': 7,\n",
" 'Hit_Object_in_Carriageway': 0,\n",
" 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 1,\n",
+ " 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
" 'Journey_Purpose_of_Driver': 6,\n",
- " 'Junction_Location': 0,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
" 'Propulsion_Code': 1,\n",
- " 'Sex_of_Driver': 1,\n",
+ " 'Age_of_Vehicle': 12,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Was_Vehicle_Left_Hand_Drive?': 1},\n",
+ " {'Driver_IMD_Decile': 3,\n",
+ " 'Vehicle_Leaving_Carriageway': 0,\n",
+ " 'Junction_Location': 0,\n",
" 'Skidding_and_Overturning': 0,\n",
" 'Towing_and_Articulation': 0,\n",
- " 'Vehicle_Leaving_Carriageway': 0,\n",
" 'Vehicle_Location-Restricted_Lane': 0,\n",
- " 'Vehicle_Manoeuvre': 18,\n",
+ " 'Engine_Capacity_(CC)': 1299,\n",
" 'Vehicle_Reference': 6,\n",
+ " 'Age_Band_of_Driver': 6,\n",
+ " 'Hit_Object_in_Carriageway': 0,\n",
+ " 'Hit_Object_off_Carriageway': 0,\n",
+ " '1st_Point_of_Impact': 2,\n",
" 'Vehicle_Type': 9,\n",
+ " 'Sex_of_Driver': 1,\n",
+ " 'Journey_Purpose_of_Driver': 6,\n",
+ " 'Driver_Home_Area_Type': 1,\n",
+ " 'Propulsion_Code': 1,\n",
+ " 'Age_of_Vehicle': 9,\n",
+ " 'Vehicle_Manoeuvre': 18,\n",
" 'Was_Vehicle_Left_Hand_Drive?': 1}],\n",
- " 'Weather_Conditions': 1,\n",
- " '_id': ObjectId('52a9c98292c4e16686d2b65b'),\n",
- " 'loc': {'coordinates': [-0.652047, 52.040833], 'type': 'Point'}}]"
+ " 'Junction_Detail': 0,\n",
+ " 'Urban_or_Rural_Area': 2,\n",
+ " 'LSOA_of_Accident_Location': 'E01016735',\n",
+ " 'Pedestrian_Crossing-Human_Control': 0,\n",
+ " 'Latitude': 52.040833,\n",
+ " 'Local_Authority_(District)': 479,\n",
+ " 'Did_Police_Officer_Attend_Scene_of_Accident': 1,\n",
+ " 'Accident_Index': '201243S039042',\n",
+ " 'Pedestrian_Crossing-Physical_Facilities': 0,\n",
+ " '1st_Road_Class': 1,\n",
+ " '2nd_Road_Class': -1,\n",
+ " 'Accident_Severity': 3,\n",
+ " 'Special_Conditions_at_Site': 0,\n",
+ " 'Longitude': -0.652047,\n",
+ " 'Junction_Control': -1,\n",
+ " 'Speed_limit': 70,\n",
+ " 'Date': '14/04/2012',\n",
+ " 'Datetime': datetime.datetime(2012, 4, 14, 23, 10),\n",
+ " 'Number_of_Casualties': 2,\n",
+ " 'loc': {'type': 'Point', 'coordinates': [-0.652047, 52.040833]},\n",
+ " 'Weather_Conditions': 1}]"
]
}
],
- "prompt_number": 20
+ "prompt_number": 15
},
{
"cell_type": "code",
{
"metadata": {},
"output_type": "pyout",
- "prompt_number": 21,
+ "prompt_number": 17,
"text": [
"542"
]
}
],
- "prompt_number": 21
+ "prompt_number": 17
},
{
"cell_type": "code",
"input": [],
"language": "python",
"metadata": {},
- "outputs": []
+ "outputs": [],
+ "prompt_number": 16
}
],
"metadata": {}