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 supports compass functionality? And can any one tell me how compass application find directions so accurately like a real magnetic compass?
Please help me for this. I am in a critical situation.
Thanks in advance.
The Compass app comes pre-installed on every new iPhone, and can help you figure out your direction and elevation. Though not always accurate, the iPhone's Compass app can come in handy when you want to make sure you're on the right path.
Just tap on the GPS coordinates in the Compass app to launch Maps. You then can tap the navigation icon in the bottom left until you turn on compass mode, which will orient the map with magnetic north. Once you know where north is on the map, you can find your target on the map and guesstimate your direction of travel.
The magnetometer in your smartphone measures the Earth's magnetic field. Then it uses the WMM to align Magnetic North to Geographic North and determines your location in relation to the magnetic field.
here is a sample code link from apple.com for using magnetometer and Core Location https://developer.apple.com/library/ios/#samplecode/Teslameter/Introduction/Intro.html
you need to be logged in, in case you cant find the page, just look for Teslameter example in Sample Code section of https://developer.apple.com
Here i have given you the simple PDF to get an overview about the Magnetometer, CLLocation and accelerometer functions. make a look about this.,
http://learningiphoneprogramming.com/pdf/The_Sensors_in_your_iPhone.pdf
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With