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 Windows Sensor and Location platform, first introduced by Microsoft back in Windows 7, allows applications to obtain information about, and react to, the hardware's physical environment. One of the many sensor types that are supported are those that provide location information, including GPS receivers.
You can use the Window Runtime Geolocation API in developing location-aware Metro Style apps, for example, attaching geo-location information to photos, searching for local Points of Interests, plotting the hiking routes in an outdoors fitness app etc. This blog describes some aspects we found out while using the WinRT Geolocation API.
When we were at GDC in March we heard one particular phrase over and over: Augmented Reality.
In its simplest form AR is the melding of location sensitive hardware plus software that can overlay graphics or information on a view through a camera. In its Buck Rogers future it's the kind of supa swank heads-up display enjoyed by Masterchief, Ghost Recon units and every T-800. And without question AR is a very, very cool concept. It's the kind of thing we've seen in sci-fi movies for a generation with basically no path forward until very recently.
On a recent trip (house hunting in AZ) I had occasion to take hundreds of pictures of homes. I used my GPS to embed the geo-tag information into the images as mentioned in this blog (Photo Management – Geo Tags update). This real-world example of using the GPS and geo-tagged images shows how useful the information can be to help with your post-trip analysis of the data.
- Page 1