Library API
    Preparing search index...

    Interface GeoProvider

    Standard interface for pluggable geocoding and geolocation providers.

    interface GeoProvider {
        name: string;
        forwardGeocode?(
            query: string,
            opts?: Record<string, any>,
        ): Promise<ResolvedCoordinates | null>;
        lookup(opts?: Record<string, any>): Promise<GeoLookupResult | null>;
        reverseGeocode?(
            coords: CoordinateInput,
            opts?: Record<string, any>,
        ): Promise<GeoConfig | null>;
    }
    Index
    name: string

    Unique identifier or provider name