| | |
| | | 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 { |
| | |
| | | } |
| | | |
| | | @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 Object searchByText(SearchEntity searchEntity) throws Exception { |
| | | public Object customerList(CustomerEntity customerEntity, HttpServletRequest request) throws Exception { |
| | | return null; |
| | | } |
| | | |
| | | @Override |
| | | public Object nearbySearch(SearchEntity searchEntity) throws Exception { |
| | | public Object nearbySearch(SearchEntity searchEntity, HttpServletRequest request) throws Exception { |
| | | return null; |
| | | } |
| | | |
| | | @Override |
| | | public LocationEntity reverseGeocode(String longitude, String latitude, String ip) throws Exception { |
| | | 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()); |