在Raspberry Pi 2上使用地理位置服务 [英] Using Geo location services on Raspberry Pi 2
问题描述
我试图在C#应用程序中使用Geolocator API处理Raspberry Pi。
I have tried to get the Geolocator API working on the Raspberry Pi, in an C# app.
我声明了< DeviceCapability Name =" location" />在清单中,但仍然是Geolocators方法GetGeopositionAsync方法失败,Access拒绝。如果我在请求位置之前将调用添加到Geolocator.RequestAccessAsync,则调用失败的
。
I have declared <DeviceCapability Name="location" /> in the manifest, but still the Geolocators method GetGeopositionAsync method fails with an Access denied. If I add the call to Geolocator.RequestAccessAsync before requesting position, that call fails instead.
Windows IoT是否支持位置服务?
Is location services supported on Windows IoT ?
是否有要配置的配置文件或注册表设置,以允许获取位置?
Is there a config file or registry setting to configure, to allow location to be fetched?
要求用户确实不是无头应用程序的选项。
Asking the user really isn't an option for headless applications.
我没有附加GPS,但是假设它会使用IP地址给我一个估计位置。
I don't have a GPS attached, but assumed that it would give me an estimated position using the IP-address.
推荐答案
我正在研究这个问题,一旦得到更好的答案就会让你知道。 API可能位于Universal Apps的"当前不受支持"列表中,但一旦我了解更多信息,我就会通知你。
I'm looking into this and will let you know once I have a better answer. It's possible that the API should be in the 'currently unsupported' list for Universal Apps, but once I know more I'll let you know.
这篇关于在Raspberry Pi 2上使用地理位置服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!