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

add attribute additional to additional stopovers with test #304

Merged
merged 1 commit into from
Nov 27, 2023

Conversation

dabund24
Copy link
Contributor

@dabund24 dabund24 commented Nov 25, 2023

As described in #303, a stopover now has an attribute additional if it is additional (i.e. it is a "Zusatzhalt"). Also includes a test checking this behavior.

Example:

{
  "stop": {
    "type": "stop",
    "id": "8000156",
    "name": "Heidelberg Hbf",
    "location": {
      "type": "location",
      "id": "8000156",
      "latitude": 49.403582,
      "longitude": 8.67548
    },
    "products": {
      "nationalExpress": true,
      "national": true,
      "regionalExpress": true,
      "regional": true,
      "suburban": true,
      "bus": true,
      "ferry": false,
      "subway": false,
      "tram": true,
      "taxi": true
    }
  },
  "arrival": "2023-11-25T15:49:00+01:00",
  "plannedArrival": "2023-11-25T15:34:00+01:00",
  "arrivalDelay": 900,
  "arrivalPlatform": "7a",
  "arrivalPrognosisType": "prognosed",
  "plannedArrivalPlatform": null,
  "departure": "2023-11-25T15:50:00+01:00",
  "plannedDeparture": "2023-11-25T15:35:00+01:00",
  "departureDelay": 900,
  "departurePlatform": "7a",
  "departurePrognosisType": "prognosed",
  "plannedDeparturePlatform": null,
  "additional": true
}

fixes #303

@dabund24 dabund24 changed the title add attribute additional to additional stopovers with test #303 add attribute additional to additional stopovers with test Nov 25, 2023
@derhuerst derhuerst merged commit 244e88d into public-transport:master Nov 27, 2023
9 of 15 checks passed
@derhuerst
Copy link
Member

Thanks!

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

Successfully merging this pull request may close these issues.

journeys(): Add attribute additional for stopovers
2 participants