|Written by Naoki Ueda|
LP-Address (LocaPoint 2)Specification
Version 3.0.1 4,August,2010
LP-Address has following format and total 15 letters in length.One [XYN] block is called "Chunk".
2. Introducing "Base 6T (Base Six Thousand)" encoding designed for LP-Address.
One Base6T value is consist of two capital alphabet and one number, and can have value of positive integer from [AA0] (=0) to [XY9] (=5999). Format is same as 'Chunk'.
When each digit is maximum value ( or [Y]) and increment more, carry over to next higher digit.
Example of value:
3. Encode/Decode Logic
LP-Address has a linear relationships with Latitude and Longitude (unit: decimal degree) in WGS84 datum. Following equation shows relationship.
(Lat_Degree + 180.0) / 0.00001 = Latitude_STEP = a * 6000 + b
a, b, c, and d are positive integer from 0 to 5999
Now LP-Address for location is:
Latitude = +40.68916, Longitude = -74.04487 (Precision is 0.00001 degree)
(+40.68916 + 180.0) / 0.00001 = 22068916 = 3678 * 6000 + 916 <--> [OR8] * 6000 + [DQ6]
Thus, LP-Address is:
4. Structure of Chunks
First and Third Chunk are Latitude Elements.
Note: For latitude, use only middle part (-90 to + 90 degree) of whole code range (-180 to +180 degree)
Second and Forth Chunk are Longitude elements.
Area Code elements
First and Second Chunk constructs Area Code.
Local Code elements
Third and Forth Chunk constructs Local Code.
|Last Updated on Sunday, 15 January 2012 23:07|