ParkAPI icon indicating copy to clipboard operation
ParkAPI copied to clipboard

Additional metadata for cities/lots

Open kiliankoe opened this issue 6 years ago • 6 comments

Since Dresden has started this, fits nicely into the project. I suppose adding a link for buying tickets for supported services to a city's data would make the most sense.

Apps would probably just open the system browser either in-app or directly, having a button to buy tickets somewhere. I'll open separate issues for that.

kiliankoe avatar Mar 17 '19 02:03 kiliankoe

a friend asked me about the entrance height of a parking lot (he drives a camping van).

Maybe you can add this too.

AugustQu avatar May 10 '19 15:05 AugustQu

If available I would put stuff like that in the additional information field, which should definitely be displayed in the apps once I get around to updating those 👍

kiliankoe avatar May 11 '19 07:05 kiliankoe

I'll just copy my comment from #215 here to continue the conversation as suggested.

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:

  • dataAge: Date?
  • name: String
  • coordinates: Coordinates
  • city: String
  • region: String?
  • address: String?
  • available: Available (discrete values or range, as the Deutsche Bahn for example only has ranges in their dataset)
  • capacity: Int?
  • state: State
  • type: LotType?
  • detailURL: URL?
  • imageURL: URL?
  • pricing: Pricing? (contains optional text and URL for more info)
  • openingHours: OpeningHours? (contains optional text and URL for more info)
  • additionalInformation: [String: Any]?

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

kiliankoe avatar May 17 '20 08:05 kiliankoe

@AugustQu I'm not sure having an explicit field for headroom/entrance height makes sense, since it only applies to some lot types, but it's definitely something we could add to additionalInformation if available 👍

edit: I see I've written that above as well, sorry about the duplicate comment 😄

kiliankoe avatar May 17 '20 18:05 kiliankoe

wherever you want to store this information.

A friend drives a 'Wohnmobil'. For entering a parking lot with this vehicle he needs this information.

AugustQu avatar May 18 '20 13:05 AugustQu

Can I add a few more requests for an updated schema?

  • Use proper ISO-8601 with timezone (2020-06-09T19:15:19+02:00) for times, instead of a timezone-less version that implies UTC.
  • Define proper enums for the type of parking lot

leonardehrenfried avatar Jun 09 '20 19:06 leonardehrenfried