Questions tagged [altitude]

the vertical elevation of an object above a surface (as sea level or land) of a planet or natural satellite

123 questions
63
votes
8 answers

Android: How to get accurate altitude?

I need to get an accurate measurement of altitude using GPS only. I tried Location.getAltitude(), but that is terribly inaccurate. Any advice?
ask
  • 2,160
  • 7
  • 31
  • 42
12
votes
6 answers

Android: How do I call a method which is existing in other API Level?

I have application using Android 2.1 which utilize LocationManager to get the altitude. But now, I need to obtain the altitude using SensorManager which requires API Level 9 (2.3). How can I put the SensorManager.getAltitude(float, float) in my 2.1…
eros
  • 4,946
  • 18
  • 53
  • 78
12
votes
1 answer

Finding Altitude in Swift

I've been having trouble finding a way to get the altitude of the device. Could someone give me a pointer or put together a short script that gets the altitude of the device and prints it? Only in swift. Thanks!
CarveDrone
  • 915
  • 1
  • 9
  • 23
11
votes
1 answer

How to calculate the altitude above from mean sea level

I tried to find how to get the altitude above the mean sea level. At this time, it returns altitude from the ellipsoid. So, anyone knows the formula or calculation to change the altitude value from ellipsoid to the altitude value from mean sea…
Yoo
  • 1,421
  • 8
  • 20
  • 36
10
votes
2 answers

CLLocation elevation accuracy

I have a location service app, in which the user's elevation is provided. I have found, though, that the elevation accuracy provided by the CLLocationManager is extremely inaccurate. When I test the same two spots twice, sometimes the elevation…
eric.mitchell
  • 8,817
  • 12
  • 54
  • 92
10
votes
4 answers

iOS CoreLocation Altitude

Prior to iOS 4.0, CoreLocation was reporting altitude correctly, now it always reports as 0 ft. -(void)locationManager:(CLLocationManager *)manager didUpdateToLocation:(CLLocation*)newLocation fromLocation:(CLLocation *)oldLocation { NSString…
WrightsCS
  • 50,551
  • 22
  • 134
  • 186
9
votes
5 answers

Conversion for latitude/longitude to altitude in R

Does anyone know if there is a tool in R to find the height above sea level of a location, given the latitude and longitude ?
user1165199
  • 6,351
  • 13
  • 44
  • 60
8
votes
3 answers

Android Barometer Altitude Reading Is Wrong?

I've been trying to implement a feature to get the correct altitude based on the barometer sensor from Android Galaxy S5 phones. The only problem is, I don't think it is accurate. Based on http://www.whatismyelevation.com on my particular location,…
user3171597
  • 447
  • 1
  • 6
  • 17
7
votes
3 answers

Extracting elevation from website for lat/lon points in Australia, using R

G'day Everyone, I am trying to get some elevation data for about 700 points I have. I thought I might use the code provided to the same question (Conversion for latitude/longitude to altitude in R), unfortunately I get errors when using the geonames…
Adam
  • 1,147
  • 3
  • 15
  • 23
7
votes
3 answers

Accessing barometer data from Lumia 1020

Apparently the Lumia 1020 has a barometer. See the "Extra Features" section in the link below. http://developer.nokia.com/Devices/Device_specifications/Lumia_1020/ I would like to know how to access elevation data directly from the barometer. Right…
7
votes
4 answers

How does my iPhone get its altitude?

I made a simple app which displays the altitude according to the GPS position on iPhone. How is the altitude obtained? Does it get the altitude of the land at the coordinates I am or does it get the actual altitude? (I tried the same application…
duncanportelli
  • 3,161
  • 8
  • 38
  • 59
7
votes
3 answers

Is Android's GPS altitude incorrect due to not including geoid height?

I'm testing an Android app that records the location (lat/long/alt). I'm running the app on a Samsung GTS5830 phone running Android 2.2.1 I read here and there that GPS altitude is often incorrect due to the earth not being perfectly spherical. At…
user610650
6
votes
3 answers

Why The altitude is change if it is Evening or Night?

I have this following code : public SensorEventListener sensorEventListener = new SensorEventListener() { @Override public void onSensorChanged(SensorEvent event) { float pressure_value = 0.0f; float height = 0.0f; if…
Leonard Febrianto
  • 964
  • 2
  • 12
  • 37
5
votes
2 answers

How to get barometric altitude in Android?

What are the data needed for calculating barometric altitude? How do I get them and then calculate the altitude? Also how accurate is the barometric compared to GPS altitude? I tried GPS but after searching hours in the web I cannot find a suitable…
zbz.lvlv
  • 3,597
  • 6
  • 34
  • 38
5
votes
2 answers

Getting Altitude(height from sea level) of my location in iphone SDK

I am trying to get Altitude of my location in my application. But every time I try altitude property of CLLocation object I am getting 0.00 as result. I googled for my query and I got a similar question here and here. This link is saying that if I…
Kapil Choubisa
  • 5,152
  • 9
  • 65
  • 100
1
2 3
8 9