Japanese government GIS systems use the JGD2011 (日本測地系2011) datum, while global services use WGS84. Torify handles the conversion with sub-meter accuracy.
https://torify.dev/v1/coordinate/convert
| Name | Type | Required | Description | Example |
|---|---|---|---|---|
lat |
number | Yes | Latitude | 35.6895 |
lng |
number | Yes | Longitude | 139.6917 |
direction |
string | Yes | wgs2jgd or jgd2wgs | wgs2jgd |
{ "ok": true, "data": { "lat": 35.6895, "lng": 139.6917 } }
curl "https://torify.dev/v1/coordinate/convert?lat=35.6895&lng=139.6917&direction=wgs2jgd"
import { wrapFetchWithPayment } from 'x402-fetch';
import { privateKeyToAccount } from 'viem/accounts';
const account = privateKeyToAccount(process.env.PRIVATE_KEY as `0x${string}`);
const fetchWithPayment = wrapFetchWithPayment(fetch, account);
const res = await fetchWithPayment(
'https://torify.dev/v1/coordinate/convert?lat=35.6895&lng=139.6917&direction=wgs2jgd'
);
const data = await res.json();
console.log(data); // { ok: true, data: { ... } }
import requests
# Free MCP tier (no auth) or API key (X-API-Key header)
res = requests.get(
"https://torify.dev/v1/coordinate/convert?lat=35.6895&lng=139.6917&direction=wgs2jgd",
headers={"X-API-Key": "your_torify_pro_key"}
)
print(res.json())
/v1/postal/lookup — Japan Postal Code Lookup: Zipcode → Address API
/v1/address/normalize — Japanese Address Normalization API
/v1/region/lookup — Japan Region Code Lookup: JIS X 0402 API