文档中心 > API类目 > 飞猪POI数据API

alitrip.platform.poi.raw.poiout (飞猪poi输出)

输出指定城市poi指定信息

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
fliggy_poi_out_param FliggyPoiOutParam 可选 查询参数
  • └ start_data
  • Date
  • 可选
  • 2010-10-10 00:00:00
  • 开始时间
  • └ city_names
  • String []
  • 可选
  • 北京市
  • 选择城市名
  • └ city_code
  • Number
  • 可选
  • 10100
  • 城市码可不填
  • └ page_size
  • Number
  • 可选
  • 100
  • 每页数量
  • └ page_num
  • Number
  • 可选
  • 0
  • 开始页数

响应参数

名称 类型 示例值 描述
result Result 接口返回model
  • └ total_records
  • Number
  • 0
  • 总数(不可用)
  • datas
  • Data []
  • 1234
  • 返回素材id
  • └ poi_id
  • Number
  • 12345
  • poiId
  • └ name
  • String
  • 西湖
  • poi名字
  • └ name_en
  • String
  • hello
  • poi英文名
  • └ first_category
  • Number
  • 5
  • 类目
  • └ desc
  • String
  • 23
  • 描述
  • └ address
  • String
  • 2323
  • 地址
  • └ telephone
  • String
  • 12323
  • 电话
  • └ lon
  • String
  • 123.00
  • 经度
  • └ lat
  • String
  • 123.00
  • 纬度
  • └ open_time
  • String
  • 8-9
  • 开放时间
  • └ division_tree_id
  • String
  • 123,1233
  • 行政区划树
  • └ division_tree_name
  • String
  • 浙江,杭州
  • 行政区划树名
  • └ source_id
  • String
  • 123456
  • 外源id
  • └ success
  • Boolean
  • false
  • 是否成功
  • └ result_code
  • String
  • 2323
  • 错误码
  • └ message
  • String
  • 23232
  • message

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlitripPlatformPoiRawPoioutRequest req = new AlitripPlatformPoiRawPoioutRequest();
AlitripPlatformPoiRawPoioutRequest.FliggyPoiOutParam obj1 = new AlitripPlatformPoiRawPoioutRequest.FliggyPoiOutParam();
obj1.setStartData(StringUtils.parseDateTime("2010-10-10 00:00:00"));
obj1.setCityNames("北京市");
obj1.setCityCode(10100L);
obj1.setPageSize(100L);
obj1.setPageNum(0L);
req.setFliggyPoiOutParam(obj1);
AlitripPlatformPoiRawPoioutResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alitrip_platform_poi_raw_poiout_response>
    <result>
        <total_records>0</total_records>
        <datas>
            <data>
                <poi_id>12345</poi_id>
                <name>西湖</name>
                <name_en>hello</name_en>
                <first_category>5</first_category>
                <desc>23</desc>
                <address>2323</address>
                <telephone>12323</telephone>
                <lon>123.00</lon>
                <lat>123.00</lat>
                <open_time>8-9</open_time>
                <division_tree_id>123,1233</division_tree_id>
                <division_tree_name>浙江,杭州</division_tree_name>
                <source_id>123456</source_id>
            </data>
        </datas>
        <success>false</success>
        <result_code>2323</result_code>
        <message>23232</message>
    </result>
</alitrip_platform_poi_raw_poiout_response>

异常示例

  • XML示例
  • JSON示例
<error_response>
    <code>50</code>
    <msg>Remote service error</msg>
    <sub_code>isv.invalid-parameter</sub_code>
    <sub_msg>非法参数</sub_msg>
</error_response>

错误码解释

错误码 错误描述 解决方案

API工具

如何获得此API

FAQ

返回
顶部