开发者

How do I use the Google Maps API GPS sensor?

All I've been able to find is how to specify the sensor parameter:

http://code.google.com/apis/maps/documentation/v3/#SpecifyingSensor

But nowhere does it say how to actually USE it. Isn't the whole point to be able to get the user's current lat/long coordinat开发者_运维问答es through the device GPS, or am I mistaken?


That sensor parameter is only there to indicate to Google that you are using a GPS sensor to determine the user's location.

Unless using the W3C Geolocation API in browsers that support it, it remains your responsibility to get the latitude and longitude from your GPS device to the user's browser.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜