import { LocationGeocode } from "stentor-models"; import { FetchService } from "stentor-service-fetch"; export interface LocationServiceOptions { apikey: string; urlbase?: string; } export interface LocationServiceInterface { apikey: string; urlbase: string; getGeocode(address: string): Promise; } /** * Service to transform a location into lat/long coordinates via Google Maps' API * * * @export * @class LocationService */ export default class LocationService extends FetchService implements LocationServiceInterface { readonly apikey: string; readonly urlbase: string; constructor(options: LocationServiceOptions); getGeocode(address: string): Promise; }