package com.yc.sdk.map.service;
|
|
import com.yc.sdk.map.entity.LocationEntity;
|
import com.yc.sdk.map.entity.SearchEntity;
|
import org.springframework.stereotype.Service;
|
|
/**
|
* 地图服务抽象类
|
*/
|
@Service
|
public interface AbstractMapService {
|
|
/**
|
* IP定位服务
|
*
|
* @return
|
*/
|
LocationEntity getIPLocation(String ip) throws Exception;
|
|
/**
|
* 逆地理编码
|
*
|
* @return
|
*/
|
LocationEntity reverseGeocode(String longitude, String latitude, String ip) throws Exception;
|
|
/**
|
* 周边搜索
|
*
|
* @param searchEntity
|
* @return
|
* @throws Exception
|
*/
|
Object nearbySearch(SearchEntity searchEntity) throws Exception;
|
|
/**
|
* 关键字搜索
|
*
|
* @param searchEntity
|
* @return
|
* @throws Exception
|
*/
|
Object searchByText(SearchEntity searchEntity) throws Exception;
|
}
|