Japan Coordinate Conversion API: WGS84 ↔ JGD2011

Japanese government GIS systems use the JGD2011 (日本測地系2011) datum, while global services use WGS84. Torify handles the conversion with sub-meter accuracy.

Endpoint

GET https://torify.dev/v1/coordinate/convert

Parameters

NameTypeRequiredDescriptionExample
lat number Yes Latitude 35.6895
lng number Yes Longitude 139.6917
direction string Yes wgs2jgd or jgd2wgs wgs2jgd

Response example

{ "ok": true, "data": { "lat": 35.6895, "lng": 139.6917 } }

Code examples

curl

curl "https://torify.dev/v1/coordinate/convert?lat=35.6895&lng=139.6917&direction=wgs2jgd"

TypeScript (x402-fetch)

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: { ... } }

Python (requests)

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())

Related endpoints

← All 36 endpoints

Pricing

$0.02 per call via x402 (USDC on Base). Or use a Pro API key ($49/mo, 10,000 calls/month).