---
title: "Coordinates for a place name"
method: GET
path: "/location/search"
tags: ["Places"]
---

# Coordinates for a place name

`GET /location/search`

## Request

- Base URL: `https://jagannatha-hora-359167915530.europe-west1.run.app`
- URL: `https://jagannatha-hora-359167915530.europe-west1.run.app/location/search`
- Auth: none declared

The best match for a place name from an index of more than 162,000 cities, with its coordinates and UTC offset. Use it to fill latitude, longitude and timezone before calling a chart endpoint.

Returns 404 when nothing matches and 400 when the query is shorter than 2 characters.

The query is part of the URL, so it appears in request logs (see Your Data).

No per-minute limit.

## Query parameters

- `query` string
- `q` string

## Response `200`

Success

- object
  - `place` unknown
  - `latitude` unknown
  - `longitude` unknown
  - `timezone` unknown
  - `country` unknown
  - `state` unknown
  - `displayName` unknown
  - `source` unknown

## Other responses

- `400`: The input cannot be used for this calculation. The detail says why.
- `404`: No place matches the query.

---

[API](https://skmtc.dev/jagannathahora/apis/vedic-astrology-calculation-api.md) · [All operations](https://skmtc.dev/jagannathahora/apis/vedic-astrology-calculation-api/llms.txt) · [OpenAPI document](https://skmtc.dev/jagannathahora/apis/vedic-astrology-calculation-api/revisions/bb90e41e2ba1?raw)
