UNPKG

leaflet-control-geocoder

Version:

Extendable geocoder with builtin support for OpenStreetMap Nominatim, Bing, Google, Mapbox, MapQuest, What3Words, Photon, Pelias, HERE, Neutrino, Plus codes

23 lines (22 loc) 1.04 kB
import * as L from 'leaflet'; import { IGeocoder, GeocoderOptions, GeocodingResult } from './api'; export interface BingOptions extends GeocoderOptions { } /** * Implementation of the [Bing Locations API](https://docs.microsoft.com/en-us/bingmaps/rest-services/locations/) * * 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 declare class Bing implements IGeocoder { options: BingOptions; constructor(options?: Partial<BingOptions>); geocode(query: string): Promise<GeocodingResult[]>; reverse(location: L.LatLngLiteral, scale: number): Promise<GeocodingResult[]>; } /** * [Class factory method](https://leafletjs.com/reference.html#class-class-factories) for {@link Bing} * @param options the options */ export declare function bing(options?: Partial<BingOptions>): Bing;