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