Location Data Google Photos API

后端 未结 4 1020
北荒
北荒 2021-01-01 18:13

When I query a photo in Google photos via the API, it doesn\'t return any location data that is associated with the image. I can see the location on the map when I view the

相关标签:
4条回答
  • 2021-01-01 18:47

    I solved that by using Google Drive sync. See my Android Application: https://play.google.com/store/apps/details?id=com.levionsoftware.photo_map_for_google_photos

    My App has been approved and works very well, but it's annoying that they don't open the door. In many cases it wouldn't work as I did. And at the end it's only a workaround... EDIT: Some are having problems with that, because not all photos are synced to Google Drive...

    0 讨论(0)
  • 2021-01-01 18:51

    Even though the PHP wrapper for this class includes the location fields it appears that the Google API is not currently populating this object. In the documentation for the mediaItems resource the field location states "Not yet available".

    You can use the Google Drive API to get the location data though of a photo.

    There is a ticket raised to track this feature implementation.

    0 讨论(0)
  • 2021-01-01 18:58

    It appears that Google has no intention of sharing photos location.

    The location field used to appear in the MediaMetadata fields as not yet available, but any reference in the Google Photos API, after release, was removed except for the docs about downloading an image, where it's stated: "If you want to download the image retaining all the EXIF metadata except the location metadata, concatenate the base URL with the d parameter".

    0 讨论(0)
  • 2021-01-01 19:02

    I agree that it looks like Google don't want to provide this.

    You can star this bug in their tracker to upvote the issue https://issuetracker.google.com/issues/80379228 but it has not yet got any response from Google.

    0 讨论(0)
提交回复
热议问题