Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7718561
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T03:11:43+00:00 2026-06-01T03:11:43+00:00

I am trying the GeoLocation feature in HTML5. I have tried this for example:

  • 0

I am trying the GeoLocation feature in HTML5. I have tried this for example: html5demos.com and when open it using Firefox 10.0.2 under Ubuntu locates me in a city I am not. With Chrome it locates me correctly. The city that locates me it’s pretty far from the city I am in, even though I was in that city a month ago.

Anyone has any idea what can be happening? How does HTML5-Geolocation (from a programming point of view) work, that can be failing in this aspect?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T03:11:44+00:00Added an answer on June 1, 2026 at 3:11 am

    I validated the same effect. Chrome nails me to the way too close… scary close.
    Whereas Firefox missed by about 500 miles and a whole state.

    So what gives?

    When you dig into the HTML5 geoLocation documentation you’ll find that the API is by definition agnostic about the source of your geoLocation service.

    It could be a GPS-enabled device, it could be a Cell tower network, it could be via WIFI hotspots, or it could be via Geo-IP.

    So with that as a background I formed the hypothesis that Chrome was using WIFI hotspots but Firefox was falling back to GeoIP. (Many sites will easily give you a GeoIP… and sure enough, my GeoIP shows up in Hood Oregon or somewhere far away from where I really am. – Blame this on the ISP I guess.)

    So with this info in hand, when I test my geoLocation using Firefox, sure enough: Hood Oregon.

    But as I said, when I test my geoLocation using Chrome: Practically spot on.

    What I haven’t mentioned so far, but what is critical to my hypothesis, is that up until this time, I have been carrying out my tests using my WIFI-enabled laptop.

    On to test 2:

    Disable WIFI on the laptop, connect the laptop to the router via the ethernet cable, and repeat the above geoLocation test using Chrome.

    Results: Chrome places me right where Firefox did, far away in Hood Oregon.

    Empirical Conclusion:

    Chrome calculates your geoLocation using WIFI hotspots if available, whereas Firefox does not.

    The HTML5 GeoLocation API does have a ‘High Accuracy’ flag, which is set to False by default. Perhaps it is as simple as Chrome is setting this to True, while FireFox is not.

    Follow-up question:

    How can one snoop the data stream to verify this?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Newbie question. I'm trying to make a mobile site using html5's geolocation (I know
I'm trying to use the html5 geolocation api with Meteor. I'm using: navigator.geolocation.getCurrentPosition(handle_geolocation_query); in
This is probably a very silly question. I am trying to do a geolocation
I am trying to show the user's location obtained using geolocation API on google
Using the navigator.geolocation object in JavaScript. Trying to establish accurate ranges, but wondering exactly
I'm trying to learn how to use HTML5 geolocation and am having trouble getting
I'm trying to load latitude and longitude value using this code but I receive
I am trying to create a HTML5 page that will catch the geolocation, but
Using geolocation data of websocket users on a specific server, I'm trying to restrict
Goal: To render a google map using geolocation. I am trying to implement the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.