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

Additional metadata for cities/lots #175

Open
kiliankoe opened this issue Mar 17, 2019 · 6 comments
Open

Additional metadata for cities/lots #175

kiliankoe opened this issue Mar 17, 2019 · 6 comments

Comments

@kiliankoe
Copy link
Member

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.

@AugustQu
Copy link
Contributor

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

Maybe you can add this too.

@kiliankoe
Copy link
Member Author

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
Copy link
Member Author

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 kiliankoe changed the title Payment field for cities/lots Additional metadata for cities/lots May 17, 2020
@kiliankoe
Copy link
Member Author

kiliankoe commented May 17, 2020

@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 😄

@AugustQu
Copy link
Contributor

wherever you want to store this information.

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

@leonardehrenfried
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants