locateOnMap.d.ts 628 B

123456789101112131415161718192021222324252627
  1. export interface LocateOnMapParams {
  2. latitude?: number;
  3. longitude?: number;
  4. scope?: number;
  5. }
  6. export interface GeolocationResult {
  7. province?: string;
  8. provinceCode?: string;
  9. city?: string;
  10. cityCode?: string;
  11. adName?: string;
  12. adCode?: string;
  13. distance?: string;
  14. postCode?: string;
  15. snippet?: string;
  16. title: string;
  17. latitude: number;
  18. longitude: number;
  19. }
  20. declare function locateOnMap(args: LocateOnMapParams): Promise<GeolocationResult>;
  21. declare namespace locateOnMap {
  22. var version: {
  23. android: string;
  24. ios: string;
  25. };
  26. }
  27. export default locateOnMap;