@itwin/geo-tools-react
Version:
React Geospatial Tools
20 lines • 1.03 kB
TypeScript
import { Cartographic } from "@itwin/core-common";
import type { MapCartoRectangle } from "@itwin/core-frontend";
import type { AddressProvider, AddressRequest, AddressData, GeoCoder } from "./AddressProvider";
export interface GoogleAddressData extends AddressData {
placeId: string;
}
export declare class GoogleAddressProvider implements AddressProvider {
private _radius;
private _apiKey;
readonly hasAddressIds = true;
constructor(locationBiasRadius?: number);
supportsAddressLocation(): this is GeoCoder;
protected getAuthRequestHeader(): Promise<Record<string, string>>;
protected getPlacesBaseUrl(): Promise<string>;
getLocation(data: GoogleAddressData): Promise<Cartographic>;
protected getPlacesAutoCompleteUrl(): Promise<string>;
protected getSuggestionsRequest(query: string, viewRect: MapCartoRectangle): Promise<AddressRequest>;
getSuggestions(query: string, userView: MapCartoRectangle): Promise<AddressData[]>;
}
//# sourceMappingURL=GoogleAddressProvider.d.ts.map