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 8371593
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T14:12:00+00:00 2026-06-09T14:12:00+00:00

I am getting gps location information and displaying it on google maps using Javascript

  • 0

I am getting gps location information and displaying it on google maps using Javascript API through WebView. I notice that the location information is not very accurate though I am using EnableHighAccuracy as true. Also I notice that the google maps app in android is able to pick up the location many times faster than my app and also able to show the location more accurately.

How is this possible? Both apps are using the available A-GPS information on android and displaying on same map.

Any thoughts on this. Also any suggestions how I can improve the accuracy.

Update: Using location information through Javascript and WebView on Android shows my current location as atleast 2-5 miles away from where I current am. However google maps app in android is able to identify the building in which I am currently sitting.
Also google maps app picks up this location with 2-5 secs, where as the webview one takes more than a minute and still gives a inaccurate location.

  • 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-09T14:12:01+00:00Added an answer on June 9, 2026 at 2:12 pm

    I think you might find that the WebView “best” location algorithm is not as sophisticated as the Google Maps algorithm. The problem you see may be related to the WebView picking the “best” location provider and getting stuck with that choice, even if another provider later becomes “best.”

    If it meets your requirements, you will probably have better results writing the LocationManager code yourself and sending the results to your WebView. In this way, you could monitor multiple providers and can switch between them based on which is providing the best recency/accuracy trade-off for your application.

    Here’s a good guide on getting started with a sophisticated location algorithm: http://developer.android.com/guide/topics/location/strategies.html

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

Sidebar

Related Questions

I'm working on an app that involves the Google Maps API and I'm worrying
Is it necessary for gps to be enabled while getting location updates through Network_provider
I am developed a GPS application for getting Latitude and Longitude, by using Emulator
Getting red warning message that expected identifier for this statement CALayer = ImageView.layer; Using
Hi, I am trying to get the gps location using location provider and gps
I am using GPS to fetch location at 15 second interval in my android
I'm currently coding a GPS application on Android. I've successfully getting the current location
When getting GPS location on a fixed interval (say per hour), does this drain
i am using following code to get GPS location. now i want to get
friends, i have created an application in which i am getting GPS location onCreate

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.