北斗定位
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
1.1KB

  1. package com.telpo.dipperposition.service;
  2. import java.io.UnsupportedEncodingException;
  3. /**
  4. * @program: IDipperAstPosAsyncTaskService
  5. * @description: 系统预先基于省份的省会城市的经纬度作为辅助信息,
  6. * 根据设备请求的IP地址,从高德IP定位服务获取相关的省份,再匹配相应的位置信息作为辅助位置信息。
  7. * 如果匹配不到省份,则以武汉中心作为辅助为位置信息。
  8. * 关于IP与省份的关系保存到缓存中,用于下次使用时,先在缓存中获取匹配信息,匹配不到,再请求高德IP定位服务。
  9. * 高德IP定位服务:https://lbs.amap.com/api/webservice/guide/api/ipconfig。
  10. * @author: king
  11. * @create: 2021-01-17 16:24
  12. */
  13. public interface IDipperAstPosAsyncTaskService {
  14. /**
  15. * 同步任务
  16. *
  17. */
  18. String pushAstPos(String ipAddress,
  19. String centerProvinceFilePath,
  20. String centerProvince,
  21. String ipPositionRequestPath,
  22. String ipPositionRequestKey) throws UnsupportedEncodingException;
  23. }