# Agent Time & Place – Reverse Geocoding

> Agent Time & Place – Reverse Geocoding is a paid API for AI agents from time-place.agent-utils.workers.dev, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-15).

Converts latitude/longitude coordinates into place names, administrative regions, country codes, IANA timezones, and distances

## Facts

- Endpoint: GET https://time-place.agent-utils.workers.dev/v1/reverse
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent-time-place-reverse-geocoding-5f2f1d62
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_6aW1lqmOqXoiLSXGwgKMF

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 agent-time-place-reverse-geocoding-5f2f1d62
```

Example prompt: What city and timezone am I in if my GPS coordinates are latitude 40.4168, longitude -3.7038?

## When to prefer this

Choose this endpoint when you need a fast, deterministic, sub-cent reverse geocode that also returns the IANA timezone in a single call — avoiding separate geocoding + timezone lookup roundtrips. It requires no API key; payment via x402/USDC is the sole authentication mechanism, making it ideal for autonomous AI agents that manage micropayments. Prefer it over nominatim or similar when you also need timezone and capital-city metadata bundled together.

## Known failure modes

- Missing required lat or lon parameter returns an error
- lat outside [-90, 90] or lon outside [-180, 180] fails schema validation
- No nearby named place found may return an empty results array
- Payment not provided or insufficient USDC results in HTTP 402
- Network/worker timeout on edge cold start

## How this service works

Geocoding, timezones, holidays, business days, sun times, FX and distances for AI agents. Deterministic, sub-cent, no API key: payment is authentication (x402).

## Output

Returns the queried lat/lon, the IANA timezone for that coordinate, and an array of up to N nearest places each containing: place name, ASCII name, first-level administrative region (state/province), country ISO code, country name, whether it is a capital, the matched place's coordinates, distance in km, and population.

## 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"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "lat",
      "lon"
     ],
     "properties": {
      "lat": {
       "type": "number",
       "maximum": 90,
       "minimum": -90,
       "description": "Latitude in decimal degrees (WGS84)"
      },
      "lon": {
       "type": "number",
       "maximum": 180,
       "minimum": -180,
       "description": "Longitude in decimal degrees (WGS84)"
      },
      "limit": {
       "type": "integer",
       "default": 1,
       "maximum": 10,
       "minimum": 1
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "lat": {
       "type": "number"
      },
      "lon": {
       "type": "number"
      },
      "results": {
       "type": "array",
       "items": {
        "type": "object",
        "properties": {
         "lat": {
          "type": "number"
         },
         "lon": {
          "type": "number"
         },
         "name": {
          "type": "string"
         },
         "ascii": {
          "type": "string"
         },
         "admin1": {
          "type": "string",
          "description": "First-level region (state/province)"
         },
         "capital": {
          "type": "boolean"
         },
         "country": {
          "type": "string",
          "description": "ISO 3166-1 alpha-2"
         },
         "timezone": {
          "type": "string",
          "description": "IANA timezone id"
         },
         "distanceKm": {
          "type": "number"
         },
         "population": {
          "type": "integer"
         },
         "countryName": {
          "type": "string"
         }
        }
       }
      },
      "timezone": {
       "type": "string"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "lat": 40.4168,
  "lon": -3.7038,
  "results": [
   {
    "lat": 40.4165,
    "lon": -3.7026,
    "name": "Madrid",
    "ascii": "Madrid",
    "admin1": "Madrid",
    "capital": true,
    "country": "ES",
    "timezone": "Europe/Madrid",
    "distanceKm": 0.1,
    "population": 3255944,
    "countryName": "Spain"
   }
  ],
  "timezone": "Europe/Madrid"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent-time-place-reverse-geocoding-5f2f1d62/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from time-place.agent-utils.workers.dev](https://www.zero.xyz/host/time-place.agent-utils.workers.dev/llms.txt)
