API 文档
接口地址: https://api.gugudata.com/location/coordinateconverter
返回格式: application/json; charset=utf-8
请求方式: GET
请求协议: HTTPS
请求示例: https://api.gugudata.com/location/coordinateconverter?appkey=YOUR_APPKEY&from=WGS84&to=BD09&value=%5b120.54%2c32.74%5d
数据预览: https://www.gugudata.com/preview/coordinateconverter
接口测试: https://api.gugudata.com/location/coordinateconverter/demo
OpenAPI: https://www.gugudata.com/openapi/gugudata.openapi.3.1.json
| 参数名 |
参数类型 |
是否必须 |
默认值 |
备注 |
| appkey |
string |
是 |
无 |
使用已授权的 APPKEY,兼容现有有效鉴权位置。 |
| from |
string |
是 |
无 |
输入坐标系:WGS84、GCJ02 或 BD09,保留已有大小写兼容。 |
| to |
string |
是 |
无 |
目标坐标系:WGS84、GCJ02 或 BD09。 |
| value |
string |
是 |
无 |
坐标 JSON 字符串,基本形式为 [经度,纬度];保留已有有效数字字符串及 GeoJSON 表达。 |
| 参数名 |
参数类型 |
备注 |
| DataStatus.RequestParameter |
string |
实际、可读业务请求参数,不包含凭据。 |
| DataStatus.StatusCode |
integer |
成功为 100;参数错误为 501;处理或依赖失败为 901。 |
| DataStatus.StatusDescription |
string |
业务状态说明。 |
| DataStatus.ResponseDateTime |
string |
接口返回时间。 |
| DataStatus.DataTotalCount |
integer |
实际结果数量。 |
| Data |
object |
数据结果。 |
| Data.CoordinateFrom |
string |
输入坐标系,保留正常输入回显格式。 |
| Data.CoordinateTo |
string |
目标坐标系。 |
| Data.CoordinateSourceValue |
string |
实际输入坐标字符串。 |
| Data.CoordinateDestinationValue |
string |
转换后的坐标 JSON 字符串,保留现有算法精度。 |
{
"DataStatus": {
"StatusCode": 100,
"RequestParameter": "from=WGS84&to=BD09&value=[120.54,32.74]",
"StatusDescription": "请求成功。",
"ResponseDateTime": "2026-10-23 15:06:19.784",
"DataTotalCount": 1
},
"Data": {
"CoordinateFrom": "WGS84",
"CoordinateTo": "BD09",
"CoordinateSourceValue": "[120.54,32.74]",
"CoordinateDestinationValue": "[120.55097157278423,32.74358962248261]"
}
}