Browser geolocation API verification order

What is the order of methods used to detect the location of a visitor that Geolocation Browser API uses?

On the W3C Geolocation info site it says that it uses a combination of IP, Wi-Fi, Cell-Phone and GPS, but it doesnt say the order that it uses to do this.

From my understanding, it uses GPS (if available) and then one of the other 3 methods, but it is not clear which comes next.

I need this in a project where I have to determine the user location without using his IP.


The API doesn't get a user's location; it requests it from the browser (which, I believe, gets it from the OS - but correct me if I'm wrong). The exact method depends on the hardware available, and the raw data is not accessible through the API. From this Google Developers page:

The API is device-agnostic; it doesn't care how the browser determines location, so long as clients can request and receive location data in a standard way. The underlying mechanism might be via GPS, wifi, or simply asking the user to enter their location manually.

Category: javascript Time: 2016-07-31 Views: 42

Related post

  • browser geolocation: offer to user automatically? 2012-12-31

    I have web where content depends a lot on users geolocation. So it would be really nice to use W3C Geolocation API. When I do that, user is asked by browser authorization bar whether allow geolocation or not. I am fine with this authorization - quest

  • How can I set my current location for geolocation APIs to pick up? 2011-03-22

    I'm running a Windows 7 desktop machine (no GPS, hardwired connection) which is stationary. I'd like to set up my location so that various geolocation-enabled services can find me accurately. Is there any way to do this? --------------Solutions------

  • Using the HTML5 Geolocation API 2012-02-01

    Knowing the location of your users can help boost the quality of your website and the speed of your service. In the past, users had to actively input their location and submit it to a site, either by typing it, using a long drop-down list, or clickin

  • HTML5 Browser Geolocation Browser Support 2012-11-18

    So today in my spare time I wanted to see how different browsers behave with HTML Geolocation and Google Maps. So far, I have done the following browsers: Firefox 16, Chrome 23, IE9, IE8 and Safari 5 for Windows. It is supported by the modern browser

  • Calling the geolocator api on an aspx web page 2016-02-09

    I'm creating an web app which involves collecting data on user location using the html5 geolocator api. I can get it working easily on an html page however when i try to use the same javascript code on an aspx page after i launch it the permi

  • current location on Google Map using GeoLocation API in website 2016-02-13

    i am doing the project on getting the current location in the google map . i used this code and it is not working suggest some code to work with.. so please verify the following code to find the current location of google map using geolocation API we

  • Chrome set Geolocation API provider 2010-08-19

    If you use the HTML5 Geolocation Api in firefox and have no GPS attached to get your current position, firefox uses the nearby wlan ssids to get your position. Firefox sends the ssids via Geolocation Network Protocol to

  • Looking to change browser geolocation for testing purposes using Javascript 2016-03-15

    I am testing websites with automation and want to change browser geolocation every time the website is it to check the various version of the website as per geolocation. Looking for a java script solution to solve this issue of changing the geolocati

  • Taking Lat and Long data collected with Geolocation API and using it with ArcGIS Network Analyst? 2016-06-09

    I am creating a routing map that will eventually be hosted on ArcGIS online.(I am using JavaScript) Currently, I have figured out how to find someone's current location using the Geolocation API and display it on a map. My problem is that I want to n

  • How to solve? Google Chrome version 50 onwards do not support HTML5 Geolocation API over HTTP 2016-06-11

    I am having a problem with Google Chrome version 50 onwards because it does not support HTML5 Geolocation API over HTTP and my web app depends on it to get user location - latitude and longitude. I read online that the solution is to use HTTPS and ge

  • Can I ask a user to browse the Web in order to gather images? 2013-05-21

    In a mobile application, (on iOS to be exact) I would like to propose the user to import its own images, let's say twelve images for a calendar. If the images are not present on the device, I would like to propose him to browse the Web until he has f

  • ArcGIS JavaScript API layer order? 2012-04-03

    I have the below code which ensures a layer is valid before adding it to the map. mapConfig.Services is an array of service url's and loadMapService is a simple function which returns an ESRI layer. The layer is added once it is "loaded" using a

  • How do I use browser-specific API's in an isomorphic React App? 2016-02-14

    I was reading several style guides on using react on the server side, and they all (rightfully) seem to suggest that components should be a pure function of states and props. That begs a question that if I were to use a DOM API, say window.innerWidth

  • guarantee RESTful API serial ordering 2016-02-15

    I have an application driven via custom RESTful API. I need to guarantee that, in certain cases, requests are processed in the same order they are submitted. Waiting for the answer of each request before issuing the next has substantial efficiency pe

  • In Internet Explorer 9, how can I view "browsing history" in chronological order? 2012-04-12

    I would like to trace my steps in time, like I can in Google Chrome. IE9 does not seem to do this... Is there a work-around? --------------Solutions------------- Under History, select "View By Order Visited Today" from the dropdown menu. That sh

  • How can I make the file browser sort in ASCII order? 2016-06-25

    The so called "intelligent sorting" does not make any sense to me. It will put 1z in front of 0005abz. I would like to have sorting order like it used to be: 00056 00056aaa 004abc 03abc 2abc and not 2abc 03abc 004abc 00056aaa --------------Solut

  • Should I have a separate "Application" server to handle the REST traffic, or just one server to handle both browser and API (REST) traffic? 2014-11-04

    Let's forget scaling or cloud configuration for a second. Think of an application with a few platforms: Mobile (iOS, Android) Desktop (Windows, OS X) Web (HTML/CSS/JS) The question is regarding the back end. Obviously the backend has to include a web

  • How do services like Google Latitude geolocate my laptop PERFECTLY with no GPS? 2011-04-22

    How do services like Google Latitude, through my browser, obviously through my internet connection (Ethernet not Wi-Fi), obtain my location perfectly with only my current public IP address? By asking my ISP? --------------Solutions------------- Googl

  • How does wifi determine a device's location? 2014-03-11

    This question already has an answer here: How do services like Google Latitude geolocate my laptop PERFECTLY with no GPS? 4 answers How could Google Latitude find my exact PC location with no GPS or public wifi? 2 answers When I use any location base

iOS development

Android development

Python development

JAVA development

Development language

PHP development

Ruby development


Front-end development


development tools

Open Platform

Javascript development

.NET development

cloud computing


Copyright (C), All Rights Reserved.

processed in 0.270 (s). 13 q(s)