From 5d7fcd9b1e5295be1444d9412efe225e2ed84519 Mon Sep 17 00:00:00 2001 From: Matthew McEachen Date: Sat, 1 Jun 2024 11:18:08 -0700 Subject: [PATCH] Add new Geolocation tags --- src/GeolocationTags.ts | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/GeolocationTags.ts b/src/GeolocationTags.ts index cda0e1ee..a759023f 100644 --- a/src/GeolocationTags.ts +++ b/src/GeolocationTags.ts @@ -7,11 +7,13 @@ export const GeolocationTagNames = keysOf({ GeolocationCountryCode: true, GeolocationDistance: true, GeolocationFeatureCode: true, + GeolocationFeatureType: true, GeolocationPopulation: true, GeolocationPosition: true, GeolocationRegion: true, GeolocationSubregion: true, GeolocationTimeZone: true, + GeolocationWarning: true, }) /** @@ -23,8 +25,8 @@ export function isGeolocationTag(name: string): name is keyof GeolocationTags { } /** - * These tags are only available if {@link ExifToolOptions.geolocation} is true and the file - * has valid GPS location data. + * These tags are only available if {@link ExifToolOptions.geolocation} is true + * and the file has valid GPS location data. * * @see https://exiftool.org/geolocation.html#Read */ @@ -39,10 +41,13 @@ export interface GeolocationTags { GeolocationCountryCode?: string /** ☆☆☆☆ ✔ Example: "9.60 km" */ GeolocationDistance?: string - /** ☆☆☆☆ ✔ Example: "PPLL" + /** + * ☆☆☆☆ ✔ Example: "PPLL" * @see http://www.geonames.org/export/codes.html#P */ GeolocationFeatureCode?: string + /** ☆☆☆☆ ✔ Example: "Populated Place" */ + GeolocationFeatureType?: string /** ☆☆☆☆ ✔ Example: 95000 */ GeolocationPopulation?: number /** ☆☆☆☆ ✔ Example: "7.3397, 134.4733" */ @@ -58,4 +63,5 @@ export interface GeolocationTags { * @see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones */ GeolocationTimeZone?: string + GeolocationWarning?: string }