wlzboy
2025-10-19 3328aec7bc4cc2c090f015cba905a82d6d52870c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import request from '@/utils/request'
 
/**
 * 根据地址获取GPS坐标(地理编码)
 * @param {String} address 地址字符串
 * @param {String} city 城市名称(可选)
 */
export function getCoordinatesByAddress(address, city) {
  return request({
    url: '/system/geocode/address',
    method: 'get',
    params: {
      address: address,
      city: city
    }
  })
}