Difference between revisions of "Truxton media get latitude"
Jump to navigation
Jump to search
(→Sample) |
|||
| Line 16: | Line 16: | ||
=Sample= | =Sample= | ||
<source lang="C" highlight="3"> | <source lang="C" highlight="3"> | ||
| − | void has_location(uint64_t media) | + | void has_location( uint64_t media ) |
{ | { | ||
double latitude = truxton_media_get_latitude( media ); | double latitude = truxton_media_get_latitude( media ); | ||
Revision as of 06:43, 10 February 2021
This retrieves the latitude portion of the WGS84 coordinates of where the media was seized.
This corresponds to the [Latitude] column of the [Media] table.
Syntax
double truxton_media_get_latitude( uint64_t media_handle );
Parameters
media_handle
The handle created by the truxton_media_open_id or truxton_media_create call.
Return value
The latitude portion of the geographic coordinate using the WGS84 ellipsoid of where this media was seized.
Sample
void has_location( uint64_t media )
{
double latitude = truxton_media_get_latitude( media );
double longitude = truxton_media_get_longitude( media );
if ( latitude != 0.0 && longitude != 0.0 )
{
printf( "The media was seized somewhere\n" );
}
else
{
printf( "We don't know where this media came from\n" );
}
}