Location/error2

跳转到: 导航, 搜索
(创建新页面为 '== location/error == 地理信息接口v2请求返回错误码及错误信息说明 === 错误码: === 地理信息接口错误码均以219开头,将对可能发生的错…')
 
 
(未显示2个用户的3个中间版本)
第1行: 第1行:
== location/error ==
+
==地理信息返回错误码==
 
地理信息接口v2请求返回错误码及错误信息说明
 
地理信息接口v2请求返回错误码及错误信息说明
  
=== 错误码: ===
+
 
 +
===错误码对照表===
 
地理信息接口错误码均以219开头,将对可能发生的错误给出以下错误码中的一种:
 
地理信息接口错误码均以219开头,将对可能发生的错误给出以下错误码中的一种:
  
error_code error detail
 
21901 System error   系统错误
 
21902 Source paramter (ip) is missing 缺少source (ip) 参数
 
21903 Returns no data 不返回任何数据
 
21904 Parameter  (ip) of the city does not exists ip所对应的城市不存在
 
21905 Ip is illegal ip地址非法
 
21906 Coordinate is illegal 经纬度坐标非法
 
21907 Coordinate out of range 坐标超出范围
 
21908 Source paramter (ip) is out of limit 超过最大请求数
 
21909 Remote service error 远程服务错误
 
21910 Submit at least one parameter for City or coordinates_center 至少提交一个城市或中心坐标参数
 
21911 Submit at least one parameter for begin_id or begin_coordinate 至少提交一个起点id或起点坐标参数
 
21912 Submit at least one parameter for end_id or end_coordinate 至少提交一个终点id或终点坐标参数
 
21913 Begin_coordiante is illegal 起点坐标非法
 
21914 End_coordinate is illegal 终点坐标非法
 
21915 Begin_id is illegal 起点id非法
 
21916 End_id is illegal 终点id非法
 
21917 Start point and end point are in different cities 起点和终点在不同的城市
 
21918 City is illegal 城市代码非法
 
21920 Create log directory failed 创建日志目录失败
 
21921 Query data can not be empty 查询数据不能为空
 
21922 The submitted data format is not correct 提交的数据格式不正确
 
21923 Not find the relevant data 返回结果为空,没有查到相关数据
 
21940 source parameter(xxxx) is missing 所有的字段校验不能为空
 
21941 source is not method post 表单不是post方式提交
 
21942 database is update fail,Error: database is insert fail 数据库出错级别
 
21943 xxxx is not to exist scrid 不存在
 
21944 source parameter(xxxxx) is exceed expectations 超出最大小值
 
21945 source parameter(xxxxx) Coordinate is illegal 不是指定类型
 
21951 Size out of range 图片尺寸超出范围
 
21952 Size is illegal 图片尺寸非法
 
21953 Center_coordinates is illegal 中心坐标非法
 
21954 Points of names must be existed 点的名称必须存在
 
21955 Points of icons must be existed 点的图标必须存在
 
21956 Points of names is illegal 点的名称非法
 
21957 Points of size is illegal 点的图标非法
 
21958 Points of coordinates is illegal 点的坐标非法
 
21959 Points of icons is illegal 点的图标非法
 
21960 Submit at least one parameter for q or category 至少提交一个关键字或位置分类参数
 
21961 Source paramter (page) is out of limit 页码超出范围
 
21962 Source paramter (count) is out of limit 每页的结果数超出范围
 
21963 Submit at least one parameter for pid or coordinate 至少提交一个坐标ID或坐标经纬度参数
 
21964 Source paramter (range) is out of limit 查询半径超出范围
 
21965 Pid is illegal 位置ID非法
 
21966 Source paramter (coordinates) is missing 缺少参数coordinates
 
21971 Center_coordinates is out of limit 中心坐标超出范围
 
  
 +
*21901 System error   系统错误
 +
*21902 Source paramter (ip) is missing 缺少source (ip) 参数
 +
*21903 Returns no data 不返回任何数据
 +
*21904 Parameter  (ip) of the city does not exists ip所对应的城市不存在
 +
*21905 Ip is illegal ip地址非法
 +
*21906 Coordinate is illegal 经纬度坐标非法
 +
*21907 Coordinate out of range 坐标超出范围
 +
*21908 Source paramter (ip) is out of limit 超过最大请求数
 +
*21909 Remote service error 远程服务错误
 +
*21910 Submit at least one parameter for City or coordinates_center 至少提交一个城市或中心坐标参数
 +
*21911 Submit at least one parameter for begin_id or begin_coordinate 至少提交一个起点id或起点坐标参数
 +
*21912 Submit at least one parameter for end_id or end_coordinate 至少提交一个终点id或终点坐标参数
 +
*21913 Begin_coordiante is illegal 起点坐标非法
 +
*21914 End_coordinate is illegal 终点坐标非法
 +
*21915 Begin_id is illegal 起点id非法
 +
*21916 End_id is illegal 终点id非法
 +
*21917 Start point and end point are in different cities 起点和终点在不同的城市
 +
*21918 City is illegal 城市代码非法
 +
*21920 Create log directory failed 创建日志目录失败
 +
*21921 Query data can not be empty 查询数据不能为空
 +
*21922 The submitted data format is not correct 提交的数据格式不正确
 +
*21923 Not find the relevant data 返回结果为空,没有查到相关数据
 +
*21940 source parameter(xxxx) is missing 所有的字段校验不能为空
 +
*21941 source is not method post 表单不是post方式提交
 +
*21942 database is update fail,Error: database is insert fail 数据库出错级别
 +
*21943 xxxx is not to exist scrid 不存在
 +
*21944 source parameter(xxxxx) is exceed expectations 超出最大小值
 +
*21945 source parameter(xxxxx) Coordinate is illegal 不是指定类型
 +
*21951 Size out of range 图片尺寸超出范围
 +
*21952 Size is illegal 图片尺寸非法
 +
*21953 Center_coordinates is illegal 中心坐标非法
 +
*21954 Points of names must be existed 点的名称必须存在
 +
*21955 Points of icons must be existed 点的图标必须存在
 +
*21956 Points of names is illegal 点的名称非法
 +
*21957 Points of size is illegal 点的图标非法
 +
*21958 Points of coordinates is illegal 点的坐标非法
 +
*21959 Points of icons is illegal 点的图标非法
 +
*21960 Submit at least one parameter for q or category 至少提交一个关键字或位置分类参数
 +
*21961 Source paramter (page) is out of limit 页码超出范围
 +
*21962 Source paramter (count) is out of limit 每页的结果数超出范围
 +
*21963 Submit at least one parameter for pid or coordinate 至少提交一个坐标ID或坐标经纬度参数
 +
*21964 Source paramter (range) is out of limit 查询半径超出范围
 +
*21965 Pid is illegal 位置ID非法
 +
*21966 Source paramter (coordinates) is missing 缺少参数coordinates
 +
*21971 Center_coordinates is out of limit 中心坐标超出范围
  
=== 错误信息说明:  ===
+
 
当调用API发生错误时,将返回对应格式请求的错误信息,
+
===错误返回值说明===
JSON信息:
+
当调用API发生错误时,将返回对应格式请求的错误信息。
 +
 
 +
 
 +
JSON
 
<pre>
 
<pre>
 
{
 
{
"request":"\/location\/mobile\/get_location.php",
+
    "request": "/location/mobile/get_location.php",
"error_code":21923,
+
    "error_code": 21923,
"error":"Not find the relevant data!"
+
    "error": "Not find the relevant data!"
 
}
 
}
 
</pre>
 
</pre>
 +
 +
 +
 +
__NOTOC__

2012年2月24日 (五) 15:48的最后版本

地理信息返回错误码

地理信息接口v2请求返回错误码及错误信息说明


错误码对照表

地理信息接口错误码均以219开头,将对可能发生的错误给出以下错误码中的一种:


  • 21901 System error 系统错误
  • 21902 Source paramter (ip) is missing 缺少source (ip) 参数
  • 21903 Returns no data 不返回任何数据
  • 21904 Parameter (ip) of the city does not exists ip所对应的城市不存在
  • 21905 Ip is illegal ip地址非法
  • 21906 Coordinate is illegal 经纬度坐标非法
  • 21907 Coordinate out of range 坐标超出范围
  • 21908 Source paramter (ip) is out of limit 超过最大请求数
  • 21909 Remote service error 远程服务错误
  • 21910 Submit at least one parameter for City or coordinates_center 至少提交一个城市或中心坐标参数
  • 21911 Submit at least one parameter for begin_id or begin_coordinate 至少提交一个起点id或起点坐标参数
  • 21912 Submit at least one parameter for end_id or end_coordinate 至少提交一个终点id或终点坐标参数
  • 21913 Begin_coordiante is illegal 起点坐标非法
  • 21914 End_coordinate is illegal 终点坐标非法
  • 21915 Begin_id is illegal 起点id非法
  • 21916 End_id is illegal 终点id非法
  • 21917 Start point and end point are in different cities 起点和终点在不同的城市
  • 21918 City is illegal 城市代码非法
  • 21920 Create log directory failed 创建日志目录失败
  • 21921 Query data can not be empty 查询数据不能为空
  • 21922 The submitted data format is not correct 提交的数据格式不正确
  • 21923 Not find the relevant data 返回结果为空,没有查到相关数据
  • 21940 source parameter(xxxx) is missing 所有的字段校验不能为空
  • 21941 source is not method post 表单不是post方式提交
  • 21942 database is update fail,Error: database is insert fail 数据库出错级别
  • 21943 xxxx is not to exist scrid 不存在
  • 21944 source parameter(xxxxx) is exceed expectations 超出最大小值
  • 21945 source parameter(xxxxx) Coordinate is illegal 不是指定类型
  • 21951 Size out of range 图片尺寸超出范围
  • 21952 Size is illegal 图片尺寸非法
  • 21953 Center_coordinates is illegal 中心坐标非法
  • 21954 Points of names must be existed 点的名称必须存在
  • 21955 Points of icons must be existed 点的图标必须存在
  • 21956 Points of names is illegal 点的名称非法
  • 21957 Points of size is illegal 点的图标非法
  • 21958 Points of coordinates is illegal 点的坐标非法
  • 21959 Points of icons is illegal 点的图标非法
  • 21960 Submit at least one parameter for q or category 至少提交一个关键字或位置分类参数
  • 21961 Source paramter (page) is out of limit 页码超出范围
  • 21962 Source paramter (count) is out of limit 每页的结果数超出范围
  • 21963 Submit at least one parameter for pid or coordinate 至少提交一个坐标ID或坐标经纬度参数
  • 21964 Source paramter (range) is out of limit 查询半径超出范围
  • 21965 Pid is illegal 位置ID非法
  • 21966 Source paramter (coordinates) is missing 缺少参数coordinates
  • 21971 Center_coordinates is out of limit 中心坐标超出范围


错误返回值说明

当调用API发生错误时,将返回对应格式请求的错误信息。


JSON

{
    "request": "/location/mobile/get_location.php",
    "error_code": 21923,
    "error": "Not find the relevant data!"
}



文档更新时间: 2012-02-24