是否有可能从GPS定位请求获得实时,而不是系统时间(因为这是可以更改的)?
看上去
Geoposition.Coordinate.Timestamp是系统时间,请参见此处:http://msdn.microsoft.com/en-us/library/windows/apps/windows.devices.geolocation.geocoordinate.aspx
时间戳只读-确定位置的系统时间。
我知道我可以使用NTP服务器,但是如果我没有数据连接呢?
谢谢
史蒂夫
我想我只需要一个明确的答案,看看是否有可能直接从卫星上得到时间。
发布于 2014-09-08 10:51:55
我瞎了。
供以后参考,您可以在8.1。
http://msdn.microsoft.com/en-us/library/windows/apps/windows.devices.geolocation.geocoordinate.aspx
请参阅PositionSource
PositionSourceTimestamp只读获取计算相关地理坐标位置的时间。
http://blogs.msdn.com/b/thunbrynt/archive/2014/04/22/windows-phone-8-1-for-developers-geolocation-and-geofencing.aspx
从上述链接:
在windows 8.0中,我们有两个内容几乎相同的名称空间,旧的System.Device.Location和新的Windows.Devices.Geolocation。在8.1中,只剩下了Windows.Devices.Geolocation。如果你想用System.Device.Location更新旧的应用程序,互联网上有大量的信息。8.0MapAPI使用System.Device.Location.GeoCoordinate,但8.1现在使用Windows.Devices.Geolocation.Geopoint。在我之前的博客中有更多的内容:面向开发人员的Windows 8.1 - Windows.Devices.Geolocation中唯一的其他更改是另外两个类和Geo坐标系上的一个额外属性:
最后一个要点是有用的。
谢谢
史蒂夫
https://stackoverflow.com/questions/25721223
复制相似问题