mirror of
https://github.com/Art051/immich.git
synced 2025-08-11 19:29:00 +00:00
* feat: reverse geocoding settings * chore: open api * re-init geocoder if precision has been updated * update docs * chore: update verbiage * fix: re-init logic * fix: reset to default --------- Co-authored-by: Jason Rasmussen <jrasm91@gmail.com>
21 lines
498 B
TypeScript
21 lines
498 B
TypeScript
import { InitOptions } from 'local-reverse-geocoder';
|
|
|
|
export const IGeocodingRepository = 'IGeocodingRepository';
|
|
|
|
export interface GeoPoint {
|
|
latitude: number;
|
|
longitude: number;
|
|
}
|
|
|
|
export interface ReverseGeocodeResult {
|
|
country: string | null;
|
|
state: string | null;
|
|
city: string | null;
|
|
}
|
|
|
|
export interface IGeocodingRepository {
|
|
init(options: Partial<InitOptions>): Promise<void>;
|
|
reverseGeocode(point: GeoPoint): Promise<ReverseGeocodeResult>;
|
|
deleteCache(): Promise<void>;
|
|
}
|