... | ... | @@ -91,7 +91,6 @@ post http://172.16.20.63:3000/poi/ |
|
|
"labelEn" : "__test_xx",
|
|
|
"categoryCode" : "01010201",
|
|
|
"mapLayer" : "adasd",
|
|
|
"mapInfoId" : "9900002",
|
|
|
"source" : "XXX___XXX",
|
|
|
"tCode" : "670903"
|
|
|
}
|
... | ... | @@ -159,4 +158,51 @@ example : http://172.16.20.63:3000/dataservice/0/0/0/0/0 |
|
|
"CATEGORY_CODE": "10040101"
|
|
|
}
|
|
|
]
|
|
|
``` |
|
|
\ No newline at end of file |
|
|
```
|
|
|
|
|
|
Search for poi by MAPINFO_ID, NAME TH/ENG or LABEL TH/ENG
|
|
|
|
|
|
get http://172.16.20.63:3000/poi?text=searchText
|
|
|
|
|
|
example http://172.16.20.63:3000/poi?text=1234
|
|
|
|
|
|
```json
|
|
|
[
|
|
|
{
|
|
|
"MAPINFO_ID": 1234777,
|
|
|
"GEOSPATIAL": {
|
|
|
"x": 104.116034,
|
|
|
"y": 15.829111
|
|
|
},
|
|
|
"NAME_THAI": "ปั๊มบางจาก",
|
|
|
"NAME_ENG": "Bangchak Gas Station",
|
|
|
"LABEL_THAI": "ปั๊มบางจาก",
|
|
|
"LABEL_ENG": "Bangchak Gas Station",
|
|
|
"CODE": "13010601"
|
|
|
},
|
|
|
{
|
|
|
"MAPINFO_ID": 1234878,
|
|
|
"GEOSPATIAL": {
|
|
|
"x": 104.199757,
|
|
|
"y": 15.928252
|
|
|
},
|
|
|
"NAME_THAI": "ปั๊มบางจาก",
|
|
|
"NAME_ENG": "Bangchak Gas Station",
|
|
|
"LABEL_THAI": "ปั๊มบางจาก",
|
|
|
"LABEL_ENG": "Bangchak Gas Station",
|
|
|
"CODE": "13010601"
|
|
|
},
|
|
|
{
|
|
|
"MAPINFO_ID": 1234890,
|
|
|
"GEOSPATIAL": {
|
|
|
"x": 104.314018,
|
|
|
"y": 16.019001
|
|
|
},
|
|
|
"NAME_THAI": "ปั๊มบางจาก",
|
|
|
"NAME_ENG": "Bangchak Gas Station",
|
|
|
"LABEL_THAI": "ปั๊มบางจาก",
|
|
|
"LABEL_ENG": "Bangchak Gas Station",
|
|
|
"CODE": "13010601"
|
|
|
}
|
|
|
]
|
|
|
``` |