locate.d.ts 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. /**
  2. * 地图定位 请求参数定义
  3. * @apiName biz.map.locate
  4. */
  5. export interface IBizMapLocateParams {
  6. /** 非必须字段,需要和longitude组合成合法经纬度,高德坐标 */
  7. latitude?: number;
  8. /** 非必须字段,需要和latitude组合成合法经纬度,高德坐标 */
  9. longitude?: number;
  10. }
  11. /**
  12. * 地图定位 返回结果定义
  13. * @apiName biz.map.locate
  14. */
  15. export interface IBizMapLocateResult {
  16. /** POI所在省会,可能为空 */
  17. province: string;
  18. /** POI所在省会编码,可能为空 */
  19. provinceCode: string;
  20. /** POI所在城市,可能为空 */
  21. city: string;
  22. /** POI所在城市的编码,可能为空 */
  23. cityCode: string;
  24. /** POI所在区,可能为空 */
  25. adName: string;
  26. /** POI所在区的编码,可能为空 */
  27. adCode: string;
  28. /** POI与设备位置的距离 */
  29. distance: string;
  30. /** POI的邮编,可能为空 */
  31. postCode: string;
  32. /** POI的街道地址,可能为空 */
  33. snippet: string;
  34. /** POI的名称 */
  35. title: string;
  36. /** POI的纬度,高德坐标 */
  37. latitude: number;
  38. /** POI的经度,高德坐标 */
  39. longitude: number;
  40. }
  41. /**
  42. * 地图定位
  43. * 唤起地图页面,获取设备位置及设备附近的POI信息;若传入的合法经纬度则显示出入的位置信息及其附近的POI信息。
  44. * @apiName biz.map.locate
  45. * @supportVersion ios: 2.4.0 android: 2.4.0
  46. */
  47. export declare function locate$(params: IBizMapLocateParams): Promise<IBizMapLocateResult>;
  48. export default locate$;