Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

As Municipality of Bolzano I would like to have a simple web application that shows the real-time capacity of the main parking areas in the center of the city, so to activate temporary traffic regulations and avoid traffic jams in the city #205

Open
4 tasks done
rcavaliere opened this issue Jul 26, 2023 · 15 comments

Comments

@rcavaliere
Copy link
Member

rcavaliere commented Jul 26, 2023

The Mobility Office of the city of Bolzano has contacted us with the request to provide in short time a simple web-application that can show in real-time the current parking situation in the city centre. This web-application should be used by the Traffic Police at the Traffic Control Centre, being always displayed. The Traffic Police has got the order to activate certain temporary traffic regulations if the occupacy of these parking areas becomes above a certain threshold.

What do we need in detail:

  • basic web application presenting just following parking areas (additional ones from the ones that we have should be easily added in the source code):

P08 - BZ Centro via Mayr Nusser
P03 - Piazza Walther
P04 - Luna via Molini
P16 - Fiera via Marco Polo/Buozzi

  • The visualization should be like the left part of https://parking.bz.it/ (big blocks with current number of available parking slots, colored according as with the current logic). Each block should just display in a very clear way: maximum capacity of the parking area, current number of available parking slots, percentage of occupacy (number of occupied slots / maximum capacity).
  • It is important to provide for each parking area also the last update (timestamp). Not real-time situations should be displayed in gray, as in the current parking application

This user story is just limited to a very first MVP, but that can be already shared with the Municipality of Bolzano. Additional features will be then discussed in other developments.

In order to reuse this work:

  • Implement all this as a web-component that we can publish on the web-component store

https://webcomponents.opendatahub.testingmachine.eu/webcomponent/parking-dashboard/fullscreen

@dulvui
Copy link
Contributor

dulvui commented Jul 27, 2023

@rcavaliere Here the first MVP already running on testingmachine
https://webcomponents.opendatahub.testingmachine.eu/webcomponent/parking-dashboard

You can share this link with the municipality for testing
https://webcomponents.opendatahub.testingmachine.eu/webcomponent/parking-dashboard/fullscreen

@dulvui
Copy link
Contributor

dulvui commented Jul 27, 2023

What should be the threshold for color change be?
For now it is:
red: percentage > 80%
orange: percentage > 40%
green: percentage < 40%
gray: last timestamp older than 1 hour ago

@rcavaliere
Copy link
Member Author

rcavaliere commented Jul 27, 2023

Wonderful!
Just two thinks:

  • Can you increase the size of the blocks, and maybe put them on a row (horizontally)?
  • For the municipality of BZ, I would suggest to use the name they provide (field name, not standard_name)

@rcavaliere
Copy link
Member Author

What should be the threshold for color change be? For now it is: red: percentage > 80% orange: percentage > 40% green: percentage < 40% gray: last timestamp older than 1 hour ago

It's ok. Just increase threshold for red to 90%, since this is the threshold for them to act

@dulvui
Copy link
Contributor

dulvui commented Jul 27, 2023

@rcavaliere I implemented now your suggestions. Let me know if you have other suggestions

@rcavaliere
Copy link
Member Author

@dulvui perfect! I have now shared to link to the Municipality of Bolzano for first feedback. Let's wait for them!
In the meantime, you can implement the functionality that updates automatically the page e.g. every minute.

@rcavaliere
Copy link
Member Author

@dulvui Positive feedback by the Municipality of Bolzano. They just add to correct the list of parkings, which should be:

Piazza Walther (OK)
Luna (OK)
Laurin (to be added - P05 Laurin)
Central Parking (to be added - P06 Central Parking)

The latter two are offline since quite a long time now, but they are working to reactivate them.

Therefore, we should remove P08 Centro and P16 Fiera

@dulvui
Copy link
Contributor

dulvui commented Jul 28, 2023

@rcavaliere great! I updated now the default parking list and the automated refresh every 60 seconds is now working too.

What value should I use for the color gray, that means the data is not real time. For now 1 hours is set, that means if the data is older than 1 hour, the badge is gray.
Is 1 hour fine or should I decrease to something like 10 minutes, considering that the parking data collector runs every 5 minutes?

@rcavaliere
Copy link
Member Author

@dulvui great! There is just P08 to remove, Luna parking shall be displayed instead.
For the threshold, let's put 15 minutes.

@dulvui
Copy link
Contributor

dulvui commented Jul 28, 2023

@rcavaliere I replaced now P08 with Luna and set the threshold to 15 minutes.

@rcavaliere
Copy link
Member Author

@dulvui super! I think for this first effort we are done! Many thanks for your hackathon :-)

@rcavaliere
Copy link
Member Author

@dulvui can you temporarily throw away the timestamp information? We will activate them when the two offline parking areas will be online again

@dulvui
Copy link
Contributor

dulvui commented Jul 28, 2023

@rcavaliere Your are welcome :)
Yes for sure, the timestamp is hidden now.

@rcavaliere
Copy link
Member Author

@dulvui that's exactly what I had in mind, wonderful! Let's just work on the look&feel and we have a wonderful product to use. I will make further tests and give you feedback about further configuration possibilities we may add

@dulvui dulvui removed their assignment Aug 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants