Unbnd logoUnbnd

China GEO API

Reverse geocode latitude/longitude to province/city/district (China only, Supabase). Prefer GET for cache.

Endpoints

GET/api/geo

Query: latitude, longitude (numbers). Cacheable (long-lived). Returns province, city, district, latitude, longitude.

POST/api/geo

Body: { latitude, longitude } (numbers). Same response.

Response example

{
  "province": "北京市",
  "city": "",
  "district": "",
  "latitude": 39.9042,
  "longitude": 116.4074
}
Playground

Send requests and view responses.

RequestGET /api/geo
Response
No response yet. Send a request to see the result.