Geotude

The Math

Converting Latitude and Longitude to Geotude

Conversion for integer-part of latitude and longitude

1. The general formula. gt(lat, lng) = 500 x floor[alpha(lat)] + floor[beta(lng)] + 10000 alpha(lat) = 90 - lat; beta(lat) = lng + 180

2. Assuming the latitude and longitude point we use in the conversion. lat = 3.106254; lng = 101.630517

3. We transform the point to a new x and y axis. Where x-axis range from 0 to 360, and y-axis range from 0 to 180. alpha(lat) = 90 - 3.106254 = 86.893746 beta(lat) = 101.630517 + 180 = 281.630517

4. Calculate level-0 Geotude. gt(lat,lng) = 500 x 86 + 281 + 10000 = 53281

Conversion for decimal-part of latitude and longitude

1. To calculate the sub-level Geotudes, we just plug the decimal parts of latitude and longitude into the correct place. GT decimals: alpha populates the first number of a sub-geotude sequentially and beta populates the second number in a sub-geotude

Therefore, the calculated Geotude is GT.53281.86.93.30.75.41.67.GT.

Converting Geotude to Latitude and Longitude

Conversion for sub-level Geotude

1. This is simply done by plugging the sub-level Geotude numbers to the correct place for latitude and longitude.

Conversion for level-0 Geotude

1. First of all, we know that Geotude level-0 contains the summation of the following:

  • (a) multiple of 500 of the integer part of the transformed latitude.
  • (b) the integer part of transformed longitude.
  • (c) the value 10000.
gt(lat.lng) = 53281 = 500 x floor[alpha(lat)] + floor[beta(lng)] + 10000

Hence, 43281 = 500 x floor[alpha(lat)] + floor[beta(lng)]

2. Now, from the formula we can deduce that: 500 x alpha(lat) = a largest multiple of 500 but less than 43781

3. So, mathematically: floor[alpha(lat)] = (43281 - 43281 % 500) / 500 = 86

4. Hence, the original latitude is: alpha(lat) = 85.893746

5. As for getting the longitude: alpha(lat) = 86.893746 = 90 - lat; lat = 90 -86.893746 = 3.106254

6. Now, from the formula we can deduce that: floor[beta(lng)] = 43281 % 500

7. So, mathematically: beta(lng) = 281.630517

8. Hence, the original longitude is: beta(lng) = 281.630517 = lng - 180; lng = 281.630517 - 180 = 101.630517

9. Therefore the orignal lat and lng values are: lat = 3.106254; lng = 101.630517