地理定位:Geolocator与navigator.geolocation [英] Geolocation: Geolocator vs navigator.geolocation

查看:189
本文介绍了地理定位:Geolocator与navigator.geolocation的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好。

我已经开始关注geocation api,我想知道你对获取当前位置的看法。有没有Geolocator对象给我的东西,我无法从地理定位浏览器api(navigator.geolocation)获得?乍一看,
似乎他们都做同样的事情,所以我不确定团队为什么不重用我们从浏览器中获得的API ...

I've started looking at the geocation api and I'd like to know your opinion about getting the current location. Is there anything which the Geolocator object gives me that I can't get from the geolocation browser api (navigator.geolocation)? At first sight, it seem like they both do the same thing, so I'm not sure on why the team didn't reuse the API we had from the browser...

谢谢。

Luis Abreu

Luis Abreu

推荐答案

你好Luis,

Hi Luis,

他们应该给你同样的东西。 请记住,WinRT API适用于所有Metro风格的应用语言。 对于.NET和JS,投影是相同的,这就是你在JS中看到它们的原因。

They should give you the same thing.  Remember that the WinRT API is used across all Metro style app languages.  The projection is the same for .NET and JS and that is why you see both in JS.

-Jeff


这篇关于地理定位:Geolocator与navigator.geolocation的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆