Question: How close to the city centre can you park in different cities?
Sub-questions
- Does it affect the parking rate the closer you can park it is?
- How high or low are the parking rates?
- What is 'close' to the city centre exactly?
- What citties/towns will I be looking at?
- Where in a city/town will I be looking?
- How do I get the coordinates?
Assumptions
I think in smaller cities it is possible to park closer to the city centre than in larger citties. I suspect parking rates in bigger cities and townships will be higher. This might be because they want to minimize the amount of cars in the city. And I assume the closer to the city centre you park your care the higher the rates will be. This is probably done to give pedestrians, cyclists and tourists in more space in crowded or shopping area's. That way they want to keep cars out to make it more safe.
Datasets & Variables
The datasets I will be using to answer this question are Open Data Parkeren: GEOMETRIE GEBIED and Open Data Parkeren: TARIEFDEEL. I want to make two seperate visualisations with these datasets. One to show carparks close to city centres and one bar chart to see what car parks are the most/least expensive. Thanks to Stan I knew there are coordinates inside the GEOMETRIE GEBIED dataset which I will use to plot the dots on a map of the Netherlands.
From GEOMETRIE GEBIED I will use String areageometryastext
to get the coordinates and transform them into separate properties. It now contains points or polygons with coordinates and all I have to do is getting one value out of it.
From TARIEFDEEL I will use int amountfarepart
int stepsizefarepart
to calculate the parking fares using a calculation Sam and Victor pointed out ("If AmountFarePart is 5,0 and stepSizeFarePart is 720 you pay 5EU for 720 minutes which means 5EU per 12 hours = 0,41eu per hour").
Empty entries
For entries that don't contain any data I'm using a bit of code demonstrated by Laurens. Click here to see it.
Map of carparks in the Netherlands
Clone this repository
git clone https://github.com/mbergevoet/frontend-data
- Converting latitude and longitude to decimal values. (2009, July 16). Retrieved October 2020, from https://stackoverflow.com/questions/1140189/converting-latitude-and-longitude-to-decimal-values
- How to check if a string contains a number in JavaScript? (2014, February 28). Retrieved October 2020, from https://stackoverflow.com/questions/22100243/how-to-check-if-a-string-contains-a-number-in-javascript/36077900
- RGB to hex and hex to RGB. (2011, April 11). Retrieved October 2020, from https://stackoverflow.com/questions/5623838/rgb-to-hex-and-hex-to-rgb
- Robb, J. (2020, February 27). Principles of Functional Programming. Retrieved 10 November 2020, from https://dev.to/jamesrweb/principles-of-functional-programming-4b7c
- String.prototype.padStart(). (2020, April 6). Retrieved October 2020, from https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/padStart
- String.prototype.split(). (2020, September 1). Retrieved November 2020, from https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/split
This repository uses MIT license. © Merlijn Bergevoet 2020