文档中心 > API类目 > 神鲸应用API

alibaba.ib.workcore.wuye.getlocationpark (根据定位获取园区信息)

根据定位获取园区信息

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
work_bench_context WorkBenchContext 可选 系统自动生成
  • └ campus_id
  • Number
  • 必须
  • 10009
  • 园区id
city_code String 可选 3301 城市CODE
longitude String 可选 119.6357420
  • 默认值:119.6357420
  • 经度
    latitude String 可选 29.1107670
  • 默认值:29.1107670
  • 纬度

    响应参数

    名称 类型 示例值 描述
    result PojoResult {} result
    • └ success
    • Boolean
    • true
    • success
    • └ error_msg
    • String
    • success
    • errorMsg
    • └ error_code
    • String
    • 200
    • errorCode
    • └ request_id
    • String
    • testId
    • requestId
    • contents
    • CampusLocationDto
    • {}
    • result
    • └ latitude
    • String
    • 29.1107670
    • 纬度
    • └ longitude
    • String
    • 119.6357420
    • 经度
    • └ address
    • String
    • 文一西路
    • 地址
    • └ name
    • String
    • 布什
    • 名字
    • └ city_name
    • String
    • 德州
    • cityName
    • └ city_code
    • String
    • 3301
    • cityCode
    • └ id
    • Number
    • 1
    • id

    请求示例

    • JAVA
    • .NET
    • PHP
    • CURL
    • Python
    • C/C++
    • NodeJS
    TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
    AlibabaIbWorkcoreWuyeGetlocationparkRequest req = new AlibabaIbWorkcoreWuyeGetlocationparkRequest();
    AlibabaIbWorkcoreWuyeGetlocationparkRequest.WorkBenchContext obj1 = new AlibabaIbWorkcoreWuyeGetlocationparkRequest.WorkBenchContext();
    obj1.setCampusId(10009L);
    req.setWorkBenchContext(obj1);
    req.setCityCode("3301");
    req.setLongitude("119.6357420");
    req.setLatitude("29.1107670");
    AlibabaIbWorkcoreWuyeGetlocationparkResponse rsp = client.execute(req);
    System.out.println(rsp.getBody());

    响应示例

    • XML示例
    • JSON示例
    <alibaba_ib_workcore_wuye_getlocationpark_response>
        <result>
            <success>true</success>
            <error_msg>success</error_msg>
            <error_code>200</error_code>
            <request_id>testId</request_id>
            <contents>
                <latitude>29.1107670</latitude>
                <longitude>119.6357420</longitude>
                <address>文一西路</address>
                <name>布什</name>
                <city_name>德州</city_name>
                <city_code>3301</city_code>
                <id>1</id>
            </contents>
        </result>
    </alibaba_ib_workcore_wuye_getlocationpark_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

    返回
    顶部