From dbf53543a56970c7e10b6e274ff682ff4ebdaebe Mon Sep 17 00:00:00 2001 From: fs-danaus <danaus314@qq.com> Date: 星期二, 02 七月 2024 14:48:35 +0800 Subject: [PATCH] 地图服务功能 --- src/com/yc/sdk/gaodemap/api/GaoDeMapService.java | 22 ++++++++++++++++++++-- 1 files changed, 20 insertions(+), 2 deletions(-) diff --git a/src/com/yc/sdk/gaodemap/api/GaoDeMapService.java b/src/com/yc/sdk/gaodemap/api/GaoDeMapService.java index fc0a668..3050c92 100644 --- a/src/com/yc/sdk/gaodemap/api/GaoDeMapService.java +++ b/src/com/yc/sdk/gaodemap/api/GaoDeMapService.java @@ -3,10 +3,14 @@ import com.yc.entity.AttachmentConfig; import com.yc.sdk.gaodemap.action.GdMapServiceInit; import com.yc.sdk.gaodemap.entity.RegeoCodeEntity; +import com.yc.sdk.huaweimap.entity.CustomerEntity; import com.yc.sdk.map.entity.LocationEntity; +import com.yc.sdk.map.entity.SearchEntity; import com.yc.sdk.map.service.AbstractMapService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; + +import javax.servlet.http.HttpServletRequest; @Service public class GaoDeMapService implements AbstractMapService { @@ -19,12 +23,26 @@ } @Override - public LocationEntity getIPLocation(String ip) throws Exception { + public LocationEntity getIPLocation(String ip, HttpServletRequest request) throws Exception { + return null; + } + @Override + public Object searchByText(SearchEntity searchEntity, HttpServletRequest request) throws Exception { return null; } @Override - public LocationEntity reverseGeocode(String longitude, String latitude, String ip) throws Exception { + public Object customerList(CustomerEntity customerEntity, HttpServletRequest request) throws Exception { + return null; + } + + @Override + public Object nearbySearch(SearchEntity searchEntity, HttpServletRequest request) throws Exception { + return null; + } + + @Override + public LocationEntity reverseGeocode(String longitude, String latitude, String ip,HttpServletRequest request) throws Exception { RegeoCodeEntity regeoV2 = gdMapService.getRegeoV2(longitude, latitude, ip); LocationEntity location = new LocationEntity(); location.setCountryName(regeoV2.getCountry()); -- Gitblit v1.8.0