Mads Bønding

Where NOT to park in Copenhagen

January 25, 2016 | 2 Minute Read

Pretty much every major danish city now has their own open data portal, but so far the majority of the published data is kinda boring - some of the data is even being published solely as pdf?!? But I guess its a start!

A while back I randomly stumbled upon a dataset that I actually did find pretty interesting but strangely it isn't a part of any of the open data portals. The dataset contains parking tickets issued by the municipality of Copenhagen in 2013 and can be found here in a public Google Fusion table. I was pretty suspicious of why and how the data ended up in a fusion table, so I emailed Center for Parking in Copenhagen and although they had no clue how the data got there, they did crosscheck it and it seems to be legit. Well, that's good enough for me to play around with it!

I wanted to map the data, so I needed to pull all addresses in Copenhagen and their corresponding latitude and longitude coordinates from dawa.aws.dk. When that was done I could join the addresses to the parking data and be ready to map the data using the ggmap package. The result is shown below

map

Not surprisingly it shows that the largest concentration of parking tickets is centered around Indre by but also Nørrebro and Amager sees a fair amount of parking tickets. Is also clear that Frederiksberg is an independent municipality with its own parking control which is why it doesn't shows up on the map.

It may be more interesting to investigate different types of parkings violations which is why I created the simple shiny app below (encoding danish characters is btw. mindblowingly annoying). The app lets you select among the different types of violations and returns a barchart of the top 10 streets with most violations.



As you can see Dronningens Tværgade is by far the highest grossing street in 2013 with 6427 tickets each costing 510 kr. which adds up to about 3.2 mio.kr. just for that particular street. According to the data the municipality of Copenhagen issued about 280.000 parking tickets in total in 2013 at a value of 146 mio.kr.

I will put the code for everything on github later...