Code Monkey home page Code Monkey logo

Comments (9)

kiliankoe avatar kiliankoe commented on July 17, 2024 1

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

from parkapi.

kiliankoe avatar kiliankoe commented on July 17, 2024

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.

from parkapi.

hbruch avatar hbruch commented on July 17, 2024

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

from parkapi.

kiliankoe avatar kiliankoe commented on July 17, 2024

Makes sense to move that conversation there 👍

from parkapi.

AugustQu avatar AugustQu commented on July 17, 2024

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.

from parkapi.

kiliankoe avatar kiliankoe commented on July 17, 2024

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

from parkapi.

kiliankoe avatar kiliankoe commented on July 17, 2024

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

from parkapi.

hbruch avatar hbruch commented on July 17, 2024

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

from parkapi.

kiliankoe avatar kiliankoe commented on July 17, 2024

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

from parkapi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.