Earlier this week I wrote about how to calculate the distance between two points in a location-aware app. Today, I am going to discuss a related topic: how to calculate the bearing between two points.
If you are developing a location-aware application, you may reach a point where you need to know the distance between two geographic locations, such as the user's current position and some destination point like a city, airport, or attraction. The Location API in Windows 8 and the LocationManager class in Android, however, report positions in latitude and longitude as do most global services that map geographic names to a position on the earth.
The netbook platform has many impressive features not limited to long battery life, unsurpassed portability and a robust Intel® Atom™ processor. Given these attributes only a few select netbook models contain a GPS receiver. Coming from the iPhone* platform we have become accustomed to having this wonderful device at our disposal.