The Haversine formula and the Location API for Location-Based Services
Some location-based services operate on the basis of geographical distance. Usually, this concerns the distance between two (geographical) points, being the location of the user at the time he or she uses the service and a certain Point Of Interest (POI). Several examples of such services can be thought of, such as Location-Based Advertising and requesting the nearest ATM. In this article I will present a case demonstrating an implementation of the core functionality of such a service in which two key components are highlighted: the Haversine formula and the J2ME Location API.