1

在 EXIF 元数据 GPS 模式中,有两个地方可以存储 GPS 数据:

#1-4 纬度、纬度参考、经度和经度参考

#19-23 DestLatitude、DestLatitudeRef、DestLongitude 和 DestLongitudeRef

理论上,第一个是照片的拍摄地点,所以 iPhone 会填充这些数据。第二个是照片中物体的坐标。所以如果你在威斯敏斯特桥上拍摄伦敦眼的照片,你会有两个稍微不同的值。

有谁知道这些属性是否被接受?

具体来说,只有当您有来自相机或外部记录器的 GPS 数据时,才应该设置纬度,所以这可以被认为是可选的?但是 DestLatitude 总是设置在任何组织良好的照片集上?

4

1 回答 1

0

第二个称为“目的地点”。
您可以在W3 exif中看到以 gps 为前缀的那些,这表明它仅在您记录相对于固定目标点的位置时才有意义。

您可以看到该字段用于tomchentw/react-google-maps例如:

withScriptjs, withGoogleMap,
    lifecycle({
        componentDidMount() {
            this.setState({
                onDirectionChange: () => {
                    const DirectionsService = new google.maps.DirectionsService();
                    DirectionsService.route({
                        origin: new google.maps.LatLng(this.props.latitude, this.props.longitude),
                        destination: new google.maps.LatLng(this.props.destLatitude, this.props.destLongitude),
                        travelMode: google.maps.TravelMode.DRIVING,
                    }, (result, status) => {
                        if (status === google.maps.DirectionsStatus.OK) {
                            this.setState({
                                directions: result
                        });
                    } else {
                        console.error(`error fetching directions ${result}`);
                    }
                    });
                }
            });
            const DirectionsService = new google.maps.DirectionsService();

在这种情况下,这是调用 Google Map 以启动行程计算。

于 2021-08-17T07:26:54.810 回答