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

9 lines
304 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 {
2023-04-26 12:14:46 +00:00
timezones = (lon: number, lat: number): string[] => find(lat, lon);
}