文档中心 > API类目 > 阿信-基础数据

taobao.alitrip.travel.fsc.route.api.poi.get (获取景点(POI)信息)

获取景点(POI)信息

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
fsc_poi_query_request FscPoiQueryRequest 必须 fscPoiQueryRequest
  • └ keyword
  • String
  • 可选
  • xxxxx
  • 关键字
  • └ city_name
  • String
  • 可选
  • 曼谷
  • 城市名称
  • └ abroad
  • Boolean
  • 可选
  • false
  • 是否国外景点
  • └ page_size
  • Number
  • 可选
  • 20
  • 分页大小(最大100)
  • └ page_index
  • Number
  • 可选
  • 1
  • 页码
  • └ supplier_id
  • String
  • 可选
  • xxxxx
  • 供应商id

响应参数

名称 类型 示例值 描述
top_result TopResult 通用返回结果
  • └ success
  • Boolean
  • true
  • 是否成功
  • └ error_code
  • String
  • SYSTEM_ERROR
  • 错误码
  • └ error_msg
  • String
  • 授权异常
  • 错误信息
  • fsc_poi_api_response
  • FscPoiApiResponse
  • 业务数据
  • └ total
  • Number
  • 100
  • 数据总条数
  • └ page_size
  • Number
  • 20
  • 分页大小(最大100)
  • └ page_index
  • Number
  • 1
  • 页码
  • data
  • FscPoiApiDto []
  • 返回数据
  • └ poi_id
  • Number
  • 3
  • poiId
  • └ poi_name
  • String
  • xxxxx
  • poi名称
  • └ poi_name_en
  • String
  • xxxxx
  • poi英文名称
  • └ city_id
  • String
  • xxxxx
  • 城市id
  • └ city_name
  • String
  • xxxxx
  • 城市名称
  • └ province_id
  • String
  • xxxxx
  • 省份id
  • └ province_name
  • String
  • xxxxx
  • 省份名称
  • └ country_id
  • String
  • xxxxx
  • 国家id
  • └ country_name
  • String
  • xxxxx
  • 国家名称
  • └ description
  • String
  • xxxxx
  • poi详情说明

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlitripTravelFscRouteApiPoiGetRequest req = new AlitripTravelFscRouteApiPoiGetRequest();
AlitripTravelFscRouteApiPoiGetRequest.FscPoiQueryRequest obj1 = new AlitripTravelFscRouteApiPoiGetRequest.FscPoiQueryRequest();
obj1.setKeyword("xxxxx");
obj1.setCityName("曼谷");
obj1.setAbroad(false);
obj1.setPageSize(20L);
obj1.setPageIndex(1L);
obj1.setSupplierId("xxxxx");
req.setFscPoiQueryRequest(obj1);
AlitripTravelFscRouteApiPoiGetResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alitrip_travel_fsc_route_api_poi_get_response>
    <top_result>
        <success>true</success>
        <error_code>SYSTEM_ERROR</error_code>
        <error_msg>授权异常</error_msg>
        <fsc_poi_api_response>
            <total>100</total>
            <page_size>20</page_size>
            <page_index>1</page_index>
            <data>
                <fsc_poi_api_dto>
                    <poi_id>3</poi_id>
                    <poi_name>xxxxx</poi_name>
                    <poi_name_en>xxxxx</poi_name_en>
                    <city_id>xxxxx</city_id>
                    <city_name>xxxxx</city_name>
                    <province_id>xxxxx</province_id>
                    <province_name>xxxxx</province_name>
                    <country_id>xxxxx</country_id>
                    <country_name>xxxxx</country_name>
                    <description>xxxxx</description>
                </fsc_poi_api_dto>
            </data>
        </fsc_poi_api_response>
    </top_result>
</alitrip_travel_fsc_route_api_poi_get_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

返回
顶部