Skip to content

Commit 6ee39c4

Browse files
committed
Renamed country to territory
1 parent a3ac7e3 commit 6ee39c4

File tree

1 file changed

+28
-1
lines changed

1 file changed

+28
-1
lines changed

README.txt

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,31 @@ This directory contains the original C++ Mapcode sources and an application to
1111
To build the original Mapcode tool:
1212
gcc mapcode.c -o mapcode
1313

14-
For help, simply execute 'mapcode' without ny arguments.
14+
For help, simply execute 'mapcode' without no arguments. This will show you the
15+
help text:
16+
17+
+----
18+
Usage:
19+
mapcode [-d | --decode] <default-territory-ISO3> <mapcode> [<mapcode> ...]
20+
21+
Decode a Mapcode to a lat/lon. The default territory code is used if
22+
the Mapcode is a shorthand local code
23+
24+
mapcode [-e | --encode] <lat:-90..90> <lon:-180..180> [territory-ISO3]>
25+
26+
Encode a lat/lon to a Mapcode. If the territory code is specified, the
27+
encoding will only succeeed if the lat/lon is located in the territory.
28+
29+
mapcode [-g | --generate] <nrPoints> [<seed>]
30+
31+
Create a test set of a number of uniformly distributed lat/lon pairs,
32+
3D x/y/z points and their Mapcodes). The output format is:
33+
<nr> <lat> <lon> <x> <y> <z>
34+
<territory> <mapcode> (repeated 'nr' rtimes)
35+
<1 empty line>
36+
37+
The points will be uniformly distributed over the 3D surface of the Earth
38+
rather than using uniformly distributed lat/lon values.
39+
Ranges:
40+
nr > 1 lat = -90..90 lon = -180..180 x,y,z = -1..1
41+
+----

0 commit comments

Comments
 (0)