LatLonConverter HOWTO
From BUG Wiki
Introduction
LatLonConverter is a service that will convert latitude and longitude values to nearest zip code. This service is useful in conjunction when GPS is used to get specific information about BUG's current location rather than just raw data.
Using the service
To use the service in your application you need to first get the ServiceReference for the service:
ServiceReference serviceReference = context.getServiceReference(ILocationConverter.class.getName());
retrieve the service itself:
ILocationConverter converter = (ILocationConverter)context.getService(serviceReference);
and finally use the service:
converter.calculateNewZipCode(lattitude, longitude); String zipCode = converter.getFirstZipCode(); List allZipCodes = converter.getAllZipCodes();
