Photos: Create an instance to deal with photo files that has getGPS...

View source: R/Photos.R

PhotosR Documentation

Create an instance to deal with photo files that has getGPS method to extract GPS locations of photos

Description

Create an instance to deal with photo files that has getGPS method to extract GPS locations of photos

Usage

Photos(path)

Arguments

path

a character of either local path or an url linked to a Google drive folder.

Value

an instance that has getGPS method.

Examples

\donntrun{
# If supplied a Google Drive folder url:
folderUrl = "https://drive.google.com/drive/u/0/folders/1ldcrE5XGgN96qImQ7oYslTQCG2ccohNd"
folderUrl |> Photos() -> ph
ph$getGPS() -> dfMeta
# or
ph$getGPS(deauth=F) -> dfMeta # if require Google authentication.

# If supplied a local path (must install exiftool first, may only work for MacOS)
folderPath = "./photos"
folderPath |> Photos() -> ph2
ph2$getGPS() -> dfMeta2
}

tpemartin/econDV2 documentation built on Aug. 6, 2023, 11:46 p.m.