@paraboly/react-osm-geocoding
Version:
Find address locations via OSM Nominatim
27 lines (26 loc) • 736 B
TypeScript
/// <reference types="react" />
interface Props {
placeholder?: string;
debounce?: number;
iconUrl?: string;
callback?: Function;
city?: string;
countrycodes?: string;
acceptLanguage?: string;
viewbox?: string;
}
export interface Result {
boundingbox: Array<string>;
display_name: string;
lat: string;
lon: string;
}
export declare class debouncedMethod<T> {
constructor(method: T, debounceTime: number);
private _method;
private _timeout;
private _debounceTime;
invoke: T;
}
export declare const ReactOsmGeocoding: ({ placeholder, debounce, iconUrl, callback, city, countrycodes, acceptLanguage, viewbox }: Props) => JSX.Element;
export {};