Skip to content

Snappy1

  • Home
  • Android
  • What
  • How
  • Is
  • Can
  • Does
  • Do
  • Why
  • Are
  • Who
  • Toggle search form

[FIXED] gps – How do I get the most Accurate Altitude for Android Devices

Posted on November 11, 2022 By

Solution 1 :

There seems to be a google maps api, Google Maps Elevation API, which seems to provide the data you need, but apparently it does need a billing account associated, not sure if thats a possibility. But I would expect a company like Strava to use something like this, it seems pretty legit and accurate.

You make request:

https://maps.googleapis.com/maps/api/elevation/json?locations=39.7391536,-104.9847034&key=YOUR_API_KEY

and get something like this JSON back:

{
   "results" : [
      {
         "elevation" : 1608.637939453125,
         "location" : {
            "lat" : 39.73915360,
            "lng" : -104.98470340
         },
         "resolution" : 4.771975994110107
      }
   ],
   "status" : "OK"
}

https://developers.google.com/maps/documentation/elevation/start

Problem :

I am coding a Fitness tracking App right now. Therefore I want to use the Altitude. I know I can get the Altitude via GPS, but this seems far away from being accurate. I already tried my app on several devices and all of them had problems with their altitude.
Thanks for your help.

Comments

Comment posted by CommonsWare

“this seems far away from being accurate” — how have you determined this?

Comment posted by ebtjan

Well as I said I used the app on my device and I know at which Altitude I live, and the Phone was about 70 meters off… But when I use the strava fitness app the altitude is way better, so it must be possible somehow.

Comment posted by minimal reproducible example

Without a

Comment posted by Ifor

GPS is terrible for altitude in this context. Use the pressure sensor if you have one for the best you can get off a phone but there are limitations and you need a calibration strategy. Fallback to online lookup or get the appropriate .dem files.

READ  [FIXED] How to switch to the old LogCat in Android Studio Dolphin
Powered by Inline Related Posts
Android Tags:altitude, android, gps

Post navigation

Previous Post: [FIXED] java – How can I solve this Android Studio Firebase problem?
Next Post: [FIXED] Android Java Publish result cast issue at MyCustomAdapter.java

Related Posts

[FIXED] android – Date range picker overlaps phone’s navigation buttons Android
[FIXED] android – How can I get data from ViewModel to Activity or Fragment in clean and simple way? Android
[FIXED] android – I cannot import the ArryaAdapter and ArrayList class for some reason, it was working before but I just reopened the project and now it doesn’t Android
[FIXED] android – adb wait-for-device for multiple emulators Android
[FIXED] android – Button and status bar still purple after switching color theme Android
[FIXED] java – Underline Spinner Created Programmatically Android

Archives

  • April 2023
  • March 2023
  • February 2023
  • January 2023
  • December 2022
  • November 2022
  • October 2022
  • September 2022

Categories

  • ¿Cómo
  • ¿Cuál
  • ¿Cuándo
  • ¿Cuántas
  • ¿Cuánto
  • ¿Qué
  • Android
  • Are
  • At
  • C'est
  • Can
  • Comment
  • Did
  • Do
  • Does
  • Est-ce
  • Est-il
  • For
  • Has
  • Hat
  • How
  • In
  • Is
  • Ist
  • Kann
  • Où
  • Pourquoi
  • Quand
  • Quel
  • Quelle
  • Quelles
  • Quels
  • Qui
  • Should
  • Sind
  • Sollte
  • Uncategorized
  • Wann
  • Warum
  • Was
  • Welche
  • Welchen
  • Welcher
  • Welches
  • Were
  • What
  • What's
  • When
  • Where
  • Which
  • Who
  • Who's
  • Why
  • Wie
  • Will
  • Wird
  • Wo
  • Woher
  • you can create a selvedge edge: You can make the edges of garter stitch more smooth by slipping the first stitch of every row.2022-02-04
  • you really only need to know two patterns: garter stitch

Recent Posts

  • Can Vicks humidifier be used without filter?
  • What color is Spanish green?
  • How old is Jamie in The War That Saved My Life?
  • When should I use scalp massager for hair growth?
  • Can I put polyurethane over liming wax?

Recent Comments

No comments to show.

Copyright © 2023 Snappy1.

Powered by PressBook Grid Dark theme