matcher/src/modules/geography/adapters/secondaries/geo-timezone-finder.ts

9 lines
309 B
TypeScript
Raw Normal View History

import { Injectable } from '@nestjs/common';
import { IFindTimezone } from '../../domain/interfaces/timezone-finder.interface';
import { find } from 'geo-tz';
@Injectable()
export class GeoTimezoneFinder implements IFindTimezone {
timezones = (lon: number, lat: number): Array<string> => find(lat, lon);
}