# 會員_我的潛點(MAP)
**API 修改紀錄**
|版本|日期|備註|
| ------------ |------------ |------------ |
| v1 |2024/05/14| 發佈 |
| v1 |2024/05/20| 額外提供資訊, 更改欄位名稱 name -> spot_name|
| v1 |2024/05/22| 提供收藏狀態 collect_status|
**會員_我的潛點(MAP)**
會員_我的潛點(MAP)清單
#### 網址
https://{domain}/api/v1/dive-site/index
#### Http Method
GET
#### HTTP Header
accept-language : language code
apikey : apk key
#### Query Params
|欄位名稱|必填|型態|欄位|備註|
| ------------ | :-----------: |:-----------: |------------ |------------ |
|latitude|Y|float|緯度
|longitude|Y|float|經度
|distance|Y|float|距離|公里
#### HTTP Body 傳入參數
|欄位名稱|必填|型態|欄位|備註|
| ------------ | :-----------: |:-----------: |------------ |------------ |
#### HTTP Response 回傳參數
|Name|Type|說明|
| ------------ | ------------ |------------ |
|id |int |潛點id |
|dive_type_id |int |潛點分類(1:個人潛點 2:公開潛點 3:日誌潛點 4:自建潛點) |
|status |boolean |狀態(false:關閉 true:啟用) |
|collect_status |boolean |收藏狀態(true:已收藏 false:未收藏) |
|spot_name |string |潛點名稱(spot) |
|site_name |string |潛點名稱(site) |
|latitude |float |緯度 |
|longitude |float |經度 |
|categories |array |類型 |
|exp_levels |array |經驗等級 |
#### Request Header Authoriztion
```json
{
"accept-language" : "en", //or 'zh_tw'
"apikey" : "api key string"
}
```
#### Json Example
Request Json
```json
```
Response Json Success
```json
{
"status": true,
"code": 200,
"message": "success",
"result": {
"pageCount": 1,
"data": [
{
"id": 1,
"dive_type_id": 1,
"status": true,
"collect_status": true,
"spot_name": "東澳漁港",
"site_name": "台灣,新北市 萬里區",
"latitude": 30.040468215942,
"longitude": -85.621528625488,
"categories": [
{
"id": 1,
"name": "Shore Dive"
},
{
"id": 2,
"name": "divespot_reef"
},
{
"id": 3,
"name": "Ocean"
},
{
"id": 4,
"name": "Technical"
}
],
"exp_levels": [
{
"id": 1,
"name": "Open Water"
},
{
"id": 2,
"name": "Beginner"
},
{
"id": 3,
"name": "Advanced"
},
{
"id": 4,
"name": "Expert"
}
]
},
]
}
}
```
Response Json Error
```json
{
"status": false,
"message": "No Data",
"code": 400
}
```