
# 获取位置展示url
#### 接口功能
获取位置展示url，用于页面展示地址消息
#### 使用说明
- 前提条件 正确创建web渠道配置。
  
 
#### 接口原型
表1接口原型说明 
|   请求方法    |                                                        GET                                                        ||
|---|---|---|
| **请求URL** | https://ip:port/service-cloud/rest/webadapter/v1/webadapterfacade/getWebLocationUrl | 其中，ip:port为对外暴露的nslb的ip和port |
   
表2请求Headers参数说明 
| 参数名称         | 选取原则 | 参数类型   | 默认值 | 说明                                                                                                                               |
|:---|:---|:---|:---|:---|
| Content-Type | 必选   | String | 无   | 固定填 application/json;charset=UTF-8。                                                                                              |
| Cookie       | 必选   | String | 无   | 集成页面的时候，ccmessaging通过请求响应，将ccmessaging-token写到集成页面浏览器的Cookie中。单独调用时需确保请求头的Cookie中含有ccmessaging-token=xxx，xxx为ccmessaging-token值。 |
   
#### 请求参数
无。
#### 响应参数
| 参数名称        | 选取原则 | 参数类型   | 说明                    |
|:---|:---|:---|:---|
| locationUrl | 必选   | String | 地图展示url               |
| mapService  | 必选   | String | 地图服务类型：tencent,google |
| channel     | 必选   | String | 渠道类型，固定值：WEB          |
   
#### 接口示例
- 请求示例
  ```
  GET /service-cloud/rest/webadapter/v1/webadapterfacade/getWebLocationUrl
  host: 10.10.10.2:18446
  connection: Keep-Alive
  x-forwarded-for: 10.10.10.3, 10.10.10.4
  x-real-ip: 10.10.10.5
  content-length: 401
  remote-host: 10.10.10.6
  user-agent: java/socket
  content-type: application/json;charset=UTF-8
  cookie: JSESSION*****#*#*****3
  ccmessaging-token：********
  accept: */*
  ```
  
- 响应示例
  ```
  {
    "locationUrl": "xxxxxxx",
    "channel": "WEB",
    "mapService": "tencent"
  }
  ```
  
 
