类 MapServiceImpl
java.lang.Object
com.hengyi.xbaseweb.map.service.impl.MapServiceImpl
- 所有已实现的接口:
IMapService
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明addressTips(String keywords, String city) 根据输入显示相关的地址addressToLocation(String address, String city) 地址转换为位置坐标aroundSearch(AroundSearchDto aroundSearchDto) 周边搜索directionPlan(String origin, String destination, String type, Integer strategy) 得出交通方式不同目的地的方案列表计算两点之间的实际距离ipLocation(String ipType, String ip) IP定位locationToAddress(String location) 位置坐标转为实际地址请求web-api
-
构造器详细资料
-
MapServiceImpl
public MapServiceImpl()
-
-
方法详细资料
-
request
从接口复制的说明:IMapService请求web-api- 指定者:
request在接口中IMapService- 返回:
-
ipLocation
从接口复制的说明:IMapServiceIP定位- 指定者:
ipLocation在接口中IMapService- 参数:
ipType- 4 ipv4 6 ipv6- 返回:
-
addressToLocation
从接口复制的说明:IMapService地址转换为位置坐标- 指定者:
addressToLocation在接口中IMapServicecity- 可选输入内容包括:指定城市的中文(如北京)、指定城市的中文全拼(beijing)、citycode(010)、adcode(110000),不支持县级市。- 返回:
-
locationToAddress
从接口复制的说明:IMapService位置坐标转为实际地址- 指定者:
locationToAddress在接口中IMapService- 返回:
-
directionPlan
从接口复制的说明:IMapService得出交通方式不同目的地的方案列表- 指定者:
directionPlan在接口中IMapService- 参数:
origin- 出发地经纬度destination- 目的地经纬度type- walking(步行) driving(驾驶) bicycling(骑行)strategy- 驾驶策略 https://developer.amap.com/api/webservice/guide/api/direction#driving distance 起点和终点的步行距离 单位:米duration 步行时间预计 单位:秒
- 返回:
-
distance
从接口复制的说明:IMapService计算两点之间的实际距离- 指定者:
distance在接口中IMapService- 参数:
origin- 出发地经纬度destination- 目的地经纬度type- 0:直线距离 1:驾车导航距离(仅支持国内坐标)。 3:步行规划距离(仅支持5km之间的距离)- 返回:
-
addressTips
从接口复制的说明:IMapService根据输入显示相关的地址- 指定者:
addressTips在接口中IMapService- 参数:
keywords- 输入地名city- 输入城市代码- 返回:
-
aroundSearch
从接口复制的说明:IMapService周边搜索- 指定者:
aroundSearch在接口中IMapService- 返回:
-