UNPKG

@inelo/leaflet-control-geocoder

Version:

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

21 lines (20 loc) 906 B
import * as L from 'leaflet'; import { IGeocoder, GeocoderOptions, GeocodingCallback } from './api'; export interface NeutrinoOptions extends GeocoderOptions { userId: string; } /** * Implementation of the [Neutrino API](https://www.neutrinoapi.com/api/geocode-address/) */ export declare class Neutrino implements IGeocoder { options: NeutrinoOptions; constructor(options?: Partial<NeutrinoOptions>); geocode(query: string, cb: GeocodingCallback, context?: any): void; suggest(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 Neutrino} * @param options the options */ export declare function neutrino(options?: Partial<NeutrinoOptions>): Neutrino;