第二个被称为“目的地点”。
您可以在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 以启动行程计算。