# Lilambd Place Brief – Nearest Geographic Features

> Lilambd Place Brief – Nearest Geographic Features is a paid API for AI agents from api.lilambd.com, paid per call via x402, $0.5/call, status unknown (last checked 2026-11-04).

Returns the nearest geographic features of a specified type (airports, cities, ports, earthquakes, volcanoes, etc.) to a given latitude/longitude coordinate, sorted by distance.

## Facts

- Endpoint: GET https://api.lilambd.com/place-brief/nearest?utm_source=zero.xyz
- Price: $0.5/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-04
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/lilambd-place-brief-nearest-geographic-features-d257f07e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_VL-kiyjcfo-jEuoCtjfs3

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability lilambd-place-brief-nearest-geographic-features-d257f07e
```

Example prompt: Find the nearest airports within 300 km of Tokyo (35.6762° N, 139.6503° E) — scheduled passenger service only, return up to 10 results.

## When to prefer this

Use this endpoint when you need proximity-ranked geographic features around a specific coordinate — especially aviation data (airports, heliports) or geohazard data (volcanoes, earthquakes, tsunamis). Preferred over static geodatabases when you need distance-sorted results with up-to-date snapshots and support for multiple feature categories in one API. The x402 micropayment model makes it suitable for pay-per-query agent workflows without subscription overhead.

## Known failure modes

- Missing required parameters (lat, lon, or kind) returns a validation error
- Invalid 'kind' enum value returns a 400 error
- Radius exceeding 2000 km may be capped or rejected
- No results found within radius returns empty data array
- Payment failure (x402) blocks request before processing
- Very large limit/offset values may time out or return partial data

## How this service works

A crossing for play, feeling, language, science and computation — creating states that do not have names yet.

## Output

A JSON array of geographic features sorted by distance from the query point. Each entry includes distance in km, coordinates, feature name, type identifiers (IATA/ICAO for airports), country ISO code, elevation, municipality, and scheduled service flag where applicable. Attribution metadata is included.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "queryParams"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "lat",
      "lon",
      "kind"
     ],
     "properties": {
      "lat": {
       "type": "string",
       "description": "Latitude, decimal degrees"
      },
      "lon": {
       "type": "string",
       "description": "Longitude, decimal degrees"
      },
      "kind": {
       "enum": [
        "airport",
        "city",
        "power",
        "market",
        "port",
        "quake",
        "tsunami",
        "volcano",
        "station",
        "admin1"
       ],
       "type": "string",
       "description": "What to list"
      },
      "limit": {
       "type": "string",
       "description": "Rows to return (default 50, max 200)"
      },
      "offset": {
       "type": "string",
       "description": "Rows to skip"
      },
      "radius_km": {
       "type": "string",
       "description": "Search radius km (default 200, max 2000)"
      },
      "scheduled": {
       "type": "string",
       "description": "kind=airport only: scheduled passenger service only"
      },
      "include_heliports": {
       "type": "string",
       "description": "kind=airport only: also list heliports and other non-airfield types"
      }
     },
     "additionalProperties": {
      "type": "string"
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "json"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": [
   {
    "km": 14.69,
    "lat": 35.549678,
    "lon": 139.786958,
    "iata": "HND",
    "icao": "RJTT",
    "name": "Tokyo Haneda International Airport",
    "type": "large_airport",
    "ident": "RJTT",
    "country_iso2": "JP",
    "elevation_ft": 35,
    "municipality": "Tokyo",
    "scheduled_service": true
   },
   {
    "km": 20.98,
    "lat": 35.6717,
    "lon": 139.528,
    "iata": null,
    "icao": "RJTF",
    "name": "Chofu Airport",
    "type": "medium_airport",
    "ident": "RJTF",
    "country_iso2": "JP",
    "elevation_ft": 141,
    "municipality": "Chofu",
    "scheduled_service": true
   }
  ],
  "attribution": "OurAirports (public domain, snapshot 2026-11-01); distances computed by Lilambd"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/lilambd-place-brief-nearest-geographic-features-d257f07e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.lilambd.com](https://www.zero.xyz/host/api.lilambd.com/llms.txt)
