Files
opensprinkler-weather/routes/geocoders/Geocoder.ts
2020-06-06 14:17:52 -04:00

12 lines
394 B
TypeScript

import { GeoCoordinates } from "../../types";
export abstract class Geocoder {
/**
* Converts a location name to geographic coordinates.
* @param location A location name.
* @return A Promise that will be resolved with the GeoCoordinates of the specified location, or rejected with a
* CodedError.
*/
public abstract geocodeLocation( location: string ): Promise<GeoCoordinates>;
}