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

Availability check marks are not working like in the web app #163

Closed
Denis306 opened this issue Jun 13, 2021 · 4 comments
Closed

Availability check marks are not working like in the web app #163

Denis306 opened this issue Jun 13, 2021 · 4 comments
Assignees

Comments

@Denis306
Copy link

Denis306 commented Jun 13, 2021

The web app uses check marks in green, a clock in orange and a cross in red to indicate the availability of parking garages.
image

The mobile app is currently only displaying the green check marks.
image

Please change this to be the same behaviour as in the web app.

@Denis306
Copy link
Author

@leonardehrenfried could you please provide some context to @SamuelRioTz on when the availability should be green, orange, red? Thank you!

@SamuelRioTz
Copy link
Contributor

@Denis306 the real issue here comparing web with app, is that on the web the map layers is fetched every interaction and in the app the map layer is fetched only once at the first time.
@leonardehrenfried there is some how to get the updated marker state individually? another workaround could be force re-fetch every some time. e.g. 1 min

@leonardehrenfried
Copy link

Sorry for the late answer:

you can use the following GraphQL query:

query parking {
  vehicleParking(id: "OSM:OSMWay/39040154") {
    vehicleParkingId
    name
    lon
    lat
    capacity {
      carSpaces
      bicycleSpaces
      wheelchairAccessibleCarSpaces
    }
    availability {
      carSpaces
      bicycleSpaces
      wheelchairAccessibleCarSpaces
    }
    imageUrl
    tags
    anyCarPlaces
    detailsUrl
    note
    openingHours
  }
}

@leonardehrenfried
Copy link

Or you can redownload the tiles every x seconds.

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

No branches or pull requests

3 participants