---
title: "System Locations"
method: GET
path: "/locations/get_locations.php"
tags: ["Static Data"]
---

# System Locations

`GET /locations/get_locations.php`

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

## Query parameters

- `lon` number, double, required
- `lat` number, double, required
- `type` 'bus_stops' | 'perk_locations' | 'rail_stations' | 'sales_locations' | 'trolley_stops'
- `radius` integer

## Response `200`

success

- object[]
  - `location_id` string, byte — ID of the Septa resource
  - `location_name` string — Name of the Septa resource
  - `location_lat` string — Latitude of the Septa resource
  - `location_lon` string — Longitude of the Septa resource
  - `distance` string — Distance in miles between the resource and the location passed as parameter
  - `loction_type` string — Septa resource types (ex: Bus stops, regional rail stations)
  - `location_data` object
    - `location_id` string, byte — ID of the Septa resource
    - `location_name` string — Name of the Septa resource
    - `startDate` string
    - `endDate` string
    - `address1` string — Address of the Septa resource
    - `address2` string — Address of the Septa resource
    - `city` string — City where the Septa resource is situated
    - `state` string, byte — State where the Septa resource is situated
    - `zip` string, byte — Zipcode of the Septa resource is situated
    - `hours` string — Septa resource hours of operations
    - `loc_name` string
    - `status` string — Show if the resource is active or closed down
    - `phone` string — Location phome number of the Septa resource

---

[API](https://skmtc.net/septa/apis/septa-developers.md) · [All operations](https://skmtc.net/septa/apis/septa-developers/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/septa/septa-developers/revisions/e0575f41ded3/schema)
