Address Geocoding

Turn an address into latitude and longitude, with its components and bounding box, from OpenStreetMap.

Pay by wallet (x402) address-geocode

Example

Input
{
  "address": "Eiffel Tower, Paris"
}
Answer
{
  "found": true,
  "latitude": 48.8582599,
  "longitude": 2.2945006,
  "place_type": "tower",
  "bounding_box": {
    "east": 2.2956897,
    "west": 2.2933119,
    "north": 48.8590453,
    "south": 48.8574753
  },
  "display_name": "Tour Eiffel, 5, Avenue Anatole France, Quartier du Gros-Caillou, Paris 7e Arrondissement, Paris, Île-de-France, France métropolitaine, 75007, France",
  "input_address": "Eiffel Tower, Paris",
  "importance_score": 0.6205937724353116
}

Inputs

FieldTypeRequiredWhat it is
addressstringYesAddress or place name to geocode

Output fields

How reliably each field appears in a successful answer.

FieldTypeAppears
latitudenumberAlways (present in every successful answer)
longitudenumberAlways (present in every successful answer)
place_typestringUsually (present for most inputs)
bounding_boxobjectUsually (present for most inputs)
display_namestringAlways (present in every successful answer)
importance_scorenumberUsually (present for most inputs)
input_address—Always (present in every successful answer)
found—Always (present in every successful answer)

How to call it

The same tool through each route. MCP clients reach it through Strale’s server at https://api.strale.io/mcp; the call below is what the agent sends.

# Needs an API key. max_price_cents caps what this call may cost.
curl -X POST https://api.strale.io/v1/do \
  -H "Authorization: Bearer $STRALE_API_KEY" \
  -H 'Content-Type: application/json' \
  -d '{
    "capability_slug": "address-geocode",
    "inputs": {
      "address": "Eiffel Tower, Paris"
    },
    "max_price_cents": 2
  }'

Limitations

  • Rate limited to 1 request per second

    Shares Nominatim rate limit with address-validate — max 1 req/sec total

  • Geocoding is approximate for vague queries

    Vague queries (e.g., just a city name) return approximate centre coordinates