utils/ts-src/latLong.ts
Martin Donnelly c30b36b3f6 init
2020-11-17 11:16:34 +00:00

17 lines
279 B
TypeScript

/**
* Calculate the distance between two latLongs
* @param lat1
* @param lon1
* @param lat2
* @param lon2
* @returns {number}
*/
export class LatLong {
lat: number;
long: number;
constructor(lat:number, long:number) {
this.lat = lat;
this.long = long;
}
}