API 文档
接口地址: https://api.gugudata.com/location/coordinateconverter
返回格式: application/json; charset=utf-8
请求方式: GET
请求协议: HTTPS
请求示例: https://api.gugudata.com/location/coordinateconverter?appkey=YOUR_APPKEY&from=YOUR_VALUE&to=YOUR_VALUE&value=YOUR_VALUE
数据预览: 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 |
是 |
YOUR_APPKEY |
付费后获取的 APPKEY。文档示例默认通过 Query 参数 appkey 传递;历史 Form 或 JSON body 中的 appkey 仍兼容。 |
| from |
string |
是 |
YOUR_VALUE |
原数据的坐标系,可选值:WGS84, GCJ02, BD09 |
| to |
string |
是 |
YOUR_VALUE |
目标数据的坐标系,可选值:WGS84, GCJ02, BD09 |
| value |
string |
是 |
YOUR_VALUE |
需要转换的坐标值,格式为:[120.54,32.74] |
| 参数名 |
参数类型 |
备注 |
| DataStatus.StatusCode |
integer |
接口返回状态码 |
| DataStatus.StatusDescription |
string |
接口返回状态说明 |
| DataStatus.ResponseDateTime |
string |
接口数据返回时间 |
| DataStatus.DataTotalCount |
integer |
此条件下的总数据量,一般用于分页计算 |
| Data.CoordinateFrom |
string |
原数据的坐标系 |
| Data.CoordinateTo |
string |
目标数据的坐标系 |
| Data.CoordinateSourceValue |
string |
需要转换的坐标值 |
| Data.CoordinateDestinationValue |
string |
转换后的坐标值 |