|
|
#Create poi
|
|
|
### Get Poi in bounds
|
|
|
|
|
|
get http://172.16.20.63:3000/poi/:zoom/:nwlng/:nwlat/:selng/:selat
|
|
|
|
|
|
```json
|
|
|
respone {
|
|
|
"MAPINFO_ID" : 10000,
|
|
|
"GEOSPATIAL" : {
|
|
|
"x" : 0 // lng
|
|
|
"y" : 0 // lat
|
|
|
},
|
|
|
"NAME_THAI" : "",
|
|
|
"NAME_ENG" : "",
|
|
|
"LABEL_THAI" : "",
|
|
|
"LABEL_ENG" : ""
|
|
|
}
|
|
|
```
|
|
|
|
|
|
|
|
|
### delete poi
|
|
|
|
|
|
delete http://172.16.20.63:3000/poi/:mapinfo_id
|
|
|
|
|
|
response 204 = success
|
|
|
400 = err
|
|
|
|
|
|
|
|
|
### update poi
|
|
|
|
|
|
put http://172.16.20.63:3000/poi/:mapinfo_id
|
|
|
|
|
|
```json
|
|
|
request data = {
|
|
|
'latlng' : {
|
|
|
'lat' : 0,
|
|
|
'lng' : 0
|
|
|
},
|
|
|
nameThai : '',
|
|
|
nameEng : '',
|
|
|
labelThai : '',
|
|
|
labelEng : ''
|
|
|
}
|
|
|
// จะใส่แค่ตัวแปรที่เปลี่ยนหรือทั้งหมดก็ได้
|
|
|
response 201 = success
|
|
|
400 = err
|
|
|
```
|
|
|
|
|
|
### Create poi
|
|
|
|
|
|
post http://127.0.0.1:3000/poi/
|
|
|
|
|
|
```json
|
|
|
{
|
|
|
"latlng" : {
|
... | ... | @@ -19,11 +68,22 @@ post http://127.0.0.1:3000/poi/ |
|
|
}
|
|
|
```
|
|
|
|
|
|
#Get All Category
|
|
|
|
|
|
### Get All Category
|
|
|
|
|
|
get http://127.0.0.1:3000/category
|
|
|
#Get All Provice
|
|
|
|
|
|
|
|
|
### Get All Provice
|
|
|
|
|
|
get http://127.0.0.1:3000/land/
|
|
|
#Get All Amphoe in Provice
|
|
|
|
|
|
|
|
|
### Get All Amphoe in Provice
|
|
|
|
|
|
get http://127.0.0.1:3000/land/:pcode
|
|
|
#Get All Tambon in Amphoe
|
|
|
get http://127.0.0.1:3000/land/:pcode/acode |
|
|
|
|
|
|
|
|
### Get All Tambon in Amphoe
|
|
|
|
|
|
get http://127.0.0.1:3000/land/:pcode/acode |
|
|
\ No newline at end of file |