文档中心 > API类目 > 斑马充电中台开放API

yunos.charge.map.station.poi.search (充电地图按照poi信息进行站点搜索)

充电地图按照poi信息进行站点搜索

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
param_poi_station_map_search_qry PoiStationMapSearchQry 可选 请求参数
  • └ car_model
  • String
  • 必须
  • 300107
  • carModel
  • └ ids
  • String []
  • 必须
  • [B0H6XZVDSP]
  • poiId数组
  • └ source
  • String
  • 必须
  • car
  • 请求来源
  • └ trace_id
  • String
  • 必须
  • yunos_test_traceId
  • traceId
  • └ user_loc
  • String
  • 可选
  • 116.3943381,39.91436513
  • 用户位置
  • └ vin
  • String
  • 可选
  • vin1212121212
  • 车架号
  • └ zid
  • String
  • 可选
  • 1212123213123213
  • 斑马账户id
  • └ ext
  • String
  • 可选
  • {}
  • 车机版本信息

响应参数

名称 类型 示例值 描述
result MapResponse 返回参数
  • data
  • StationMapSearchResp
  • 返回数据
  • └ classify
  • Json
  • []
  • 筛选项
  • └ code
  • Number
  • 0
  • 错误码0标识正常
  • └ comb_content
  • Json
  • []
  • 聚合数据
  • └ cost_time
  • Number
  • 1200
  • 耗时
  • └ data
  • Json
  • []
  • 离散数据
  • └ icon_url
  • String
  • http://123.png
  • 扎点图标地址
  • └ info
  • String
  • 参数错误
  • 执行信息
  • └ more
  • Json
  • {total:12}
  • 额外信息
  • └ msg
  • String
  • 参数错误
  • 执行消息
  • └ page_index
  • Number
  • 1
  • 页号
  • └ page_size
  • Number
  • 10
  • 页码
  • └ sort_config
  • Json
  • []
  • 排序配置
  • └ success
  • Boolean
  • true
  • 是否成功
  • └ total
  • Number
  • 10
  • 总数目
  • └ err_code
  • String
  • -1004
  • 错误码
  • └ err_message
  • String
  • 参数错误
  • 错误信息
  • └ success
  • String
  • false
  • 是否成功

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
YunosChargeMapStationPoiSearchRequest req = new YunosChargeMapStationPoiSearchRequest();
YunosChargeMapStationPoiSearchRequest.PoiStationMapSearchQry obj1 = new YunosChargeMapStationPoiSearchRequest.PoiStationMapSearchQry();
obj1.setCarModel("300107");
obj1.setIds("B0H6XZVDSP");
obj1.setSource("car");
obj1.setTraceId("yunos_test_traceId");
obj1.setUserLoc("116.3943381,39.91436513");
obj1.setVin("vin1212121212");
obj1.setZid("1212123213123213");
obj1.setExt("{}");
req.setParamPoiStationMapSearchQry(obj1);
YunosChargeMapStationPoiSearchResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<yunos_charge_map_station_poi_search_response>
    <result>
        <data>
            <classify>[]</classify>
            <code>0</code>
            <comb_content>[]</comb_content>
            <cost_time>1200</cost_time>
            <data>[]</data>
            <icon_url>http://123.png</icon_url>
            <info>参数错误</info>
            <more>{total:12}</more>
            <msg>参数错误</msg>
            <page_index>1</page_index>
            <page_size>10</page_size>
            <sort_config>[]</sort_config>
            <success>true</success>
            <total>10</total>
        </data>
        <err_code>-1004</err_code>
        <err_message>参数错误</err_message>
        <success>false</success>
    </result>
</yunos_charge_map_station_poi_search_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

返回
顶部