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

feat(flights): add FlightStop structure #16

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

0x9ef
Copy link

@0x9ef 0x9ef commented Aug 23, 2023

This PR adds stops list which describes additional segment-specific information about the stops, if any, included in the segment.

The structure of "stops":

  "stops": [
    {
      "id": "sto_00009htYpSCXrwaB9Dn456",
      "duration": "PT02H26M",
      "departing_at": "2020-06-13T16:38:02",
      "airport": {
        "type": "airport",
        "time_zone": "Europe/London",
        "name": "Heathrow",
        "longitude": -141.951519,
        "latitude": 64.068865,
        "id": "arp_lhr_gb",
        "icao_code": "EGLL",
        "iata_country_code": "GB",
        "iata_code": "LHR",
        "iata_city_code": "LON",
        "city_name": "London",
        "city": {
          "name": "London",
          "id": "cit_lon_gb",
          "iata_country_code": "GB",
          "iata_code": "LON"
        },
        "airports": [
          {
            "time_zone": "Europe/London",
            "name": "Heathrow",
            "longitude": -141.951519,
            "latitude": 64.068865,
            "id": "arp_lhr_gb",
            "icao_code": "EGLL",
            "iata_country_code": "GB",
            "iata_code": "LHR",
            "iata_city_code": "LON",
            "city_name": "London",
            "city": {
              "name": "London",
              "id": "cit_lon_gb",
              "iata_country_code": "GB",
              "iata_code": "LON"
            }
          }
        ]
      }
    }
  ]

@0x9ef
Copy link
Author

0x9ef commented Aug 23, 2023

cc @ivanvanderbyl

@ivanvanderbyl
Copy link
Contributor

@0x9ef I'm no longer a maintainer on this repo, so I can't review or merge this. Ping @LindseyRenken

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