alangrainger / obsidian-google-photos

Connect to Google Photos from Obsidian
GNU General Public License v3.0
93 stars 5 forks source link

[FR] Add photo location (or other EXIF data) to note frontmatter #32

Closed Kageetai closed 2 months ago

Kageetai commented 10 months ago

Hey, I mostly use this plugin with my journal entries, and was wondering whether it's possible to use a feature I often saw in other journal apps, meaning when adding a photo, it takes the location data (and optionally maybe time) from that photo and adds it to the metadata/frontmatter of that note. Would that be possible/feasible here as well?

alangrainger commented 10 months ago

Interesting idea, how would that work with multiple photos in a journal entry?

Kageetai commented 10 months ago

Maybe if there is already location data in the frontmatter present, prompt the user whether to overwrite it? Or a toggle in the settings to always overwrite or noTt!

Kageetai commented 10 months ago

Just found this plugin, that kinda solves a similar use case, but would still be nice to be able to extract it automatically. And this Geocoding Properties also allows overriding existing properties...

alangrainger commented 2 months ago

Hi @Kageetai it turns out that Google does not provide location data from their Photos API, so sadly this can't be done:

https://developers.google.com/photos/library/reference/rest/v1/mediaItems

Kageetai commented 2 months ago

Too bad, but thanks for checking and such