UNPKG

@nativescript-community/geocoding

Version:

Provides access to native geocoding APIs for NativeScript apps (android.location.Geocoder for Android, CLGeocoder for iOS).

9 lines (8 loc) 526 B
import { LocationBase } from './geocoding-common'; export declare class Location extends LocationBase { android: android.location.Address; constructor(androidLocation: android.location.Address); } export declare function getLocationFromName(searchString: string): Promise<Location>; export declare function getLocationListFromName(searchString: string, maxResCount?: number): Promise<Location[]>; export declare function getFromLocation(latitude: number, longitude: number, maxResCount?: number): Promise<Location[]>;