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

Added rides_execution api #31

Merged
merged 2 commits into from
Jul 24, 2023
Merged

Conversation

ShayAdler
Copy link
Contributor

Added the api we used to have at - http://ec2-52-201-152-176.compute-1.amazonaws.com/get_rides_statistics/7005/3/2023-07-16 (to be used at the https://open-bus-map-search.hasadna.org.il/gaps tab)

Example return value:

[
  {
    "planned_start_time": "2023-07-03T03:15:00",
    "actual_start_time": "2023-07-03T03:15:00",
    "gtfs_ride_id": 46611362
  },
  {
    "planned_start_time": "2023-07-03T03:40:00",
    "actual_start_time": "2023-07-03T03:40:00",
    "gtfs_ride_id": 46582774
  },
  {
    "planned_start_time": "2023-07-03T04:00:00",
    "actual_start_time": "2023-07-03T04:00:00",
    "gtfs_ride_id": 46665266
  },
  {
    "planned_start_time": "2023-07-03T04:35:00",
    "actual_start_time": null,
    "gtfs_ride_id": 46582772
  },
  {
    "planned_start_time": "2023-07-03T05:00:00",
    "actual_start_time": "2023-07-03T05:00:00",
    "gtfs_ride_id": 46629674
  },
  {
    "planned_start_time": "2023-07-03T05:20:00",
    "actual_start_time": "2023-07-03T05:20:00",
    "gtfs_ride_id": 46591165
  },
  {
    "planned_start_time": "2023-07-03T05:40:00",
    "actual_start_time": "2023-07-03T05:40:00",
    "gtfs_ride_id": 46669345
  },
  {
    "planned_start_time": "2023-07-03T06:00:00",
    "actual_start_time": "2023-07-03T06:00:00",
    "gtfs_ride_id": 46642338
  },
  {
    "planned_start_time": "2023-07-03T06:15:00",
    "actual_start_time": "2023-07-03T06:15:00",
    "gtfs_ride_id": 46582771
  },
  {
    "planned_start_time": "2023-07-03T06:30:00",
    "actual_start_time": null,
    "gtfs_ride_id": 46642341
  },
  {
    "planned_start_time": "2023-07-03T06:45:00",
    "actual_start_time": "2023-07-03T06:45:00",
    "gtfs_ride_id": 46642340
  },
  {
    "planned_start_time": "2023-07-03T07:00:00",
    "actual_start_time": "2023-07-03T07:00:00",
    "gtfs_ride_id": 46591164
  },
  {
    "planned_start_time": "2023-07-03T07:15:00",
    "actual_start_time": "2023-07-03T07:15:00",
    "gtfs_ride_id": 46582770
  },
  {
    "planned_start_time": "2023-07-03T07:30:00",
    "actual_start_time": "2023-07-03T07:30:00",
    "gtfs_ride_id": 46665268
  },
  {
    "planned_start_time": "2023-07-03T07:45:00",
    "actual_start_time": "2023-07-03T07:45:00",
    "gtfs_ride_id": 46582769
  },
  {
    "planned_start_time": "2023-07-03T08:00:00",
    "actual_start_time": "2023-07-03T08:00:00",
    "gtfs_ride_id": 46669344
  },
  {
    "planned_start_time": "2023-07-03T08:20:00",
    "actual_start_time": "2023-07-03T08:20:00",
    "gtfs_ride_id": 46629675
  },
  {
    "planned_start_time": "2023-07-03T08:40:00",
    "actual_start_time": "2023-07-03T08:40:00",
    "gtfs_ride_id": 46582766
  },
  {
    "planned_start_time": "2023-07-03T09:00:00",
    "actual_start_time": "2023-07-03T09:00:00",
    "gtfs_ride_id": 46611360
  },
  {
    "planned_start_time": "2023-07-03T09:20:00",
    "actual_start_time": "2023-07-03T09:20:00",
    "gtfs_ride_id": 46605995
  },
  {
    "planned_start_time": "2023-07-03T09:40:00",
    "actual_start_time": "2023-07-03T09:40:00",
    "gtfs_ride_id": 46611361
  },
  {
    "planned_start_time": "2023-07-03T10:00:00",
    "actual_start_time": "2023-07-03T10:00:00",
    "gtfs_ride_id": 46642339
  },
  {
    "planned_start_time": "2023-07-03T10:20:00",
    "actual_start_time": "2023-07-03T10:20:00",
    "gtfs_ride_id": 46582767
  },
  {
    "planned_start_time": "2023-07-03T10:40:00",
    "actual_start_time": "2023-07-03T10:40:00",
    "gtfs_ride_id": 46631990
  },
  {
    "planned_start_time": "2023-07-03T11:00:00",
    "actual_start_time": "2023-07-03T11:00:00",
    "gtfs_ride_id": 46678670
  },
  {
    "planned_start_time": "2023-07-03T11:15:00",
    "actual_start_time": "2023-07-03T11:15:00",
    "gtfs_ride_id": 46591166
  },
  {
    "planned_start_time": "2023-07-03T11:30:00",
    "actual_start_time": "2023-07-03T11:30:00",
    "gtfs_ride_id": 46669346
  },
  {
    "planned_start_time": "2023-07-03T11:45:00",
    "actual_start_time": "2023-07-03T11:45:00",
    "gtfs_ride_id": 46582765
  },
  {
    "planned_start_time": "2023-07-03T12:00:00",
    "actual_start_time": "2023-07-03T12:00:00",
    "gtfs_ride_id": 46611359
  },
  {
    "planned_start_time": "2023-07-03T12:20:00",
    "actual_start_time": "2023-07-03T12:20:00",
    "gtfs_ride_id": 46582768
  },
  {
    "planned_start_time": "2023-07-03T12:40:00",
    "actual_start_time": "2023-07-03T12:40:00",
    "gtfs_ride_id": 46665267
  },
  {
    "planned_start_time": "2023-07-03T13:00:00",
    "actual_start_time": "2023-07-03T13:00:00",
    "gtfs_ride_id": 46678666
  },
  {
    "planned_start_time": "2023-07-03T13:20:00",
    "actual_start_time": "2023-07-03T13:20:00",
    "gtfs_ride_id": 46642346
  },
  {
    "planned_start_time": "2023-07-03T13:40:00",
    "actual_start_time": "2023-07-03T13:40:00",
    "gtfs_ride_id": 46605996
  },
  {
    "planned_start_time": "2023-07-03T14:00:00",
    "actual_start_time": "2023-07-03T14:00:00",
    "gtfs_ride_id": 46632503
  },
  {
    "planned_start_time": "2023-07-03T14:20:00",
    "actual_start_time": "2023-07-03T14:20:00",
    "gtfs_ride_id": 46642347
  },
  {
    "planned_start_time": "2023-07-03T14:40:00",
    "actual_start_time": null,
    "gtfs_ride_id": 46678671
  },
  {
    "planned_start_time": "2023-07-03T15:00:00",
    "actual_start_time": "2023-07-03T15:00:00",
    "gtfs_ride_id": 46629677
  },
  {
    "planned_start_time": "2023-07-03T15:20:00",
    "actual_start_time": "2023-07-03T15:20:00",
    "gtfs_ride_id": 46678689
  },
  {
    "planned_start_time": "2023-07-03T15:40:00",
    "actual_start_time": null,
    "gtfs_ride_id": 46631993
  },
  {
    "planned_start_time": "2023-07-03T16:00:00",
    "actual_start_time": "2023-07-03T16:00:00",
    "gtfs_ride_id": 46631992
  },
  {
    "planned_start_time": "2023-07-03T16:20:00",
    "actual_start_time": "2023-07-03T16:20:00",
    "gtfs_ride_id": 46632502
  },
  {
    "planned_start_time": "2023-07-03T16:40:00",
    "actual_start_time": "2023-07-03T16:40:00",
    "gtfs_ride_id": 46582773
  },
  {
    "planned_start_time": "2023-07-03T17:00:00",
    "actual_start_time": null,
    "gtfs_ride_id": 46620497
  },
  {
    "planned_start_time": "2023-07-03T17:20:00",
    "actual_start_time": "2023-07-03T17:20:00",
    "gtfs_ride_id": 46642345
  },
  {
    "planned_start_time": "2023-07-03T17:40:00",
    "actual_start_time": "2023-07-03T17:40:00",
    "gtfs_ride_id": 46631991
  },
  {
    "planned_start_time": "2023-07-03T18:00:00",
    "actual_start_time": "2023-07-03T18:00:00",
    "gtfs_ride_id": 46642344
  },
  {
    "planned_start_time": "2023-07-03T18:20:00",
    "actual_start_time": "2023-07-03T18:20:00",
    "gtfs_ride_id": 46583272
  },
  {
    "planned_start_time": "2023-07-03T18:40:00",
    "actual_start_time": "2023-07-03T18:40:00",
    "gtfs_ride_id": 46631994
  },
  {
    "planned_start_time": "2023-07-03T19:00:00",
    "actual_start_time": "2023-07-03T19:00:00",
    "gtfs_ride_id": 46620496
  },
  {
    "planned_start_time": "2023-07-03T19:20:00",
    "actual_start_time": "2023-07-03T19:20:00",
    "gtfs_ride_id": 46583271
  },
  {
    "planned_start_time": "2023-07-03T19:40:00",
    "actual_start_time": "2023-07-03T19:40:00",
    "gtfs_ride_id": 46583273
  },
  {
    "planned_start_time": "2023-07-03T20:00:00",
    "actual_start_time": "2023-07-03T20:00:00",
    "gtfs_ride_id": 46642343
  },
  {
    "planned_start_time": "2023-07-03T20:20:00",
    "actual_start_time": "2023-07-03T20:20:00",
    "gtfs_ride_id": 46629676
  },
  {
    "planned_start_time": "2023-07-03T20:40:00",
    "actual_start_time": "2023-07-03T20:40:00",
    "gtfs_ride_id": 46642342
  },
  {
    "planned_start_time": "2023-07-03T21:00:00",
    "actual_start_time": "2023-07-03T21:00:00",
    "gtfs_ride_id": 46708784
  },
  {
    "planned_start_time": "2023-07-03T21:20:00",
    "actual_start_time": "2023-07-03T21:20:00",
    "gtfs_ride_id": 46792381
  },
  {
    "planned_start_time": "2023-07-03T21:40:00",
    "actual_start_time": "2023-07-03T21:40:00",
    "gtfs_ride_id": 46771787
  },
  {
    "planned_start_time": "2023-07-03T22:00:00",
    "actual_start_time": "2023-07-03T22:00:00",
    "gtfs_ride_id": 46708785
  },
  {
    "planned_start_time": "2023-07-03T22:20:00",
    "actual_start_time": "2023-07-03T22:20:00",
    "gtfs_ride_id": 46782890
  },
  {
    "planned_start_time": null,
    "actual_start_time": "2023-07-03T18:15:00",
    "gtfs_ride_id": null
  }
]

@OriHoch OriHoch merged commit 321b60a into hasadna:main Jul 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants