import * as L from 'leaflet'; import { IGeocoder, GeocoderOptions, GeocodingResult } from './api'; export interface PhotonOptions extends GeocoderOptions { reverseUrl: string; nameProperties: string[]; htmlTemplate?: (r: any) => string; } /** * Implementation of the [Photon](http://photon.komoot.de/) geocoder */ export declare class Photon implements IGeocoder { options: PhotonOptions; constructor(options?: Partial); geocode(query: string): Promise; suggest(query: string): Promise; reverse(latLng: L.LatLngLiteral, scale: number): Promise; _parseResults(data: GeoJSON.FeatureCollection): GeocodingResult[]; _decodeFeatureName(f: GeoJSON.Feature): string; } /** * [Class factory method](https://leafletjs.com/reference.html#class-class-factories) for {@link Photon} * @param options the options */ export declare function photon(options?: Partial): Photon; /** * @internal */ export type PhotonResponse = GeoJSON.FeatureCollection; interface PhotonProperties { osm_id: number; osm_type: string; extent?: number[]; country: string; osm_key: string; city: string; countrycode: string; osm_value: string; name: string; state: string; type: string; postcode?: string; housenumber?: string; street?: string; district?: string; } export {};