Mozilla Location Service

{{short description|Open geolocation service}}

{{Infobox website

| name = Mozilla Location Service

| logo =

| logocaption =

| screenshot =

| caption =

| collapsible =

| collapsetext =

| url = {{Official}}

| commercial = No

| type = Collaborative cell spotting

| registration =

| language = English

| num_users =

| content_license = [https://creativecommons.org/publicdomain/zero/1.0/ {{abbr|CC0 1.0 Universal |CC0 1.0 Universal}}]

| country_of_origin =

| owner = Mozilla

| author =

| editor =

| launch_date = {{Start date and age|2013|df=yes}}

| revenue =

| alexa =

| current_status = Close

| footnotes =

}}

Mozilla Location Service (MLS) was an open geolocation service that allowed devices to find their position by processing received signals of publicly observable radio transmitters: cellular network antennae (and their Cell IDs), Wi-Fi access points (and their BSSIDs), and Bluetooth beacons.{{cite web|title=Mozilla's Location Service pilot project provides geolocation lookups based on public cell tower and WiFi data|url=https://thenextweb.com/insider/2013/10/28/mozillas-location-service-pilot-project-provides-geolocation-lookups-based-public-cell-tower-wifi-data/|publisher=The Next Web |date=2013-10-28|accessdate=25 June 2015}}{{Cite web |title=MLS - Overview |url=https://location.services.mozilla.com/ |access-date=2022-11-14 |website=location.services.mozilla.com}} The service was provided by Mozilla from 2013 to 2024.{{cite web|title=Combain Provides Cell-ID and WiFi Positioning to Mozilla (Podcast)|url=http://www.gpsbusinessnews.com/Combain-Provides-Cell-ID-and-WiFi-Positioning-to-Mozilla-Podcast_a5344.html|publisher=GPS Business News |date=2015-03-10 |accessdate=25 June 2015}} The service used Mozilla's open source software project called Ichnaea.{{Citation |title=mozilla/ichnaea |date=2022-11-13 |url=https://github.com/mozilla/ichnaea |publisher=Mozilla |access-date=2022-11-13}}

In February 2019, MLS had collected more than 44.43 million unique cell networks and 1450 million unique WiFi networks[https://location.services.mozilla.com/stats MLS stats], accessed February 2019 (April 2018: 37.7 million UCN and 1145 million UWN,[https://location.services.mozilla.com/stats MLS stats], accessed April 2018 November 2016: 28 million UCN and 757 million UWN,[https://location.services.mozilla.com/stats MLS stats], accessed November 2016 November 2015: 17 million UCN and 427 million UWN[https://location.services.mozilla.com/stats MLS stats], accessed November 2015).

In March 2024, it was announced that MLS would be retired and that functionality will be reduced in stages until the project is archived in July. {{Cite web |date=2024-03-13 |title=Retiring the Mozilla Location Service |url=https://discourse.mozilla.org/t/retiring-the-mozilla-location-service/128693 |access-date=2024-03-14 |website=Mozilla Discourse |language=en-US}}

Data collection and processing

The mobile app Mozilla Stumbler for Android could be used to contribute signals of cellular networks and Wi-Fi access points at the device's GPS position. It was available in the Google Play store and F-Droid from November 2014 to February 2021 after which it was officially retired.{{Cite web|title=Mozilla Stumbler 1.0 geolocation crowd-sourcing app now in Google Play Store|url=https://blog.mozilla.org/services/2014/11/03/mozilla-stumbler-1-0/|access-date=2021-03-21|website=Mozilla Services|date=3 November 2014 |language=en-US}}{{Cite web |date=2021-02-08 |title=Retiring Mozilla Stumbler |url=https://discourse.mozilla.org/t/retiring-mozilla-stumbler/75206 |access-date=2022-11-13 |website=Mozilla Discourse |language=en-US}}{{Cite web |url=https://f-droid.org/repository/browse/?fdid=org.mozilla.mozstumbler |title=F-Droid |access-date=2015-06-25 |archive-date=2016-05-28 |archive-url=https://web.archive.org/web/20160528033658/https://f-droid.org/repository/browse/?fdid=org.mozilla.mozstumbler |url-status=dead }} It was noted that contributions from Firefox for Android users "completely overwhelm[ed] the contributions made by the dedicated Stumbler app."{{Cite web |title=Status of Mozilla Stumbler? |url=https://groups.google.com/g/mozilla.dev.geolocation/c/lx09zGU8dKM/m/A_Via5eiCwAJ |access-date=2022-11-15 |website=groups.google.com}} Other apps, such as Tower Collector, were also available for the same purpose,{{Cite web|title=CloudServices/Location/Software - MozillaWiki|url=https://wiki.mozilla.org/CloudServices/Location/Software|access-date=2021-03-21|website=wiki.mozilla.org}}{{Cite web|title=Tower Collector {{!}} F-Droid - Free and Open Source Android App Repository|url=https://f-droid.org/en/packages/info.zamojski.soft.towercollector/index.html.en|access-date=2021-03-21|website=f-droid.org}} although they were limited to collecting information related to cellular networks.

Firefox for Android had the option to contribute to the service in a similar manner to Stumbler up until Firefox version 68, after which Mozilla performed a major rewrite of the browser,{{Cite web |title=Firefox for Android 68.11.0, See All New Features, Updates and Fixes |url=https://www.mozilla.org/en-US/firefox/android/68.11.0/releasenotes/ |access-date=2022-11-15 |website=Mozilla |language=en}} and the option to contribute to MLS was not re-added.

Mozilla does not collect the SSID name (e.g. "Simpson-family-wifi") from WiFi networks, but does collect the BSSID (which is often the MAC address of the WiFi device).

The service is opt-out, meaning it will be enabled on client applications without the user's consent unless disabled. Mozilla's client applications do not collect information about WiFi access points whose SSID is hidden or ends with the string "_nomap" (e.g. "Simpson-family-wifi_nomap").[https://location.services.mozilla.com/optout Mozilla Location Service Opt-Out] location.services.mozilla.com

When the service is used to request the geolocation of a device by sending it information about nearby radio transmitters, it not only responds with a location estimate, but also uses the data to update its own database. For example, if a device requests its location by sending the service information about 7 nearby Wi-Fi networks, but MLS only knows about 5 of them, the information about the 2 previously undiscovered Wi-Fi networks will be added as a data point at the device's estimated location. These requests are also used to verify that the 5 reported Wi-Fi networks still exist, and that their characteristics, such as their location, orientation, or other factors that might alter the signal, are unchanged. If they are changed, for example, by someone moving their Wi-Fi router to another room, then the device gets the Blocked status, which means that it isn't taken into account for location queries for 48 hours. If the device then remains stable at its new position, it is considered usable again. If it were to keep moving, it will be considered a moving emitter, and will not be taken into account for location queries. This is used to filter out, for example, Wi-Fi access points on buses and trains, and mobile hotspots created by phones and laptops.

The service does not try to calculate and store the location of the radio transmitters themselves. Instead, it calculates and stores the areas in which their signal can be received. This area is internally represented as a circle whose center is the weighted average of the location of all the measurements in which the signal was received. Measurements which are deemed to have a higher accuracy, higher signal strength and better signal-to-noise ratio are given a higher weight. The circle's size is set to be large enough to encompass a bounding box of all measurements.{{Cite web |title=Observations — Ichnaea 2.3 documentation |url=https://ichnaea.readthedocs.io/en/latest/algo/observations.html |access-date=2022-11-14 |website=ichnaea.readthedocs.io}}

Mozilla publishes aggregated data set of cell locations (MLS Cell Network Export Data{{Cite web|url=https://location.services.mozilla.com/downloads|title = MLS - Downloads}}) under a public domain license (CC-0).[https://wiki.mozilla.org/index.php?title=CloudServices/Location/FAQ&oldid=1080749 https://wiki.mozilla.org/CloudServices/Location/FAQ] Unlike the cell database, the raw WiFi database is not made public because the underlying data contains personally identifiable information from both the users uploading data and from the owners of Wi-Fi devices. However, Mozilla shares this proprietary data with its corporate partner Combain AB.{{Cite web|url=https://blog.mozilla.org/services/2015/03/06/combain-deal-helps-expand-mozilla-location-service/|title=Combain Deal Helps Expand Mozilla Location Service|date=6 March 2015 }}

Usage

The service is used by default as a geolocation provider fallback in the Beta and Nightly versions of Mozilla Firefox for desktop computers and laptops, used when Firefox fails to acquire geolocation data from the operating system. Some versions of Firefox distributed by third-parties — especially Linux distributions — also use MLS.{{Cite web |title=CloudServices/Location/Software - MozillaWiki |url=https://wiki.mozilla.org/CloudServices/Location/Software |access-date=2022-11-13 |website=wiki.mozilla.org}} By default, the first-party, stable Firefox releases from Mozilla use a similar alternative service operated by Google.{{Cite web |title=Firefox Privacy Notice |url=https://www.mozilla.org/en-US/privacy/firefox/ |access-date=2022-11-13 |website=Mozilla |language=en}}{{Cite web |title=Does Firefox share my location with websites? {{!}} Mozilla Support |url=https://support.mozilla.org/en-US/kb/does-firefox-share-my-location-websites |access-date=2022-11-13 |website=support.mozilla.org}} Firefox users have the option to change this setting to force the browser to use MLS instead, by visiting the about:config page and changing the value of geo.provider.network.url to https://location.services.mozilla.com/v1/geolocate?key=%MOZILLA_API_KEY%. This location data is exposed to websites using the HTML5 Geolocation API after the user has granted the website permission to access their location.{{Cite web |title=Geolocation API - Web APIs {{!}} MDN |url=https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API |access-date=2022-11-13 |website=developer.mozilla.org |language=en-US}}

It is also the primary location source in the GeoClue library for non-GPS enabled devices, which is used in the GNOME and KDE environment in location-dependent applications such as the ones providing weather and maps.{{cite web|last1=Aleksandersen|first1=Daniel|title=Help Mozilla build out their Location Service while walking about with your phone|url=https://www.slightfuture.com/blog/contribute-mls-wifi|website=Slight Future|date=11 August 2016|accessdate=14 August 2016}}

The service is free to use, but an API key is required for requesting geolocation data. Keys are given out on an individual basis. In order to receive a key, one must fill out a request form. Mozilla does not, as of 2022-11-13, provide keys to commercial or personal projects. Keys are only offered if the person requesting it provides a link to their software repository which must be licensed under an open source license.{{Cite web |title=Request Form for MLS API Key |url=https://docs.google.com/forms/d/e/1FAIpQLSf2JaJm8V1l8TS_OiyjodkpYsagOhM1LNo_SmPDDAVKdmQg8A/viewform?usp=embed_facebook |access-date=2022-11-13 |website=Google Docs |language=en}} However, it is possible to anonymously submit collected data to the service without the need for an API key.{{Cite web |title=Services API — Ichnaea 2.3 documentation |url=https://ichnaea.readthedocs.io/en/latest/api/index.html#api-access-keys |access-date=2022-11-14 |website=ichnaea.readthedocs.io}}

See also

References

{{Reflist}}