Using Blueprints

Finding Blueprints

When searching for journeys you can apply a filter to only look for results of the type BlueprintJourney. This allows you to use any combination of origin and destination to see if there's a matching Blueprint available.

Origin and destination has to match

Only an exact match of origin and destination will yield a BlueprintJourney result.

Example: Get all Blueprints from Copenhagen to Prague
graphql
query GetBlueprintJourneys {
  getJourneys(
    origin: "jOYDyOgW"
    destination: "5BZEWWng"
    date: "2024-06-05"
    filter: { type: [BLUEPRINT] }
  ) {
    id
    status
    itinerary {
      ... on SegmentCollection {
        segments {
          departureAt
          identifiers
        }
      }
    }
  }
}
query GetBlueprintJourneys {
  getJourneys(
    origin: "jOYDyOgW"
    destination: "5BZEWWng"
    date: "2024-06-05"
    filter: { type: [BLUEPRINT] }
  ) {
    id
    status
    itinerary {
      ... on SegmentCollection {
        segments {
          departureAt
          identifiers
        }
      }
    }
  }
}

Get Specific Blueprint

If you know on beforehand the exact Blueprint that you are looking for you can get it directly by its id using getJourneyForBlueprint.

Example: Get Blueprint by id
graphql
query GetBlueprintJourney {
  getJourneyForBlueprint(
    blueprint: "f240f054-a53d-4910-bffc-eb8aa5ed8e18"
    date: "2024-06-05"
  ) {
    id
    status
    itinerary {
      ... on SegmentCollection {
        segments {
          departureAt
          identifiers
        }
      }
    }
  }
}
query GetBlueprintJourney {
  getJourneyForBlueprint(
    blueprint: "ca11cc38-2996-45dd-9e52-eb80a6a43cb3"
    date: "2024-06-05"
  ) {
    id
    status
    itinerary {
      ... on SegmentCollection {
        segments {
          departureAt
          identifiers
        }
      }
    }
  }
}