amap.js 350 B

1234567891011121314
  1. import mapR from '@/utils/mapRequest'
  2. const amap = {
  3. //将结构化地址转为经纬度
  4. getLngLat(param){
  5. return mapR.get(`v3/geocode/geo?address=${param}`);
  6. },
  7. getAroundPOI(redius,location,types){
  8. return mapR.get(`v5/place/around?redius=${redius}&location=${location}&types=${types}`);
  9. }
  10. }
  11. export default amap