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

API does not return station times #15

Open
k5cents opened this issue Nov 10, 2023 · 0 comments
Open

API does not return station times #15

k5cents opened this issue Nov 10, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@k5cents
Copy link
Owner

k5cents commented Nov 10, 2023

Docs: https://developer.wmata.com/docs/services/5476364f031f590f38092507/operations/5476364f031f5909e4fe3312

Code:

dat <- wmata_api(
  path = "Rail.svc/json/jStationTimes",
  query = list(StationCode = "A01"),
  level = 1,
  api_key = api_key
)

The FirstTrains and LastTrains values are empty.

{
  "StationTimes": [
    {
      "Code": "E10",
      "StationName": "Greenbelt",
      "Monday": {
        "OpeningTime": "04:50",
        "FirstTrains": [],
        "LastTrains": []
      },
      "Tuesday": {
        "OpeningTime": "04:50",
        "FirstTrains": [],
        "LastTrains": []
      },
      "Wednesday": {
        "OpeningTime": "04:50",
        "FirstTrains": [],
        "LastTrains": []
      },
      "Thursday": {
        "OpeningTime": "04:50",
        "FirstTrains": [],
        "LastTrains": []
      },
      "Friday": {
        "OpeningTime": "04:50",
        "FirstTrains": [],
        "LastTrains": []
      },
      "Saturday": {
        "OpeningTime": "06:50",
        "FirstTrains": [],
        "LastTrains": []
      },
      "Sunday": {
        "OpeningTime": "07:50",
        "FirstTrains": [],
        "LastTrains": []
      }
    }
  ]
}
@k5cents k5cents added the bug Something isn't working label Nov 10, 2023
k5cents added a commit that referenced this issue Nov 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant