|
1 | 1 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
2 | | -<!-- Generated by Apache Maven Doxia Site Renderer 1.4 at 2014-09-26 --> |
| 2 | +<!-- Generated by Apache Maven Doxia Site Renderer 1.4 at 2014-10-08 --> |
3 | 3 | <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> |
4 | 4 | <head> |
5 | 5 | <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> |
|
10 | 10 | @import url("./css/site.css"); |
11 | 11 | </style> |
12 | 12 | <link rel="stylesheet" href="./css/print.css" type="text/css" media="print" /> |
13 | | - <meta name="Date-Revision-yyyymmdd" content="20140926" /> |
| 13 | + <meta name="Date-Revision-yyyymmdd" content="20141008" /> |
14 | 14 | <meta http-equiv="Content-Language" content="en" /> |
15 | 15 |
|
16 | 16 | </head> |
|
27 | 27 |
|
28 | 28 |
|
29 | 29 | <div class="xleft"> |
30 | | - <span id="publishDate">Last Published: 2014-09-26</span> |
31 | | - | <span id="projectVersion">Version: 1.40.1-SNAPSHOT</span> |
| 30 | + <span id="publishDate">Last Published: 2014-10-08</span> |
| 31 | + | <span id="projectVersion">Version: 1.40.1</span> |
32 | 32 | </div> |
33 | 33 | <div class="xright"> |
34 | 34 |
|
@@ -122,7 +122,7 @@ <h2>How To Build The Mapcode Library JAR File<a name="How_To_Build_The_Mapcode_L |
122 | 122 | <p>If you creating a Maven project, you can see how to include the JAR in your project in the menu item <b>Dependency Information</b> in the menu on this page.</p></div> |
123 | 123 | <div class="section"> |
124 | 124 | <h2>How To Use This Library In Your Application<a name="How_To_Use_This_Library_In_Your_Application"></a></h2> |
125 | | -<p>There are two classes you interact with as a client of the Mapcode library. These are:</p> |
| 125 | +<p>There are two classes you interact with as a client of the Mapcode Library. These are:</p> |
126 | 126 | <ul> |
127 | 127 | <li><tt>MapcodeCodec.java</tt></li> |
128 | 128 | <li><tt>Mapcode.java</tt></li> |
@@ -174,7 +174,11 @@ <h2>Class <tt>Mapcode.java</tt><a name="Class_Mapcode.java"></a></h2> |
174 | 174 | <p>This class represents mapcodes, which consist of a string of characters, digits and a decimal point and a territory specification. The territory specification is required for national (local) mapcodes, which are not globally unique.</p> |
175 | 175 | <p>The class also exposes methods to convert mapcodes to proper mapcode strings, usable for printing and it allows string-formatted mapcodes to be converted to <tt>Mapcode</tt> objects, where territory information is properly parsed and converted to a <tt>Territory</tt> enumeration value.</p> |
176 | 176 | <ul> |
177 | | -<li><tt>String getMapcode()</tt> returns the mapcode string which does not include territory information. You can also use <tt>getMapcodeHighPrecision()</tt> and <tt>getMapcodeMediumPrecision()</tt> for more precision, but longer mapcodes.</li> |
| 177 | +<li><tt>String getMapcode()</tt> returns the mapcode string which does not include territory information. You can also use <tt>getMapcodePrecision1()</tt> and <tt>getMapcodePrecision2()</tt> for more precision, but longer mapcodes. |
| 178 | +<ul> |
| 179 | +<li>The default precision offered by <tt>getMapcode()</tt> is approximately 5m (maximum distance to latitude, longitude the mapcode decodes to). This corresponds to an area of 10m x 10m (100m2). These mapcodes include no additional precision digits.</li> |
| 180 | +<li>The precision offered by <tt>getMapcodePrecision1()</tt> is approximately 1m. This corresponds to an area of 2m x 2m (4m2). These mapcodes include 1 additional precision digit.</li> |
| 181 | +<li>The precision offered by <tt>getMapcodePrecision2()</tt> is approximately 0.16m. This corresponds to an area of 0.32m x 0.32m (0.1m2). These mapcodes include 2 additional precision digits.</li></ul></li> |
178 | 182 | <li><tt>Territory getTerritory()</tt> returns the territory information.</li> |
179 | 183 | <li><tt>StringasInternationFullname()</tt> returns mapcodes string with territory information, specified as a full country name.</li> |
180 | 184 | <li><tt>String asInternationISO()</tt> returns mapcodes string with territory information, specified as an ISO code name. Importanmt: This is returns the same result as <tt>toString()</tt>.</li></ul></div> |
|
0 commit comments