Skip to main content
POST
/
v1
/
distance
Return reference areas within a distance range of a geometry
curl --request POST \
  --url https://api.example.com/v1/distance \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "input": {
    "geometry": {
      "coordinates": [
        [
          [
            123
          ]
        ]
      ],
      "type": "Polygon",
      "bbox": [
        123
      ]
    },
    "max_distance_m": 1,
    "crs": "<string>",
    "min_distance_m": 0
  },
  "reference_areas_country_iso3": "<string>",
  "reference_areas_source": "<string>",
  "reference_id": "<string>"
}
'

Documentation Index

Fetch the complete documentation index at: https://code4source.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

accept
string | null
Idempotency-Key
string | null

Body

application/json
input
DistanceInput · object
required

User-supplied data for the request — geometry, optional CRS, and the [min_distance_m, max_distance_m] bounds. Required.

reference_areas_country_iso3
string | null

ISO3 filter (e.g. 'BRA').

Required string length: 3
reference_areas_source
string | null

Source filter (e.g. 'wfs').

Maximum string length: 64
reference_id
string | null

Optional caller-provided reference identifier for audit/trace.

Maximum string length: 128

Response

Distance matches returned.