wlzboy
2025-10-26 5c5cddb1c2ee0d19adddebaf3a3a10a6d93fd2ad
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
package com.ruoyi.system.service;
 
import com.ruoyi.system.domain.dto.GeocodeResult;
 
/**
 * 地理编码服务接口
 */
public interface IGeocodeService {
    
    /**
     * 根据地址获取GPS坐标(地理编码)
     * 
     * @param address 地址字符串
     * @return 地理编码结果,包含经纬度
     */
    GeocodeResult getCoordinatesByAddress(String address);
    
    /**
     * 根据地址获取GPS坐标(地理编码),支持指定城市
     * 
     * @param address 地址字符串
     * @param city 城市名称,用于提高解析准确度
     * @return 地理编码结果,包含经纬度
     */
    GeocodeResult getCoordinatesByAddress(String address, String city);
}