位置数据Google Photos API [英] Location Data Google Photos API

查看:61
本文介绍了位置数据Google Photos API的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我通过API查询Google照片中的照片时,它不会返回与该图像相关联的任何位置数据.当我在Google相册中查看有关图片的信息时,可以在地图上看到该位置,但是API并没有为我提供这些坐标.

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 information about the image in Google Photos, however the API doesn't give me these coordinates.

[mediaMetadata] => Google_Service_PhotosLibrary_MediaMetadata Object
        (
            [creationTime] => 2018-07-13T13:20:38Z
            [height] => 4032
            [photoType:protected] => Google_Service_PhotosLibrary_Photo
            [photoDataType:protected] => 
            [videoType:protected] => Google_Service_PhotosLibrary_Video
            [videoDataType:protected] => 
            [width] => 3024
            [internal_gapi_mappings:protected] => Array
                (
                )

            [modelData:protected] => Array
                (
                )

            [processed:protected] => Array
                (
                )

            [photo] => Google_Service_PhotosLibrary_Photo Object
                (
                    [apertureFNumber] => 1.8
                    [cameraMake] => Apple
                    [cameraModel] => iPhone 8
                    [exposureTime] => 
                    [focalLength] => 3.99
                    [isoEquivalent] => 50
                    [internal_gapi_mappings:protected] => Array
                        (
                        )

                    [modelData:protected] => Array
                        (
                        )

                    [processed:protected] => Array
                        (
                        )

                )

        )

推荐答案

Google似乎无意共享照片位置.

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

位置"字段曾经显示在MediaMetadata字段中,但尚不可用,但是在发布后,除

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".

这篇关于位置数据Google Photos API的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆