openapi: 3.1.0 info: title: CTA Bus Tracker Arrivals Locations API description: The Chicago Transit Authority Bus Tracker API provides real-time bus arrival predictions, vehicle locations, route patterns, route lists, and stop directories for the CTA bus network. Access requires an API key issued by the CTA Developer Center. version: 2.0.0 contact: name: CTA Developer Center url: https://www.transitchicago.com/developers/ license: name: CTA Developer License Agreement url: https://www.transitchicago.com/developers/terms/ servers: - url: http://www.ctabustracker.com/bustime/api/v2 description: CTA Bus Tracker v2 production security: - apiKey: [] tags: - name: Locations description: Train geolocation operations paths: /ttpositions.aspx: get: operationId: getPositions summary: Locations description: Returns the current latitude/longitude for in-service trains. tags: - Locations parameters: - name: key in: query required: true schema: type: string - name: rt in: query description: Comma-separated list of route codes. required: true schema: type: string - name: outputType in: query schema: type: string responses: '200': description: Positions of in-service trains content: application/json: schema: $ref: '#/components/schemas/PositionsResponse' components: schemas: PositionsResponse: type: object properties: ctatt: type: object properties: tmst: type: string errCd: type: string errNm: type: string route: type: array items: type: object properties: '@name': type: string train: type: array items: $ref: '#/components/schemas/Position' Position: type: object properties: rn: type: string destSt: type: string destNm: type: string trDr: type: string nextStaId: type: string nextStaNm: type: string prdt: type: string arrT: type: string isApp: type: string isDly: type: string lat: type: string lon: type: string heading: type: string securitySchemes: apiKey: type: apiKey in: query name: key