Skip to content

Commit

Permalink
Add new Geolocation tags
Browse files Browse the repository at this point in the history
  • Loading branch information
mceachen committed Jun 1, 2024
1 parent 2c5931d commit 5d7fcd9
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions src/GeolocationTags.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,13 @@ export const GeolocationTagNames = keysOf<GeolocationTags>({
GeolocationCountryCode: true,
GeolocationDistance: true,
GeolocationFeatureCode: true,
GeolocationFeatureType: true,
GeolocationPopulation: true,
GeolocationPosition: true,
GeolocationRegion: true,
GeolocationSubregion: true,
GeolocationTimeZone: true,
GeolocationWarning: true,
})

/**
Expand All @@ -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
*/
Expand All @@ -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" */
Expand All @@ -58,4 +63,5 @@ export interface GeolocationTags {
* @see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
*/
GeolocationTimeZone?: string
GeolocationWarning?: string
}

0 comments on commit 5d7fcd9

Please sign in to comment.