文档中心 > API类目 > 阿里健康药API

alibaba.health.nr.logistics.place.suggest (根据关键字获取地址列表)

根据关键字获取相关地址列表

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
query RegionQuery 必须 地址查询对象
  • └ address
  • String
  • 必须
  • 绿地中心
  • 地址关键字
  • └ city
  • String
  • 可选
  • 北京
  • 城市名称/高德城市编码
  • └ page_no
  • Number
  • 可选
  • 1
  • 当前页码
  • └ page_size
  • Number
  • 可选
  • 10
  • 每页条数

响应参数

名称 类型 示例值 描述
result Result 接口返回model
  • result
  • PageResponse
  • 分页响应数据传输对象
  • results
  • AddressDto []
  • 地址数据传输对象
  • └ area_code
  • String
  • 010
  • 高德城市编码
  • └ address
  • String
  • 密13路;密13路(三峪);密13路圣水头
  • 地址信息
  • └ city
  • String
  • 北京市
  • 城市名称
  • └ city_code
  • Number
  • 110100
  • 城市编码
  • └ latitude
  • String
  • 40.353081
  • 纬度
  • └ name
  • String
  • 绿地中心B座
  • 位置名称
  • └ longitude
  • String
  • 116.834824
  • 经度
  • └ district
  • String
  • 朝阳区
  • └ province
  • String
  • 浙江省
  • └ total_count
  • Number
  • 869
  • 查询结果总数
  • └ success
  • Boolean
  • true
  • 是否成功
  • └ error_code
  • String
  • FAIL_BIZ_QUERY_FAILED
  • 错误码
  • └ error_msg
  • String
  • 查询失败,请重试
  • 错误信息

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaHealthNrLogisticsPlaceSuggestRequest req = new AlibabaHealthNrLogisticsPlaceSuggestRequest();
AlibabaHealthNrLogisticsPlaceSuggestRequest.RegionQuery obj1 = new AlibabaHealthNrLogisticsPlaceSuggestRequest.RegionQuery();
obj1.setAddress("绿地中心");
obj1.setCity("北京");
obj1.setPageNo(1L);
obj1.setPageSize(10L);
req.setQuery(obj1);
AlibabaHealthNrLogisticsPlaceSuggestResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_health_nr_logistics_place_suggest_response>
    <result>
        <result>
            <results>
                <address_dto>
                    <area_code>010</area_code>
                    <address>密13路;密13路(三峪);密13路圣水头</address>
                    <city>北京市</city>
                    <city_code>110100</city_code>
                    <latitude>40.353081</latitude>
                    <name>绿地中心B座</name>
                    <longitude>116.834824</longitude>
                    <district>朝阳区</district>
                    <province>浙江省</province>
                </address_dto>
            </results>
            <total_count>869</total_count>
        </result>
        <success>true</success>
        <error_code>FAIL_BIZ_QUERY_FAILED</error_code>
        <error_msg>查询失败,请重试</error_msg>
    </result>
</alibaba_health_nr_logistics_place_suggest_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

返回
顶部