You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by GitBox <gi...@apache.org> on 2019/05/24 14:23:11 UTC

[GitHub] [cordova-plugin-geolocation] breautek commented on issue #155: Timestamp of getCurrentPosition wrong? (iOS 12)

breautek commented on issue #155: Timestamp of getCurrentPosition wrong? (iOS 12)
URL: https://github.com/apache/cordova-plugin-geolocation/issues/155#issuecomment-495651768
 
 
   The timestamp attached to the geolocation event reflects the time of when the event was captured. When requesting GPS point, the native SDK will return the last known good GPS point, which could be several seconds in the past. It is also entirely possible that a second GPS request could return you the same GPS location event, if the phone hasn't received an updated location event for some time.
   
   I don't think this is a bug, I think this should be the intended behaviour. In my apps I tend to use both the GPS timestamp and a timestamp of when the callback is called (using `Date.now()`) to determine how trustworthy a GPS point is.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org