static void ewkGeolocationPositionChangedCallback(double latitude, double longitude, double altitude, time_t timestamp, void* user_data)
{
- TIZEN_LOGI("latitude(%d) longitude(%d) altitude(%d)", latitude, longitude, altitude);
Ewk_Geolocation* ewkGeolocation = static_cast<Ewk_Geolocation*>(user_data);
if(!timestamp || !ewkGeolocation)
return;
double vertical;
location_manager_get_last_accuracy(ewkGeolocation->locationManager, &level, &horizontal, &vertical);
+ TIZEN_LOGI("latitude(%lf) longitude(%lf) altitude(%lf) horizontal(%lf) vertical(%lf)", latitude, longitude, altitude, horizontal, vertical);
WKRetainPtr<WKGeolocationPositionRef> position(AdoptWK, WKGeolocationPositionCreate(timestamp, latitude, longitude, horizontal));
WKGeolocationManagerProviderDidChangePosition(ewkGeolocation->geolocationManager.get(), position.get());