skytracker.api.v1.state.api_get_track#
- async skytracker.api.v1.state.api_get_track(storage: ~skytracker.storage.storage.Storage = Depends(get_storage), callsign: str = Path(PydanticUndefined), duration: str = Query(10h), limit: int = Query(0)) list[MapState]#
Get the track history of a specific aircraft
- Parameters:
storage (Storage, optional) – backend storage manager. Defaults to Depends(get_storage).
callsign (str) – aircraft callsign (ICAO)
duration (str, optional) – duration of track (i.e. “5h20m” or “10m20s”). Defaults to 1 day.
limit (int, optional) – maximum number of states to get (0=all). Defaults to 0 (all).
- Returns:
list of aircraft track states with specified duration
- Return type:
list[MapState]