PhillyGPT

PhillyGPT · Ações GPT

SEPTA Bus And Trolley

Use this documentation to test out all of the available SEPTA bus/trolley API's

  • GET /TransitView/index.phpTransitView

    Returns bus and trolley locations by route. Every bus and trolley route is a valid parameter please refer to the <a href='/VIBusAndTrolley.html'>Bus & Trolley Inputs</a> page to see all valid inputs.

  • GET /TransitViewAll/index.phpTransitViewAll

    Returns all buses and trolley locations.

  • GET /BusDetours/index.phpBusDetours

    Returns a list of bus and trolley detours by route.Every bus and trolley route is a valid parameter please refer to the <a href='/VIBusAndTrolley.html'>Bus & Trolley Inputs</a> page to see all valid inputs.

  • GET /Alerts/index.phpNoMessageAlert

    Shows if there is a travel alert for a bus or trolley route. Get all the route id from <a href='https://www3.septa.org/api/Alerts'>here</a>

  • GET /Alerts/get_alert_data.phpMessageAlert

    Returns the travel alerts for a bus or trolley route.Get all the route id from <a href='https://www3.septa.org/api/Alerts'>here</a>

  • GET /BusSchedules/index.phpBusSchedule

    Returns a list of times that a bus or trolley will stop at a particular stop.

  • GET /Stops/index.phpStops

    Returns bus and trolley stop locations by route.

  • GET /locations/get_locations.phpLocations

    Takes in 4 parameters to return all SEPTA locations from a geographical point within a radius that is measured in miles.

Esquema API original
{
  "openapi": "3.1.0",
  "info": {
    "title": "SEPTA Bus And Trolley",
    "description": "Use this documentation to test out all of the available SEPTA bus/trolley API's",
    "version": "v0.0.1"
  },
  "servers": [
    {
      "url": "https://www3.septa.org/api"
    }
  ],
  "paths": {
    "/TransitView/index.php": {
      "get": {
        "description": "Returns bus and trolley locations by route. Every bus and trolley route is a valid parameter please refer to the <a href='/VIBusAndTrolley.html'>Bus & Trolley Inputs</a> page to see all valid inputs.",
        "operationId": "TransitView",
        "parameters": [
          {
            "name": "route",
            "in": "query",
            "description": "Route Number",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "explode": false,
            "allowReserved": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "deprecated": false
      }
    },
    "/TransitViewAll/index.php": {
      "get": {
        "description": "Returns all buses and trolley locations.",
        "operationId": "TransitViewAll",
        "parameters": [],
        "deprecated": false
      }
    },
    "/BusDetours/index.php": {
      "get": {
        "description": "Returns a list of bus and trolley detours by route.Every bus and trolley route is a valid parameter please refer to the <a href='/VIBusAndTrolley.html'>Bus & Trolley Inputs</a> page to see all valid inputs.",
        "operationId": "BusDetours",
        "parameters": [
          {
            "name": "req1",
            "in": "query",
            "description": "Bus or trolley route numbers",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "explode": false,
            "allowReserved": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "deprecated": false
      }
    },
    "/Alerts/index.php": {
      "get": {
        "description": "Shows if there is a travel alert for a bus or trolley route. Get all the route id from <a href='https://www3.septa.org/api/Alerts'>here</a>",
        "operationId": "NoMessageAlert",
        "parameters": [
          {
            "name": "routes",
            "in": "query",
            "description": "Ex : bus_route_1 or trolley_route_10 or rr_route_chw",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "explode": false,
            "allowReserved": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "deprecated": false
      }
    },
    "/Alerts/get_alert_data.php": {
      "get": {
        "description": "Returns the travel alerts for a bus or trolley route.Get all the route id from <a href='https://www3.septa.org/api/Alerts'>here</a>",
        "operationId": "MessageAlert",
        "parameters": [
          {
            "name": "route_id",
            "in": "query",
            "description": "Ex : bus_route_1 or trolley_route_10 or rr_route_chw",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "explode": false,
            "allowReserved": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "deprecated": false
      }
    },
    "/BusSchedules/index.php": {
      "get": {
        "description": "Returns a list of times that a bus or trolley will stop at a particular stop.",
        "operationId": "BusSchedule",
        "parameters": [
          {
            "name": "stop_id",
            "in": "query",
            "description": "Every stop ID is a valid parameter for a list of stop IDs by route please visit the <a href='/stops/index.php'>Choose Your Stop ID</a> page.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "explode": false,
            "allowReserved": false,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "deprecated": false
      }
    },
    "/Stops/index.php": {
      "get": {
        "description": "Returns bus and trolley stop locations by route.",
        "operationId": "Stops",
        "parameters": [
          {
            "name": "req1",
            "in": "query",
            "description": "Every bus and trolley route is a valid parameter please refer to the <a href='/VIBusAndTrolley.html'>Bus & Trolley Inputs</a> page to see all valid inputs.",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "explode": false,
            "allowReserved": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "deprecated": false
      }
    },
    "/locations/get_locations.php": {
      "get": {
        "description": "Takes in 4 parameters to return all SEPTA locations from a geographical point within a radius that is measured in miles.",
        "operationId": "Locations",
        "parameters": [
          {
            "name": "lon",
            "in": "query",
            "description": "Longitude",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "explode": false,
            "allowReserved": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "lat",
            "in": "query",
            "description": "Latitude",
            "required": true,
            "deprecated": false,
            "allowEmptyValue": false,
            "explode": false,
            "allowReserved": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "type",
            "in": "query",
            "description": "Location Type",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "explode": false,
            "allowReserved": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "radius",
            "in": "query",
            "description": "Radius",
            "required": false,
            "deprecated": false,
            "allowEmptyValue": false,
            "explode": false,
            "allowReserved": false,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "deprecated": false
      }
    }
  },
  "components": {
    "schemas": {}
  }
}