accuracy of Ti.Geolocation.getCurrentPosition?
for some reason, no matter where I go, when I get my current position and map it, I appear to be a few miles off of where I really am. Somehow, though, the 'blue dot' shows up at my true location.
What gives? Is there some fancy math I need to do to the coordinates returned from getCurrentLocation?
The code I'm using is basically exactly the same as that in the geolocation sample from KitchenSink
3 Answers
-
not exctly an answer to your question, but it seems to me that getting the position once with Ti.Geolocation.getCurrentPosition() uses values from a cache. on my phone, it doesn't switch on the GPS, i have to add a location listener, which gives higher precision quickly.
on the other hand, when using only the listener without the getCurrentPosition(), it doesn't add the location capabilities to the app at all. so, you'll have to do it like in the kitchen sink examples. maybe that's phone dependand, don't know. -
getCurrentPosition()'s requirement is to not turn on the radios, so it's the last known location.
-
yea, ive noticed this as well.