为提升您的使用体验,本站正在维护,部分功能暂时无法使用。如果本站文章无法解决您的问题,您想要向社区提问的话,请到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 提问,我们的支持社区将会很快回复您的疑问。

搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

Which Google API does Firefox use to obtain the user's location?

  • 3 个回答
  • 1 人有此问题
  • 1 次查看
  • 最后回复者为 philipp

more options

Is this it?--https://developers.google.com/maps/documentation/business/geolocation/

If yes, why does Mozilla send your computer's IP address if the API does not request this? Is this so that Google knows who to send the response back to?

If no, which API / web service is used?

Which IP Address is sent and how does FireFox get this IP address?

What if no WiFi APs are available nearby. Does FireFox fall back to IP geolocation? Does it fail? What happens?

Thanks in advance!

Is this it?--https://developers.google.com/maps/documentation/business/geolocation/ If yes, why does Mozilla send your computer's IP address if the API does not request this? Is this so that Google knows who to send the response back to? If no, which API / web service is used? Which IP Address is sent and how does FireFox get this IP address? What if no WiFi APs are available nearby. Does FireFox fall back to IP geolocation? Does it fail? What happens? Thanks in advance!

所有回复 (3)

more options

hello jspechts, yes currently firefox is using google's location service for this purpose - for more details how the submitted data is used, please refer to its privacy policy: http://www.google.com/privacy/lsf.html

mozilla is also working on a crowd-sourced geolocation database/service, more details are available at https://location.services.mozilla.com. it's still in quite an early state, but if you want to test-run it in firefox you could enter about:config into the address bar, search for a preference named geo.wifi.uri, double-click it and change its value to https://location.services.mozilla.com/v1/geolocate.

more options

Hi philipp,

Thank you for the fast reply.

So I understand now the Google location search API that Firefox uses. How about my other questions above:

1. Which IP Address is sent and how does FireFox get this IP address?

2. What if no WiFi APs are available nearby. Does FireFox fall back to IP geolocation? Does it fail? What happens?

Could you help me or point me to resources that can help me?

Thanks!

more options

hello, i couldn't find any documentation on that particular subject, but the IP address is named as one of the common network sources that are used to derive a location from in the geolocation API standard: http://www.w3.org/TR/geolocation-API/

however i'm fairly sure that firefox won't collect your ip especially for this purpose - due to how the web works it's intrinsic that every connection your computer establishes over the internet also reveals your public-facing ip address (http://myip.dk/). i presume in case no wifi or cell data is submitted to google through the geolocation request, google matches this ip against some internal database and returns a rough location anyway...