80trust / 100
Geocode
by Tanod utilpeek in Weather & location
x402 APIPassing, checked 3 h ago
utilpeek (Tanod) geocoding: city name to coordinates (up to 5 candidates) or coordinates to the nearest city, offline over GeoNames cities15000 (CC BY 4.0).
POST https://tanod.dev/v1/geocode
Last 30 days
All checks passedSome failedAll failedNot checked
- Uptime
- 100%
- Response time
- 279 ms typical, 318 ms slowest 5%
- Last check
- 3 h ago
- Next check
- any minute now
How to call it
# See the payment challenge (nothing is charged)
curl -i -X POST "https://tanod.dev/v1/geocode" \
-H "content-type: application/json" \
-d '{"place":"Manila, PH"}'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%2Ftanod.dev%2Fv1%2Fgeocode
const res = await pay("https://tanod.dev/v1/geocode", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"place":"Manila, PH"}),
});
console.log(await res.json());Example input
{
"place": "Manila, PH"
}Example output
{
"attribution": {
"changes": "cities15000 table reduced to selected columns and alternate names (see the API docs)",
"license": "https://creativecommons.org/licenses/by/4.0/",
"places": "GeoNames (geonames.org), CC BY 4.0"
},
"filter": "country",
"mode": "forward",
"query": "Manila, PH",
"results": [
{
"admin1_code": "NCR",
"country_code": "PH",
"lat": 14.6042,
"lon": 120.9822,
"matched_on": "name",
"name": "Manila",
"population": 1600000,
"timezone": "Asia/Manila"
}
],
"total": 1
}Security scan
- No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.
Recent checks
| When | Result | HTTP | Time | Price |
|---|---|---|---|---|
| 3 h ago | Passed | 402 | 279 ms | $0.001 |
| 6 h ago | Passed | 402 | 318 ms | $0.001 |
| 11 h ago | Passed | 402 | 280 ms | $0.001 |
| 14 h ago | Passed | 402 | 279 ms | $0.001 |
| 18 h ago | Passed | 402 | 268 ms | $0.001 |
| 21 h ago | Passed | 402 | 326 ms | $0.001 |
| 25 h ago | Passed | 402 | 262 ms | $0.001 |
| 30 h ago | Passed | 402 | 270 ms | $0.001 |