Endpoint guide
GET /v1/places/nearest
Use this endpoint when the product needs a single closest matching place of worship from a latitude and longitude origin.
Parameters
| Parameter | Behavior |
|---|---|
lat | Required latitude in the range -90 to 90. |
lon | Required longitude in the range -180 to 180. |
radiusKm | Optional search radius. Public maximum is 20 km; default is 8 km. |
religion | Optional. Defaults to all. Supported values include christian, muslim, jewish, hindu, buddhist, sikh, shinto and other. |
denomination | Optional ASCII slug used to narrow matching source metadata. |
cURL example
curl -H "X-API-Key: $KAIROS_API_KEY" \
"https://kairos.yarumaltech.com/v1/places/nearest?lat=6.96333&lon=-75.41722&radiusKm=8&religion=all"
When to use it
“Closest to me” UX
Use it for a single recommendation, nearest-place card or first routing target.
Server-side enrichment
Resolve one place around a coordinate before storing or joining additional application data.