Skip to content

Commit

Permalink
type: Update GeolocationResult type
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Mar 15, 2020
1 parent 50501d0 commit 3f63c77
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions src/types/service.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,10 +143,25 @@ declare namespace BMap {
}
type DrivingPolicy = number;
interface AddressComponent {
/**
* 门牌号码
*/
streetNumber: string;
/**
* 街道名称
*/
street: string;
/**
* 区县名称
*/
district: string;
/**
* 城市名称
*/
city: string;
/**
* 省份名称
*/
province: string;
}
interface BusLine {
Expand Down Expand Up @@ -369,8 +384,18 @@ declare namespace BMap {
getDistance(format?: boolean): string | number;
}
interface GeolocationResult {
/**
* 定位坐标点
*/
point: Point;
/**
* 定位坐标点
*/
accuracy: number;
/**
* 根据定位坐标点解析出的地址信息,可能为空(3.0新增)
*/
address: AddressComponent;
}
class Boundary {
constructor();
Expand Down

0 comments on commit 3f63c77

Please sign in to comment.