81trust / 100
Proxy Geocode
by Geocoding Address to Coordinates in Weather & location
x402 APIPassing, checked 5 h ago
Geocoding and reverse geocoding from GeoNames: city, town or postal code to lat/lon, and lat/lon to the nearest place and postal code. Covers 170,000 places with 1000+ inhabitants and 1.8 million postal codes worldwide, answered from our own database in milliseconds. Not street level: house numbers and streets are skipped and reported in ignored_parts. Provide address (e.g. 'Paris, Texas', '10115 Berlin') or lat + lon.
POST https://agentsvc.io/api/v1/proxy/geocode
Last 30 days
All checks passedSome failedAll failedNot checked
- Uptime
- 100%
- Response time
- 33 ms typical, 33 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://agentsvc.io/api/v1/proxy/geocode" \
-H "content-type: application/json" \
-d '{"address":"Brandenburger Tor, Berlin"}'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%2Fagentsvc.io%2Fapi%2Fv1%2Fproxy%2Fgeocode
const res = await pay("https://agentsvc.io/api/v1/proxy/geocode", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"address":"Brandenburger Tor, Berlin"}),
});
console.log(await res.json());Example input
{
"address": "Brandenburger Tor, Berlin"
}Example output
{
"data": {
"attribution": "Place data from GeoNames (geonames.org), CC BY 4.0",
"ignored_parts": [
"Avenue Anatole France 5"
],
"mode": "forward",
"results": [
{
"address": {
"city": "Paris",
"country": "France",
"country_code": "fr",
"postcode": null,
"state": "Île-de-France"
},
"display_name": "Paris, Île-de-France, France",
"geonames_id": 2988507,
"lat": 48.85341,
"lon": 2.3488,
"population": 2138551,
"precision": "locality",
"timezone": "Europe/Paris",
"type": "city"
}
],
"source": "GeoNames"
},
"success": true
}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 |
|---|---|---|---|---|
| 5 h ago | Passed | 402 | 33 ms | $0.003 |