文档中心 > API类目 > 天眼工作室API

alibaba.security.dscene.proxy.map.view.render (风险查地图渲染)

风险查地图渲染

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
param RenderByNodeQueryParam 可选 参数
  • └ request_id
  • String
  • 可选
  • 1
  • 请求唯一ID
  • └ extra_params
  • String
  • 可选
  • {}
  • 扩展参数
  • └ poi_id
  • String
  • 必须
  • 1
  • 门店
  • └ tenant_code
  • String
  • 必须
  • 1
  • 租户
  • └ hierarchy_node_id
  • String
  • 可选
  • 1
  • 楼层
  • └ token
  • String
  • 可选
  • 1
  • Token

响应参数

名称 类型 示例值 描述
result String {\"boundary\":{\"maxX\":0.0014000967745121742,\"maxY\":8.651549635301818E-4,\"minX\":6.755115340910613E-4,\"minY\":3.5489679048320266E-4},\"id\":525,\"layerVOList\":[{\"featureCollection\":{\"features\":[{\"geometry\":{\"coordinates\":[[[6.755115340910613E-4,6.580932905605409E-4,0.0],[6.755115340910613E-4,6.652798128307916E-4,0.0],[8.102588267089895E-4,6.652798128307916E-4,0.0],[8.102588267089895E-4,6.482118224278144E-4,0.0],[8.557135800854373E-4,6.482118224278144E-4,0.0],[8.557135800854373E-4,6.688730739722779E-4,0.0],[9.12666769098615E-4,6.688730739722779E-4,0.0]]],\"type\":\"Polygon\"},\"id\":{},\"properties\":{\"uniqueCode\":\"480820074291269632\",\"elementTypeId\":3,\"properties\":\"{\\\"fillColor\\\":\\\"rgba(244, 241, 236, 1)\\\",\\\"strokeColor\\\":\\\"rgba(211, 132, 61, 1)\\\",\\\"strokeWidth\\\":2,\\\"icon\\\":\\\"\\\"}\",\"id\":32958,\"geoProperties\":\"{\\\"geoMD5\\\":\\\"element-0f2816b6e2dda2837a4e44aa01242b7a\\\"}\",\"EXCLUDE_FIELDS\":[\"properties\"],\"layerId\":2020},\"type\":\"Feature\"}]} 室内地图渲染所需图层数据
resp_code Number 1 返回码
resp_success Boolean true 是否成功
resp_request_id String 1 请求唯一ID
message String 成功 返回描述

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaSecurityDsceneProxyMapViewRenderRequest req = new AlibabaSecurityDsceneProxyMapViewRenderRequest();
AlibabaSecurityDsceneProxyMapViewRenderRequest.RenderByNodeQueryParam obj1 = new AlibabaSecurityDsceneProxyMapViewRenderRequest.RenderByNodeQueryParam();
obj1.setRequestId("1");
obj1.setExtraParams("{}");
obj1.setPoiId("1");
obj1.setTenantCode("1");
obj1.setHierarchyNodeId("1");
obj1.setToken("1");
req.setParam(obj1);
AlibabaSecurityDsceneProxyMapViewRenderResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_security_dscene_proxy_map_view_render_response>
    <result>{\&quot;boundary\&quot;:{\&quot;maxX\&quot;:0.0014000967745121742,\&quot;maxY\&quot;:8.651549635301818E-4,\&quot;minX\&quot;:6.755115340910613E-4,\&quot;minY\&quot;:3.5489679048320266E-4},\&quot;id\&quot;:525,\&quot;layerVOList\&quot;:[{\&quot;featureCollection\&quot;:{\&quot;features\&quot;:[{\&quot;geometry\&quot;:{\&quot;coordinates\&quot;:[[[6.755115340910613E-4,6.580932905605409E-4,0.0],[6.755115340910613E-4,6.652798128307916E-4,0.0],[8.102588267089895E-4,6.652798128307916E-4,0.0],[8.102588267089895E-4,6.482118224278144E-4,0.0],[8.557135800854373E-4,6.482118224278144E-4,0.0],[8.557135800854373E-4,6.688730739722779E-4,0.0],[9.12666769098615E-4,6.688730739722779E-4,0.0]]],\&quot;type\&quot;:\&quot;Polygon\&quot;},\&quot;id\&quot;:{},\&quot;properties\&quot;:{\&quot;uniqueCode\&quot;:\&quot;480820074291269632\&quot;,\&quot;elementTypeId\&quot;:3,\&quot;properties\&quot;:\&quot;{\\\&quot;fillColor\\\&quot;:\\\&quot;rgba(244, 241, 236, 1)\\\&quot;,\\\&quot;strokeColor\\\&quot;:\\\&quot;rgba(211, 132, 61, 1)\\\&quot;,\\\&quot;strokeWidth\\\&quot;:2,\\\&quot;icon\\\&quot;:\\\&quot;\\\&quot;}\&quot;,\&quot;id\&quot;:32958,\&quot;geoProperties\&quot;:\&quot;{\\\&quot;geoMD5\\\&quot;:\\\&quot;element-0f2816b6e2dda2837a4e44aa01242b7a\\\&quot;}\&quot;,\&quot;EXCLUDE_FIELDS\&quot;:[\&quot;properties\&quot;],\&quot;layerId\&quot;:2020},\&quot;type\&quot;:\&quot;Feature\&quot;}]}</result>
    <resp_code>1</resp_code>
    <resp_success>true</resp_success>
    <resp_request_id>1</resp_request_id>
    <message>成功</message>
</alibaba_security_dscene_proxy_map_view_render_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

返回
顶部