X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=include%2Flocations.h;h=20cc8c86e7c6fed9da423a1e06b999ee186ac736;hb=7017c97cd09492775ebe27d2b8923f89503952b7;hp=5a121beb36c4c9a59d17dad210875158f107a68a;hpb=627ba8a926da5fe6767c1d25f35ddba5282a7e82;p=platform%2Fcore%2Fapi%2Flocation-manager.git diff --git a/include/locations.h b/include/locations.h index 5a121be..20cc8c8 100755 --- a/include/locations.h +++ b/include/locations.h @@ -607,7 +607,6 @@ int location_manager_get_location(location_manager_h manager, double *altitude, */ int location_manager_get_velocity(location_manager_h manager, double *climb, double *direction, double *speed, time_t *timestamp); - /** * @brief Gets the current accuracy information. * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif @@ -629,6 +628,24 @@ int location_manager_get_velocity(location_manager_h manager, double *climb, dou */ int location_manager_get_accuracy(location_manager_h manager, location_accuracy_level_e *level, double *horizontal, double *vertical); +/** + * @brief Gets the current velocity accuracy information. + * @since_tizen @6.0 + * @privlevel public + * @privilege %http://tizen.org/privilege/location + * @param[in] manager The location manager handle + * @param[out] velocity_accuracy The velocity accuracy (m/s) + * @return @c 0 on success, + * otherwise a negative error value + * @retval #LOCATIONS_ERROR_NONE Successful + * @retval #LOCATIONS_ERROR_INVALID_PARAMETER Invalid argument + * @retval #LOCATIONS_ERROR_SERVICE_NOT_AVAILABLE Service not available + * @retval #LOCATIONS_ERROR_GPS_SETTING_OFF GPS is not enabled + * @retval #LOCATIONS_ERROR_ACCESSIBILITY_NOT_ALLOWED The application does not have the privilege to call this method + * @retval #LOCATIONS_ERROR_NOT_SUPPORTED Not supported + * @pre The location service state must be #LOCATIONS_SERVICE_ENABLED with location_manager_start(). + */ +int location_manager_get_velocity_accuracy(location_manager_h manager, double *velocity_accuracy); /** * @brief Gets the last position information which is recorded.