GET /api/route/{callsign}
Looks up the origin and destination airports for an active flight using the adsb.lol routeset API. Returns coordinates and names for both endpoints, suitable for drawing a great-circle arc on the map.
Rate limit: 60 requests per minute per IP.
Path parameters
ICAO flight callsign (e.g.
BAW123, UAL456). Case-insensitive.Query parameters
Current latitude of the aircraft. Used by adsb.lol for nearest-airport resolution when the callsign matches multiple routes. Optional.
Current longitude of the aircraft. Optional.
Response
Returns an object with route details when a route is found, or an empty object{} when no route is available for the callsign.
Origin airport coordinates as
[longitude, latitude] (GeoJSON order).Destination airport coordinates as
[longitude, latitude].Origin airport label in
"IATA: Name" or "ICAO: Name" format (e.g. "LHR: London Heathrow").Destination airport label in the same format.
Returns an empty object
{} when adsb.lol has no route data for the callsign. This is common for military, charter, or unscheduled flights.