Edit: Originally my question was “Why am I getting different lat and longitude readings at same exact spot when I query locationservices?” I have changed it now that I understand more about the issue.
I am using the script from Unity - Scripting API: LocationService.Start . The only pertinent difference is I have commented out the first yield statement because it prevents the service from starting at all on iOS >= 10.3.1 as far as I can tell. I call the script from other scripts when things happen, like when the user taps a button. I also call it in one of the scripts’ Awake() method to make sure iOS asks for the location permission when the app is first run. I call the script like so:
public string location = "not-yet-set location" ;
TestLocationService tls;
TestLocationService TLS = GetComponent<TestLocationService> ();
tls = TLS;
location = tls.locationString;
// (locationString is a concatenation of lat and lon in my TestLocationService script.)
The problem I am having is every time I open the app in the exact same location (at my desk) I get different readings. But if I move down the street, beyond the default 10 meters laterally, I still get the same reading from when I started the app.
What am I doing wrong?
Thanks!