在Visual Studio 2017的UWP C ++应用程序中,我有:
Geolocator^ geolocator = ref new Geolocator();
task<Geoposition^> geopositionTask = create_task(geolocator->GetGeopositionAsync());
geopositionTask.then([this](Geoposition^ place)
{
double la = place->Coordinate->Point->Position.Latitude;
double lo = place->Coordinate->Point->Position.Longitude;
}
我可以从默认值中提高准确度吗?
答案 0 :(得分:1)
您可以配置Geolocator对象的DesiredAccuracy property:
Geolocator^ geolocator = ref new Geolocator();
geolocator->DesiredAccuracy = PositionAccuracy::High;