---
title: "GET /rails/locations_search"
method: GET
path: "/rails/locations_search"
tags: ["rails"]
---

# GET /rails/locations_search

`GET /rails/locations_search`

## Request

- Base URL: `https://app.getgoing.com`
- URL: `https://app.getgoing.com/rails/locations_search`
- Auth: API key in header `Authorization`

## Query parameters

- `search` string, required

## Response `200`

Request fulfilled, document follows

- RailsLocationsSearchResponseSchema[]
  - `id` string
  - `name` string
  - `type` 'STATION' | 'STATION_GROUP' | 'CITY' | 'UNKNOWN'
  - `country_code` string, nullable
  - `country_name` string, nullable

## Other responses

- `422`: Success

---

[API](https://skmtc.dev/getgoing/apis/getgoing-api.md) - [All operations](https://skmtc.dev/getgoing/apis/getgoing-api/llms.txt) - [OpenAPI document](https://skmtc.dev/getgoing/apis/getgoing-api/revisions/7546f102cf69?raw)
