Skip to content

Search Places

GET
/api/geocoding/search

Search for cities, towns, and places by name. Returns coordinates and location details for use with calculation endpoints.

Authorizations

ApiKeyAuth

API key for authentication. Get your API key from the dashboard.

TypeAPI Key (header: X-Api-Key)

Responses

List of matching places with coordinates

application/json
JSON
{
"data": [
{
"id": "string",
"name": "string",
"displayName": "string",
"latitude": 0,
"longitude": 0,
"country": "string",
"countryCode": "string",
"state": "string",
"city": "string"
}
]
}

Playground

Authorization

Samples

Powered by VitePress OpenAPI

AstroAPI Documentation