Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GPS Timestamp in Position #98

Closed
2 tasks done
gmcdowell opened this issue Sep 10, 2018 · 5 comments · Fixed by #99
Closed
2 tasks done

GPS Timestamp in Position #98

gmcdowell opened this issue Sep 10, 2018 · 5 comments · Fixed by #99
Assignees
Milestone

Comments

@gmcdowell
Copy link

🚀 Feature Requests

Would love to see the DateTimestamp included in the Position object to assist with determining age of record.

Contextualize the feature

GPS co-ordinates generally includes this value, and hence we believe it is relevant and useful.

Describe the feature

Hopefully it is a matter of including it when the 'position' object is created as part of the call to the device to generate the 'current location'

Platforms affected (mark all that apply)

  • 📱 iOS
  • 🤖 Android

Nice plugin btw ;)

@mvanbeusekom mvanbeusekom self-assigned this Sep 10, 2018
@mvanbeusekom mvanbeusekom added this to the 1.6.6 milestone Sep 10, 2018
@mvanbeusekom
Copy link
Member

Hi @gmcdowell, thank you very much for reporting this feature.

I have just release version 1.7.0 of the Geolocator plugin which now contains a timestamp as part of the Position class.

@gmcdowell
Copy link
Author

gmcdowell commented Sep 10, 2018 via email

@r3a1d3a1
Copy link

Just to be clear, is the timestamp obtained from the device, the internet, or from the satellites?

@mvanbeusekom
Copy link
Member

@r3a1d3a1 on iOS and Android it is retrieved from the CLLocation or Location object returned by the platform.

On Linux the GeoClue library is used, if it returns a timestamp that is passed along otherwise the DateTime.now() is used.
On Windows we return the timestamp of the Location object returned by the winrt Windows.Devices.Geolocation library.
On Web the timestamp provided from the GeolocationPosition object is being returned.

@r3a1d3a1
Copy link

Thank you very much. As for Android, interpreting the doc was akin to a legal document!
I wasn't able to figure out if the time is from the satellites or the device. I'm guessing the latter, but care to decipher?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants