构造函数
constructor
new Geocoder(options?: { apiSource?: string }): Geocoder 参数
- options: { apiSource?: string } = {}
方法
getLocation
getLocation( point: number[], callback: Function, opts?: any,): | Promise< { address: any; addressComponents: {}; business: any; content: any; point: any; surroundingPois: { _poiType: any; address: any; city: any; phoneNumber: any; point: any; postcode: any; title: any; type: number; uid: any; }[]; }, > | Promise<{ address: any; addressComponents: any; point: Vector3 }> 参数
- point: number[]
- callback: Function
result
result.address
result.point
可选opts: any
返回
| Promise<
{
address: any;
addressComponents: {};
business: any;
content: any;
point: any;
surroundingPois: {
_poiType: any;
address: any;
city: any;
phoneNumber: any;
point: any;
postcode: any;
title: any;
type: number;
uid: any;
}[];
},
>
| Promise<{ address: any; addressComponents: any; point: Vector3 }>
getPoint
getPoint(address: string, callback: Function, city?: string): Promise<any> 参数
- address: string
- callback: Function
result
result.point
result.address
可选city: string
返回 Promise<any>
地理编码服务
支持以下功能:
示例
示例