ret = static_cast<location_error_e>(location_manager_get_velocity(ewkGeolocationProvider->locationManager(), &climb, &direction, &speed, &velocityTimestamp));
if (ret != LOCATIONS_ERROR_NONE)
TIZEN_LOGE("location_manager_get_velocity error(0x%08x)", ret);
+
if (speed)
speed = speed * 5.0 / 18.0;
else
direction = std::numeric_limits<double>::quiet_NaN();
+ if (vertical < 0)
+ vertical = 0;
WKRetainPtr<WKGeolocationPositionRef> position(AdoptWK, WKGeolocationPositionCreate_b(timestamp, latitude, longitude, horizontal, true, altitude, true, vertical, true, direction, true, speed));
WKGeolocationManagerProviderDidChangePosition(ewkGeolocationProvider->wkGeolocationManager(), position.get());