@inelo/leaflet-control-geocoder
Version:
Extendable geocoder with builtin support for OpenStreetMap Nominatim, Bing, Google, Mapbox, MapQuest, What3Words, Photon, Pelias, HERE, Neutrino, Plus codes
20 lines (19 loc) • 888 B
TypeScript
import * as L from 'leaflet';
import { IGeocoder, GeocoderOptions, GeocodingCallback } from './api';
export interface MapQuestOptions extends GeocoderOptions {
}
/**
* Implementation of the [MapQuest Geocoding API](http://developer.mapquest.com/web/products/dev-services/geocoding-ws)
*/
export declare class MapQuest implements IGeocoder {
options: MapQuestOptions;
constructor(options?: Partial<MapQuestOptions>);
_formatName(...parts: string[]): string;
geocode(query: string, cb: GeocodingCallback, context?: any): void;
reverse(location: L.LatLngLiteral, scale: number, cb: GeocodingCallback, context?: any): void;
}
/**
* [Class factory method](https://leafletjs.com/reference.html#class-class-factories) for {@link MapQuest}
* @param options the options
*/
export declare function mapQuest(options?: Partial<MapQuestOptions>): MapQuest;