Firefox 在请求中发送什么 HTML5 GeoLocation 数据?

发布于 2024-10-18 22:37:12 字数 419 浏览 2 评论 0原文

如果我的计算机连接到具有无线接入点的路由器,并且该计算机通过电缆连接,那么在使用 HTML5 时,Firefox 是否使用连接的 IP 地址或接入点的 MAC 地址发送到 GeoLocation 服务地理位置API?

看来 MAC 地址对于定位来说会更准确。

我使用 FireFox 访问 http://html5demos.com/geo 和网络嗅探器来找出 FF 是什么发送网络识别,但找不到相关数据。有什么想法吗?在 URL 或表单数据中?

补充:

答案是否可以包括由 Firefox 发送的网络嗅探器捕获的实际请求?我知道 Firefox 发送 IP 地址或 MAC 地址,但我没有看到发送任何类型的标识。

If I have a computer connected to a router which has a wireless access point and the computer is connected by a cable, does Firefox use the ip address of the connection or the MAC address of the access point to send to the GeoLocation service when using HTML5 GeoLocation API?

It seems a MAC address would be more accurate for location determination.

I used FireFox to go to http://html5demos.com/geo and a network sniffer to find out what FF is sending for network identification but I couldn't find the relevant data. Any ideas which request has it? In the URL or form data?

Addition:

Can the answer include the actual request, as captured by network sniffer, sent by Firefox? I know Firefox sends either an ip address or MAC address but I am not seeing any kind of identification being sent out.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

以歌曲疗慰 2024-10-25 22:37:12

在此 HTML5 示例中,您的地理位置永远不会发送到服务器,所有操作均在客户端完成。

geolocation :此 javascript 获取您的确切位置,带有纬度/经度

navigator.geolocation.getCurrentPosition(function() {console.log(arguments)}, function() {console.log(arguments)});

Firefox 使用 Google 定位服务根据您的公共 IP(路由器)来定位您

然后谷歌地图会在您的位置显示一个标记

var map = new google.maps.Map(document.getElementById("mapcanvas"), myOptions);

var marker = new google.maps.Marker({
    position: latlng, 
    map: map, 
    title:"You are here!"
});

In this HTML5 example, your geolocation is never sent to the server, all is done client-side.

geolocation : this javascript gets your exact position, whit latitude/longitude

navigator.geolocation.getCurrentPosition(function() {console.log(arguments)}, function() {console.log(arguments)});

Firefox use google location services to locate you based on your public IP (router).

Then google maps then display a marker at your position

var map = new google.maps.Map(document.getElementById("mapcanvas"), myOptions);

var marker = new google.maps.Marker({
    position: latlng, 
    map: map, 
    title:"You are here!"
});
自控 2024-10-25 22:37:12

Firefox 实际上会收集周围 WIFI 接入点的 MAC 地址,并将其发送到 Google 定位服务,以实现比单独使用 GeoIP 更好的定位精度。

谷歌长期以来一直使用街景汽车来收集 WIFI AP - 位置信息。

Firefox actually gathers MAC addresses of surrounding WIFI access points and send them to Google Location Services for them to achieve better location accuracy than GeoIP alone.

Google has been using StreetView cars to gather WIFI AP - location information for a long time.

樱娆 2024-10-25 22:37:12

请参阅我的回答你的另一个问题,它发送一个像这样的JSON对象:

{"version":"1.1.0","request_address":true}

它不发送你的MAC地址。 完整的 Geolocation API 网络协议记录在此处

See my answer to your other question, it sends a JSON object like this:

{"version":"1.1.0","request_address":true}

It doesn't send your MAC address. The full Geolocation API Network Protocol is documented here.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文