Location
Location-related operations
Returns pins within a specified radius of a geographic location using PostGIS spatial queries. Radius is in meters.
Query parameters
latstringRequiredExample:
Latitude in decimal degrees (will be parsed as a number)
40.735554
lonstringRequiredExample:
Longitude in decimal degrees (will be parsed as a number)
-73.987968
radiusstring · max: 100000OptionalDefault:
Search radius in meters (default: 1000m / 1km, min: 0m, max: 100,000m, will be parsed as a number)
1000
Example: 200
Responses
200
List of nearby pins with distances
application/json
500
Internal server error
application/json
get
GET /api/location/pins?lat=text&lon=text HTTP/1.1
Host:
Accept: */*
{
"pins": [
{
"id": 1,
"title": "text",
"geoPose": {
"position": {
"lat": 1,
"lon": 1,
"h": 0
},
"angles": {
"yaw": 0,
"pitch": 0,
"roll": 0
}
},
"contentType": "IMAGE",
"contentUrl": "text",
"zoneId": 1,
"gcpId": 1,
"createdAt": "2025-10-16T18:02:51.927Z",
"updatedAt": "2025-10-16T18:02:51.927Z",
"distance": 123.45
}
]
}