geo: get function for timestamp of map projection

This commit is contained in:
Thomas Gubler
2014-04-24 17:13:06 +02:00
parent 618ac319e6
commit b249d04e52
2 changed files with 12 additions and 0 deletions
+5
View File
@@ -62,6 +62,11 @@ __EXPORT bool map_projection_inited()
return mp_ref.init_done;
}
__EXPORT uint64_t map_projection_timestamp()
{
return mp_ref.timestamp;
}
__EXPORT void map_projection_init(double lat_0, double lon_0) //lat_0, lon_0 are expected to be in correct format: -> 47.1234567 and not 471234567
{
mp_ref.lat = lat_0 / 180.0 * M_PI;
+7
View File
@@ -81,6 +81,13 @@ struct map_projection_reference_s {
*/
__EXPORT bool map_projection_inited();
/**
* Initializes the map transformation.
* @return the timestamp of the map_projection
*/
__EXPORT uint64_t map_projection_timestamp();
/**
* Initializes the map transformation.
*