offenesdresden / ParkAPI

🅿️ open API serving parking lot data for multiple cities
https://parkendd.de/map.html
MIT License
84 stars 46 forks source link

[Herrenberg] Data #215

Open hbruch opened 4 years ago

hbruch commented 4 years ago

Herrenberg now publishes open parking data, already in ParkAPI format: https://api.stadtnavi.de/parkapi.json (URL might still change in future).

Note: the response contains some additional tags (opening_hours, fees) which we'd like to add to the schema in an upcoming PR.

I think that even if external data providers comply with the ParkAPI schema, for security/compatibility reasons responses should not only be passed through.

Is there already a reusable scraper for remote ParkAPI sources?

kiliankoe commented 4 years ago

This is very cool! I also very much like the additional data, which is something I've been meaning to add to the spec for a long time, a PR for that sounds great!

I think that even if external data providers comply with the ParkAPI schema, for security/compatibility reasons responses should not only be passed through.

The ParkAPI project also tries to aggregate historical data, so at least caching it makes sense in any way. The initial motivation behind the project also included alleviating potential stress from data sources by not passing requests from clients directly through. Popularity has never risen to anywhere close to that being an issue however. Just as an aside to security and compatibility, which are valid enough by themselves as reasons 👍

Is there already a reusable scraper for remote ParkAPI sources?

Nope, not yet.

kiliankoe commented 4 years ago

A few months ago I took a stab at rewriting the data aggregation with some lessons learned in mind. Regarding the additional lot data, I arrived at this list:

See here: https://github.com/OpenParkingApp/OpenParkingBase/blob/b80585775abbabbac088c2540d766449c934a3ec/Sources/OpenParkingBase/Lot.swift#L4-L18

hbruch commented 4 years ago

Before I comment here: Should we discuss additional data in #175 or in a new issue?

kiliankoe commented 4 years ago

Makes sense to move that conversation there 👍

AugustQu commented 4 years ago

Hi,

can you please include the headroom of a parking lot in the data.

Is headroom the correct word for it? I mean the max. allowed height of a car entering the parking lot.

Thanks.

kiliankoe commented 4 years ago

I noticed that only two lots in the dataset have actual availability information, is this to be expected (for now)?

kiliankoe commented 4 years ago

It's not being used in any way right now for this project, but I added a module for the (possibly) upcoming version of this project to play around with the data: https://github.com/OpenParkingApp/Herrenberg

hbruch commented 4 years ago

@kiliankoe for now, there are only two parking areas with live data, indeed.

They use floor sensors sending their occupancy state via LoRaWAN which is then aggregated. For a couple of other parkings occupancy data will be published as soon as it's available.

kiliankoe commented 4 years ago

Ah that's awesome! And adding more data sounds great as well 👍