Pois/get poi

跳转到: 导航, 搜索

目录

pois/get_poi

获取之前提交的POI信息。

URL

http://api.map.sina.com.cn/pois/get_poi.(json%7Cxml)

支持格式

JSON|XML

HTTP请求方式

GET

是否需要登录

false

请求参数

参数 必选 类型及范围 说明
source true string 申请应用时分配的AppKey
srcids true string 需查询来源ID(多个ID之间用“,”分割)

返回结果

XML示例

<geoSearchResult>
 <result>1</result>
 <num>2</num>
 <pois>
  <poi>
   <srcid>20</srcid>
   <name>理想国际大厦</name>
   <address>北四环西路58号</address>
   <telephone/>
   <city>北京</city>
   <category>大厦</category>
   <longitude>116.30995</longitude>
   <latitude>39.98465</latitude>
   <intro/>
   <url/>
   <tags/>
   <description/>
   <traffic/>
   <pic_url/>
   <deal>0</deal>
   <spid/>
  </poi>
  ...
</pois>
</geoSearchResult>

JSON示例

{
 "result":1,
 "num":2,
 "pois":
 [
  {
   "srcid":"20",
   "name":"\u7406\u60f3\u56fd\u9645\u5927\u53a6",
   "address":"\u5317\u56db\u73af\u897f\u8def58\u53f7",
   "telephone":"",
   "city":"\u5317\u4eac",
   "category":"\u5927\u53a6",
   "longitude":"116.30995",
   "latitude":"39.98465",
   "intro":"",
   "url":"",
   "tags":"",
   "description":"",
   "traffic":"",
   "pic_url":"",
   "deal":"0",
   "spid":""
  },
  ...
 ]
}

字段说明

result:结果标志 (1表示成功)
num:结果总数
pois:结果集
srcid: POI来源id
name: POI点名称
address: POI点地址
telephone: POI点联系电话
city: POI点城市
category: POI点类别
longitude: POI点经度
latitude: POI点纬度
intro:POI点其他特色信息
url: POI点网址链接
tags: POI点标签
description: POI点介绍
traffic: POI点交通换乘描述
pic_url: POI点图片信息
deal:POI的处理状态
spid:POI点的SPID

使用示例

json:
http://api.map.sina.com.cn/pois/get_poi.json?source=appkey&srcids=20,21

xml:
http://api.map.sina.com.cn/pois/get_poi.xml?source=appkey&srcids=20,21