HTML Geo API for Java provides annotation based way of obtaining geolocation information from a browser or any other device capable of providing it.