Location/error

跳转到: 导航, 搜索

location/error

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

错误码:

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

  • 21901 关键词q不能为空
  • 21902 页数page超过限制
  • 21903 每页数据量count超过限制
  • 21904 关键词q和分类category至少需设定一个
  • 21905 pid和坐标coordinate至少需要设定一个
  • 21906 搜索半径dr超出限制
  • 21907 pid不存在
  • 21908 坐标coordinate不能为空
  • 21909 ip不能为空
  • 21910 ip异常
  • 21911 查询ip无结果
  • 21912 无该ip城市信息
  • 21913 地址address不能为空
  • 21914 坐标coordinate有误
  • 21915 起点坐标begin_coordinate和起点id begin_id至少需要设定一个
  • 21916 终点坐标end_coordinate和起点id end_id至少需要设定一个
  • 21917 无此起点
  • 21918 无此终点
  • 21919 起始点距离不能小于1公里
  • 21920 天数days超过限制
  • 21921 无法打开gdbm数据库
  • 21922 天气信息为空
  • 21923 反馈内容content不能为空
  • 21924 反馈电话phone不能为空
  • 21925 反馈邮箱email不能为空
  • 21926 反馈内容content不能超过200个字符
  • 21927 反馈邮箱email检测错误
  • 21928 反馈电话phone检测错误
  • 21929 反馈类型type错误
  • 21930 手机型号mobiletype错误
  • 21931 城市city不能为空
  • 21932 无查询结果
  • 21933 城市代码错误
  • 21934 坐标串格式不正确
  • 21935 appkey无效
  • 21936 appkey请求超限
  • 21937 来源ID不能为空
  • 21938 POI点名称不能为空
  • 21939 类别不能为空
  • 21940 坐标经度不能为空
  • 21941 坐标纬度不能为空
  • 21942 数据库操作失败
  • 21943 起点和终点不在同一城市
  • 21944 搜索范围range超出限制
  • 21945 身份验证失败
  • 21946 参数pid不能为空
  • 21947 上传文件名丢失
  • 21948 上传文件大小超限(2M)
  • 21949 评论id(review_id)不能为空
  • 21950 评论内容(text)不能为空
  • 21951 城市city和中心点坐标center_coordinates至少需要设定一个

错误信息说明:

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

<?xml version="1.0" encoding="UTF-8"?>
<hash>
  <request>/pois/keyword.xml</request>
  <error_code>21902</error_code>
  <error>Error: source parameter (page) exceeds limit</error>
</hash>

JSON信息:

 {
    "request" : "/pois/keyword.json",
    "error_code" : "21902",
    "error" : "Error: source parameter (page) exceeds limit"
}
文档更新时间: 2011-05-07