... | @@ -2,8 +2,10 @@ |
... | @@ -2,8 +2,10 @@ |
|
|
|
|
|
get http://172.16.20.63:3000/poi/:zoom/:nwlng/:nwlat/:selng/:selat
|
|
get http://172.16.20.63:3000/poi/:zoom/:nwlng/:nwlat/:selng/:selat
|
|
|
|
|
|
|
|
response
|
|
|
|
|
|
```json
|
|
```json
|
|
respone {
|
|
{
|
|
"MAPINFO_ID" : 10000,
|
|
"MAPINFO_ID" : 10000,
|
|
"GEOSPATIAL" : {
|
|
"GEOSPATIAL" : {
|
|
"x" : 0 // lng
|
|
"x" : 0 // lng
|
... | @@ -29,22 +31,26 @@ response 204 = success |
... | @@ -29,22 +31,26 @@ response 204 = success |
|
|
|
|
|
put http://172.16.20.63:3000/poi/:mapinfo_id
|
|
put http://172.16.20.63:3000/poi/:mapinfo_id
|
|
|
|
|
|
|
|
request
|
|
```json
|
|
```json
|
|
request data = {
|
|
{
|
|
'latlng' : {
|
|
"latlng" : {
|
|
'lat' : 0,
|
|
"lat" : 0,
|
|
'lng' : 0
|
|
"lng" : 0
|
|
},
|
|
},
|
|
nameThai : '',
|
|
"nameThai" : '',
|
|
nameEng : '',
|
|
"nameEng" : '',
|
|
labelThai : '',
|
|
"labelThai" : '',
|
|
labelEng : ''
|
|
"labelEng" : ''
|
|
}
|
|
}
|
|
// จะใส่แค่ตัวแปรที่เปลี่ยนหรือทั้งหมดก็ได้
|
|
|
|
response 201 = success
|
|
|
|
400 = err
|
|
|
|
```
|
|
```
|
|
|
|
|
|
|
|
// จะใส่แค่ตัวแปรที่เปลี่ยนหรือทั้งหมดก็ได้
|
|
|
|
|
|
|
|
response 201 = success
|
|
|
|
|
|
|
|
400 = err
|
|
|
|
|
|
### Create poi
|
|
### Create poi
|
|
|
|
|
|
post http://127.0.0.1:3000/poi/
|
|
post http://127.0.0.1:3000/poi/
|
... | | ... | |