Back to project page spotthestation.
The source code is released under:
Apache License
If you think the Android project spotthestation listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
/* * To change this template, choose Tools | Templates * and open the template in the editor.//from w w w. j a v a 2 s. c o m */ package Utilities; /** * * @author xxc9071 */ public class ZoneCalculator { public static int calculateZone(double longitude, double latitude) { longitude = (longitude + 180) / 36; int iLongitude = (int) (longitude + 1); latitude = (latitude + 90) / 36; int iLatitude = (int) (latitude + 1); String zoneString = "" + iLatitude + iLongitude; return Integer.parseInt(zoneString); } }