类 MapServiceImpl

java.lang.Object
com.hengyi.xbaseweb.map.service.impl.MapServiceImpl
所有已实现的接口:
IMapService

@Service("mapService") public class MapServiceImpl extends Object implements IMapService
  • 构造器详细资料

    • MapServiceImpl

      public MapServiceImpl()
  • 方法详细资料

    • request

      public HttpResult request(String serviceUrl, Map<String,Object> params)
      从接口复制的说明: IMapService
      请求web-api
      指定者:
      request 在接口中 IMapService
      返回:
    • ipLocation

      public MapResult ipLocation(String ipType, String ip)
      从接口复制的说明: IMapService
      IP定位
      指定者:
      ipLocation 在接口中 IMapService
      参数:
      ipType - 4 ipv4 6 ipv6
      返回:
    • addressToLocation

      public MapResult addressToLocation(String address, String city)
      从接口复制的说明: IMapService
      地址转换为位置坐标
      指定者:
      addressToLocation 在接口中 IMapService
      city - 可选输入内容包括:指定城市的中文(如北京)、指定城市的中文全拼(beijing)、citycode(010)、adcode(110000),不支持县级市。
      返回:
    • locationToAddress

      public MapResult locationToAddress(String location)
      从接口复制的说明: IMapService
      位置坐标转为实际地址
      指定者:
      locationToAddress 在接口中 IMapService
      返回:
    • directionPlan

      public MapResult directionPlan(String origin, String destination, String type, Integer strategy)
      从接口复制的说明: IMapService
      得出交通方式不同目的地的方案列表
      指定者:
      directionPlan 在接口中 IMapService
      参数:
      origin - 出发地经纬度
      destination - 目的地经纬度
      type - walking(步行) driving(驾驶) bicycling(骑行)
      strategy - 驾驶策略 https://developer.amap.com/api/webservice/guide/api/direction#driving distance 起点和终点的步行距离 单位:米

      duration 步行时间预计 单位:秒

      返回:
    • distance

      public MapResult distance(String origin, String destination, Integer type)
      从接口复制的说明: IMapService
      计算两点之间的实际距离
      指定者:
      distance 在接口中 IMapService
      参数:
      origin - 出发地经纬度
      destination - 目的地经纬度
      type - 0:直线距离 1:驾车导航距离(仅支持国内坐标)。 3:步行规划距离(仅支持5km之间的距离)
      返回:
    • addressTips

      public MapResult addressTips(String keywords, String city)
      从接口复制的说明: IMapService
      根据输入显示相关的地址
      指定者:
      addressTips 在接口中 IMapService
      参数:
      keywords - 输入地名
      city - 输入城市代码
      返回:
    • aroundSearch

      public MapResult aroundSearch(AroundSearchDto aroundSearchDto)
      从接口复制的说明: IMapService
      周边搜索
      指定者:
      aroundSearch 在接口中 IMapService
      返回: