81trust / 100

Geocode

by Geocoder in Weather & location

x402 APIPassing, checked 5 h ago

Forward and reverse geocoding on OpenStreetMap data: turn place names, addresses, and landmarks into coordinates with structured address components (forward), or turn lat/lon into the nearest address (reverse). Global coverage, up to 10 ranked results. ODbL attribution included in every response. POST a JSON body like: {"query":"eiffel tower, paris","limit":1}

POST https://keyronne.com/api/geocode

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
198 ms typical, 198 ms slowest 5%
Last check
5 h ago
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X POST "https://keyronne.com/api/geocode" \
  -H "content-type: application/json" \
  -d '{"limit":1,"query":"eiffel tower, paris"}'
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client().register(
  "eip155:8453",
  new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fkeyronne.com%2Fapi%2Fgeocode
const res = await pay("https://keyronne.com/api/geocode", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"limit":1,"query":"eiffel tower, paris"}),
});
console.log(await res.json());

Example input

{
  "limit": 1,
  "query": "eiffel tower, paris"
}

Example output

{
  "attribution": "Geodata © OpenStreetMap contributors (ODbL)",
  "query": "eiffel tower, paris",
  "results": [
    {
      "address": {
        "city": "Paris",
        "country": "France"
      },
      "lat": 48.8583,
      "lon": 2.2945,
      "name": "Tour Eiffel, Avenue Gustave Eiffel, Paris, France",
      "type": "attraction"
    }
  ]
}

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
5 h agoPassed402198 ms$0.003