project init
This commit is contained in:
25
api/map.js
Normal file
25
api/map.js
Normal file
@@ -0,0 +1,25 @@
|
||||
import {request} from '@/untils/AxiosUtils.js';
|
||||
/*逆地址解析*/
|
||||
export const getcoder = (location, key, get_poi) => {
|
||||
return request({
|
||||
url: '/api/map/ws/geocoder/v1',
|
||||
method: 'get',
|
||||
params: {
|
||||
location,
|
||||
key,
|
||||
get_poi
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
/*关键词输入提示*/
|
||||
export const querySearch = (keyword, key) => {
|
||||
return request({
|
||||
url: '/api/map/ws/place/v1/suggestion',
|
||||
method: 'get',
|
||||
params: {
|
||||
keyword,
|
||||
key
|
||||
}
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user