/** * see https://docs.microsoft.com/en-us/bingmaps/rest-services/locations/find-a-location-by-address * @typedef {object} BingMapsForwardQuery * @property {string} address * @property {number} [limit] * @property {string} [language] */ /** * see https://docs.microsoft.com/en-us/bingmaps/rest-services/locations/find-a-location-by-point * @typedef {object} BingMapsReverseQuery * @property {number} lat latitude * @property {number} lng longitude * @property {number} [limit] * @property {string} [language] */ /** * @deprecated * Bing Maps for Enterprise is deprecated and will be retired. Free (Basic) * account customers can continue to use Bing Maps for Enterprise services until * June 30th, 2025. Enterprise account customers can continue to use Bing Maps * for Enterprise services until June 30th, 2028. */ export class BingMapsGeocoder extends AbstractGeocoder { /** * available options * @see https://docs.microsoft.com/en-us/bingmaps/rest-services/ * @param {fetchAdapterFn} adapter * @param {object} options * @param {string} options.apiKey * @param {number} [options.limit] * @param {string} [options.language] */ constructor(adapter: fetchAdapterFn, options?: { apiKey: string; limit?: number | undefined; language?: string | undefined; }); params: { maxResults: number | undefined; o: string; include: string; key: string; }; get endpoint(): string; /** * @param {BingMapsForwardQuery|string} query * @returns {Promise} */ _forward(query?: BingMapsForwardQuery | string): Promise; /** * @param {BingMapsReverseQuery} query * @returns {Promise} */ _reverse(query: BingMapsReverseQuery): Promise; /** * @see https://docs.microsoft.com/en-us/bingmaps/rest-services/locations/location-data */ _formatResult(result: any): { formattedAddress: any; latitude: any; longitude: any; country: any; countryCode: any; state: any; region: any; city: any; zipcode: any; streetName: any; extra: { confidence: any; bbox: any[] | undefined; }; }; } export type fetchAdapterFn = import("../adapter.js").fetchAdapterFn; /** * see https://docs.microsoft.com/en-us/bingmaps/rest-services/locations/find-a-location-by-address */ export type BingMapsForwardQuery = { address: string; limit?: number | undefined; language?: string | undefined; }; /** * see https://docs.microsoft.com/en-us/bingmaps/rest-services/locations/find-a-location-by-point */ export type BingMapsReverseQuery = { /** * latitude */ lat: number; /** * longitude */ lng: number; limit?: number | undefined; language?: string | undefined; }; import { AbstractGeocoder } from './abstract.js';