UNPKG

@goparrot/geocoder

Version:

TypeScript GeoCoder, node geocoding library, supports google maps, mapquest, here, open street map, tom tom

10 lines (9 loc) 503 B
import type { Location, Suggestion } from '../model'; import type { GeocodeQueryInterface } from './geocode-query.interface'; import type { ReverseQueryInterface } from './reverse-query.interface'; import type { SuggestQueryInterface } from './suggest-query.interface'; export interface GeocoderInterface { geocode(query: GeocodeQueryInterface): Promise<Location[]>; reverse(query: ReverseQueryInterface): Promise<Location[]>; suggest(query: SuggestQueryInterface): Promise<Suggestion[]>; }