UNPKG

@itwin/geo-tools-react

Version:
26 lines 882 B
import type { Cartographic } from "@itwin/core-common"; import type { MapCartoRectangle, Viewport } from "@itwin/core-frontend"; export interface AddressData { formattedAddress: string; } export interface AddressRequest { method: "POST" | "GET"; url: URL; headers?: { [key: string]: string; }; body?: string; } export interface AddressProviderViewContext { viewport?: Viewport; } export interface GeoCoder { getLocation(data: AddressData): Promise<Cartographic>; } export interface AddressProvider { getSuggestions(query: string, viewRect: MapCartoRectangle): Promise<AddressData[]>; supportsAddressLocation(): this is GeoCoder; /** Indicates whether the address provider should be disabled in the current view context*/ isDisabled(context: AddressProviderViewContext): boolean; } //# sourceMappingURL=AddressProvider.d.ts.map