Questions tagged [compass-geolocation]

Geolocation is the identification of the real-world geographic location of an object, such as a cell phone or an Internet-connected computer terminal. Geolocation may refer to the practice of assessing the location, or to the actual assessed location.

333 questions
12
votes
1 answer

Using orientation sensor to point towards a specific location

I'm trying to implement an arrow that uses the orientation sensor in order to point towards a specific location. Google Places implements this arrow in a ListView for each place it finds. I've managed to get the azimuth, but given a location, I…
Flávio Faria
  • 6,575
  • 3
  • 39
  • 59
11
votes
3 answers

Android compass example

I'm searching for a compass example for Android. All I need to do is to get the correct bearing (in portrait & landscape mode). I already found several samples, some use only Sensor.TYPE_ORIENTATION, some use a combination of…
nr1
  • 777
  • 3
  • 12
  • 31
11
votes
3 answers

android compass seems unreliable

I have been working on a small compass app the past couple of days, and have gotten the code up and running, but it seems that the compass reading is not accurate. After calibrating both phones, my first test that i found this in what that i simply…
ocross
  • 593
  • 1
  • 5
  • 24
11
votes
5 answers

Getting the difference between two headings

I have this method for figuring out the difference between 2 0-360 compass headings. Although this works for figuring out how far absolutely (as in, always positive output) off I am, I am having trouble figuring out what needs to be done to…
chris12892
  • 1,634
  • 2
  • 18
  • 36
11
votes
4 answers

Finding Direction in iPhone like in Compass?

Do any one have idea for finding true direction using iPhone? I want to implement such application in which I need to find direction in which iPhone is pointing and want to make application same as compass application in iphone 3GS. Does iPhone 3G…
11
votes
1 answer

Android Compass point to my location instead of north

I'm developing compass application where I want the compass to point to a particular latitude longitude position instead of the usual north. I found some questions related to my problem but I don't manage to make them worked for me. Here's my…
David
  • 3,055
  • 4
  • 30
  • 73
11
votes
5 answers

Android: Problems calculating the Orientation of the Device

i'am trying to build a simple Augmented Reality App, so I start working with sensor Data. According to this thread (Android compass example) and example (http://www.codingforandroid.com/2011/01/using-orientation-sensors-simple.html), the calculation…
10
votes
1 answer

Show wind direction on Google Maps

I calculated the wind direction and now I want to show the wind direction pointing to 144 degrees (on compass). How can I show this arrow on Google Maps?
Basit
  • 16,316
  • 31
  • 93
  • 154
9
votes
3 answers

Calculating magnetic heading using raw accelerometer and magnetometer data

I have an accelerometer and magnetometer each producing raw X, Y and Z readouts. From this I need to determine the magnetic heading of an object. I'm not that great at trig, but I've put together a formula that does respond pretty well to the…
M. Ryan
  • 6,973
  • 11
  • 52
  • 76
9
votes
1 answer

Android getOrientation Azimuth gets polluted when phone is tilted

I'm having a really annoying problem with a AR view acting like a compass. So when I hold the phone in portrait (so that the screen is pointing to my face), then I call the remapCoordinateSystem that the pitch is 0 when holding it portrait. Then the…
Johan S
  • 3,531
  • 6
  • 35
  • 63
8
votes
1 answer

Android accelerometer, sensor usage and power consumption

I have a quick question about the accelerometer in Android devices. Is it always on/active? Given that accelerometer is used to detect the orientation of the device, either landscape or portrait. In the official documentation (SensorManager) it…
8
votes
1 answer

Wrong compass heading values with CoreMotion

I'm using CoreMotion to get the ccompass heading and i noticed some problems with the compass heading. At first my initialization of CoreMotion. I got a CMMotionManager object, locationManager, which is an instance of the CMMotionManager. //…
SMP
  • 586
  • 3
  • 12
8
votes
1 answer

iPhone compass presents the wrong heading pitch angle is > about 45°

This might be hard to explain the geometry so I will be careful in spelling it out. This is visible in the standard compas app and from the data in CLLocationManager. 1) When holding the phone in portrait orientation, consider the pitch angle to be…
Steven Noyes
  • 1,549
  • 1
  • 11
  • 16
8
votes
4 answers

Get geographical direction using magnetic heading

How to calculate magnetic heading value to get geographical direction i.e., North, North-East, East, East-South, South, South-West, West, West-North? As magnetic heading returns only value of degree and its required for me to show the geographical…
alloc_iNit
  • 5,173
  • 2
  • 26
  • 54
8
votes
4 answers

How to retrieve high quality compass orientation (as in Google Maps)?

All of the guides to getting compass orientation in Android I've found have a bug: when you hold the phone in portrait mode and "look" above the horizon, the compass arrow turns 180 degrees from the correct direction. Google Maps orientation…
fhucho
  • 34,062
  • 40
  • 136
  • 186
1
2
3
22 23