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

yunos.charge.map.station.box.search (充电地图矩形范围站点搜索)

充电地图矩形范围站点搜索

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
param_box_station_map_search_qry BoxStationMapSearchQry 必须 请求参数
  • └ car_model
  • String
  • 可选
  • 300107
  • carModel
  • └ classify_data
  • String
  • 可选
  • spList=313744932,395815801,-1;parkFee=1,2
  • 筛选条件
  • └ enable_aggregation
  • Boolean
  • 可选
  • true
  • 是否启用聚合
  • └ geoobj
  • String
  • 可选
  • 114|30|115|31
  • 矩形对角经纬度
  • └ map_scale
  • Number
  • 可选
  • 500
  • 地图缩放比例
  • └ need_classify
  • Boolean
  • 可选
  • true
  • 是否需要返回筛选项
  • └ need_dynamic
  • Boolean
  • 可选
  • true
  • 是否需要返回动态数据
  • └ page_index
  • Number
  • 必须
  • 1
  • 页号
  • └ page_size
  • Number
  • 必须
  • 10
  • 页码
  • └ sort
  • Number
  • 必须
  • 1
  • 排序方式
  • └ source
  • String
  • 必须
  • car
  • 请求来源
  • └ trace_id
  • String
  • 必须
  • 1234reasd
  • traceId
  • └ user_loc
  • String
  • 必须
  • 116.3943381,39.91436513
  • 用户经纬度
  • └ vin
  • String
  • 可选
  • roewe11111
  • 车架号
  • └ zid
  • String
  • 可选
  • 10000000063263
  • 斑马账号id
  • └ ext
  • String
  • 可选
  • {}
  • 车机版本信息

响应参数

名称 类型 示例值 描述
result MapResponse 返回结果
  • data
  • StationMapSearchResp
  • 标准返回数据
  • └ classify
  • Json
  • []
  • 分类
  • └ code
  • Number
  • -1
  • 错误码0标识成功
  • └ comb_content
  • Json
  • []
  • 聚合结果
  • └ cost_time
  • Number
  • 1200
  • 执行耗时
  • └ data
  • Json
  • []
  • 离散结果
  • └ icon_url
  • String
  • http://123.png
  • 扎点图标地址
  • └ info
  • String
  • 参数错误
  • 执行详细信息
  • └ more
  • Json
  • {total:13}
  • 额外信息(一般就是总条目数)
  • └ msg
  • String
  • 执行信息
  • 执行信息
  • └ page_index
  • Number
  • 1
  • 页号
  • └ page_size
  • Number
  • 10
  • 页大小
  • └ sort_config
  • Json
  • []
  • 排序配置
  • └ success
  • Boolean
  • false
  • 是否成功
  • └ 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);
YunosChargeMapStationBoxSearchRequest req = new YunosChargeMapStationBoxSearchRequest();
YunosChargeMapStationBoxSearchRequest.BoxStationMapSearchQry obj1 = new YunosChargeMapStationBoxSearchRequest.BoxStationMapSearchQry();
obj1.setCarModel("300107");
obj1.setClassifyData("spList=313744932,395815801,-1;parkFee=1,2");
obj1.setEnableAggregation(true);
obj1.setGeoobj("114|30|115|31");
obj1.setMapScale(500L);
obj1.setNeedClassify(true);
obj1.setNeedDynamic(true);
obj1.setPageIndex(1L);
obj1.setPageSize(10L);
obj1.setSort(1L);
obj1.setSource("car");
obj1.setTraceId("1234reasd");
obj1.setUserLoc("116.3943381,39.91436513");
obj1.setVin("roewe11111");
obj1.setZid("10000000063263");
obj1.setExt("{}");
req.setParamBoxStationMapSearchQry(obj1);
YunosChargeMapStationBoxSearchResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

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

返回
顶部