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

alitrip.platform.poi.raw.poioutbypoiids (根据poiId输出飞猪poi数据)

根据poiId输出飞猪poi数据

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
fliggy_poiid_param FliggyPoiIdParam 必须 查询参数
  • └ poi_ids
  • String []
  • 必须
  • 123
  • 需要查询的poiid

响应参数

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

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlitripPlatformPoiRawPoioutbypoiidsRequest req = new AlitripPlatformPoiRawPoioutbypoiidsRequest();
AlitripPlatformPoiRawPoioutbypoiidsRequest.FliggyPoiIdParam obj1 = new AlitripPlatformPoiRawPoioutbypoiidsRequest.FliggyPoiIdParam();
obj1.setPoiIds("123");
req.setFliggyPoiidParam(obj1);
AlitripPlatformPoiRawPoioutbypoiidsResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alitrip_platform_poi_raw_poioutbypoiids_response>
    <result>
        <datas>
            <data>
                <source_id>12345</source_id>
                <division_tree_name>浙江,杭州</division_tree_name>
                <division_tree_id>123,234</division_tree_id>
                <open_time>8-9</open_time>
                <lat>123.00</lat>
                <lon>123.00</lon>
                <telephone>12323</telephone>
                <address>大厦</address>
                <desc>描述</desc>
                <first_category>5</first_category>
                <name_en>hello</name_en>
                <name>西湖</name>
                <poi_id>12345</poi_id>
            </data>
        </datas>
        <message>23232</message>
        <result_code>2323</result_code>
        <total_records>0</total_records>
        <success>true</success>
    </result>
</alitrip_platform_poi_raw_poioutbypoiids_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

返回
顶部