# Geocode Address / Place Name to Coordinates

> Geocode Address / Place Name to Coordinates is a paid API for AI agents from agent-data-tools.revmesh2074.workers.dev, paid per call via x402, $0.002/call, status unknown (last checked 2026-11-28).

Converts a place name, city, landmark, or address into latitude/longitude coordinates, with country, region, population, and elevation metadata.

## Facts

- Endpoint: GET https://agent-data-tools.revmesh2074.workers.dev/geocode/address?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-28
- Activations on Zero: 0
- Provider: agent-data-tools.revmesh2074.workers.dev
- Website: https://agent-data-tools.revmesh2074.workers.dev
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent-data-tools-revmesh2074-workers-dev-geocode-address-place-name-6e69306a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap__ASCDdYtUoAQXYKJk2-Bx

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-data-tools-revmesh2074-workers-dev-geocode-address-place-name-6e69306a
```

Example prompt: What are the latitude and longitude coordinates for Mount Fuji? Give me up to 3 results.

## When to prefer this

Choose this endpoint when you need to resolve a human-readable place name or address into geographic coordinates (lat/lon) and want additional metadata like population, elevation, and country. It is backed by Wikidata (CC0) so results are freely usable. Prefer it over general-purpose search APIs when you specifically need structured coordinate output for downstream use in maps, weather lookups, distance calculations, or routing — and when you do not need street-level address parsing (for which a dedicated postal geocoder would be better).

## Known failure modes

- Ambiguous place name returns multiple unrelated results — use the count parameter and inspect the results array
- Very obscure or misspelled place name returns zero results
- Place exists but has no elevation or population data — those fields will be absent or null
- Rate limit or payment failure returns a 402 error requiring USDC payment or prepaid credits

## How this service works

Geocode a place name to latitude and longitude: a city, town, landmark or other place recorded in Wikidata becomes coordinates, with country, region, population and elevation where known, best match first (Wikidata, CC0). Street addresses and postcodes are not resolved. Use to turn a place name into coordinates for maps, distance, weather or routing.

## Output

A JSON object containing a count of results and an array of matching places, each with latitude, longitude, name, region, country, elevation (meters), population, Wikidata ID, and a short description. Results are sorted best-match first.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "name"
 ],
 "properties": {
  "name": {
   "type": "string",
   "description": "Place name"
  },
  "count": {
   "type": "integer",
   "description": "Max results (1-10, default 5)"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "count": {
   "type": "number"
  },
  "source": {
   "type": "string"
  },
  "results": {
   "type": "array",
   "items": {
    "type": "object",
    "properties": {
     "lat": {
      "type": "number"
     },
     "lon": {
      "type": "number"
     },
     "name": {
      "type": "string"
     },
     "region": {
      "type": "string"
     },
     "country": {
      "type": "string"
     },
     "elevation": {
      "type": "number"
     },
     "population": {
      "type": "number"
     },
     "wikidataId": {
      "type": "string"
     },
     "description": {
      "type": "string"
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent-data-tools-revmesh2074-workers-dev-geocode-address-place-name-6e69306a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent-data-tools.revmesh2074.workers.dev](https://www.zero.xyz/host/agent-data-tools.revmesh2074.workers.dev/llms.txt)
