Sunday, December 23, 2012

NJ Motor Vehicle Crash Data On-line

I was forwarded this email written by John Paff  from a friend the other day and just got around to reading it.  I found it rather interesting and thought that I would pass it along.

For those that don't know John Paff, he serves as Chairman of the New Jersey Libertarian Party's Open Government Advocacy Project as well as the NJLP's Preempted Ordinance Repeal Project. If there is anything that you wish to know about obtaining government records, he is the person to go to.  He is extremely knowledgeable in this area and has become a thorn in the side of many local and state government agencies, looking for the sunshine in their otherwise dark or opaque workings.  

In this email John explains how he just learned that New Jersey keeps a comprehensive database of motor vehicle accidents that can be accessed by anyone for any reason. It could be a very useful tool if anyone is interested in finding out how safe a given area in the state is traffic wise or if you wish to find out how many public vehicles were involved in accidents in any given year:

At last night's New Jersey Foundation for Open Government (NJFOG) meeting, I learned that New Jersey keeps a comprehensive database of motor vehicle accident data on the Internet here. I'm posting this for those might find it useful to know, for instance, how many school bus accidents occurred in a given county or town within a given year.

I played with the data for a while to see if it might help me isolate accidents in which government vehicles were involved. Just for fun, I decided to see how many car accidents took place in Neptune Township (Monmouth County) during 2011 in which at least one of the vehicles was a police car. I found ten such accidents and have listed them in the PDF file I've placed on-line here. If I wanted to, I could now OPRA each of the accident reports to learn more about what exactly occurred in these accidents.

I didn't need any special software to do this, I used a text editor, a text sorting program, both of which I got for free off the Internet, and Excel (which I already have) to format the PDF file. Without getting into too much detail, here are the basic steps I took:

1. Went to the above listed site and downloaded the "raw data" from Monmouth County in 2011. I downloaded two files, "Accident" and "Vehicle."

2. Using the "Vehicle Table" and "Accident Table" on the same site, I learned the various column positions within each file at which certain data fields began.

3. Also at the site, I looked up "County and Municipal Codes" and learned that Neptune Township's code is 1334.

4. I sorted the "Vehicle" file on columns 4-7. Then I opened up the "Vehicle" file in my text editor and deleted all the accidents that happened somewhere other than 1334 (Neptune Twp). This gave me a more manageable file to work with that contained only vehicles involved in accidents in Neptune Township.

5. I sorted the resulting file on columns 130-131, which is the two digit code for "Special Function Vehicles." This allowed me to filter for police cars ("02"), fire/rescue ("04"), ambulances ("05"), school buses ("09"), etc.

6. I then boiled the file down to just 10 entries in which police cars were involved. I then searched the "Accident" file for each of the unique "Police report number" from those 10 entries to get more information for the attached table. If I wanted, I could have searched the "Driver" file in the same manner and gotten other information, such as the drivers' dates of birth, whether summonses were issued, etc.

There are probably better ways to do this, but this is what I can do with my limited computer skills.

John Paff, Chairman
New Jersey Libertarian Party's
Open Government Advocacy Project

No comments: