I'm new at iOS code so hopefully this isn't terribly difficult. I have a couple apps using position information that are working. However, I have things set up so the screen data is refreshed each time "LocationsUpdated" occurs. I also have a filter so that inaccurate positions are not used. This works pretty well while moving but if the device is stationary, the accuracy value on screen doesn't get updated until the position changes.
Is there any way to view the RIGHT NOW accuracy of the GPS position even if the position from the last location hasn't changed? I would expect there to be a different keyword than "LocationsUpdated" for something like this but I haven't found one.
Judging from my previous experience with using iOS devices, on the native maps app, even when they're stationary, the accuracy circle continues to resize until it gets a maximum accuracy position. I suspect I can access this for my own code as well.
This is my current code:
public class MyDelegate : CLLocationManagerDelegate
{
ViewController _parent = null;
public MyDelegate(ViewController parent)
{
_parent = parent;
}
public override void LocationsUpdated(CLLocationManager manager, CLLocation[] locations)
{
_parent.UpdateLabels(locations[(locations.Length - 1)]);
}
public override void UpdatedLocation(CLLocationManager manager, CLLocation newLocation, CLLocation oldLocation)
{
_parent.UpdateLabels(newLocation);
}
}