camera_set_geolocation()
Set or clear the geolocation data for photo metadata.
Synopsis:
#include <camera/camera_api.h>
camera_error_t camera_set_geolocation(camera_handle_t handle, double latitude, double longitude, double altitude, bool valid)
Arguments:
- handle
-
The handle returned by a call to the camera_open() function.
- latitude
-
The desired latitude in degrees.
- longitude
-
The desired longitude in degrees.
- altitude
-
The desired altitude in meters.
- valid
-
A flag that sets or clears the geolocation data. Set to true to set the data, set to false to clear the data.
Library:
libcamapiDescription:
Use this function to specify or remove geolocation metadata to your images.
Returns:
CAMERA_EOK when the function successfully completes, otherwise another camera_error_t value that provides the reason that the call failed.