Skip to content
This repository has been archived by the owner on Feb 18, 2022. It is now read-only.

Example Queries

Dennis Post edited this page Aug 18, 2017 · 1 revision

Queries name, location and station picture of 'Frankfurt Hbf' (evaId: 8000105)

{
  stationWithEvaId(evaId: 8000105) {
    name
    location {
       latitude
       longitude
    }
    picture {
      url
    }
  }
}

Queries 5 stations within a distance of 2000m and their corresponding facilities and location

{
  nearby(latitude: 50.11, longitude: 8.66, radius: 2000) {
    stations(count: 5) {
      name
      primaryEvaId
      location {
        latitude
        longitude
      }
      facilities {
        type
        state
        description
        equipmentNumber
      }
    }
  }
}

Queries stations and operationLocations (Betriebsstellen) matching the search term "Flughafen"

{
  search(searchTerm: "Flughafen") {
    stations {
      name
      primaryEvaId
    }
    operationLocations {
      name
      id
      regionId
      abbrev
      locationCode
    }
  }
}