File tree Expand file tree Collapse file tree 1 file changed +28
-1
lines changed
Expand file tree Collapse file tree 1 file changed +28
-1
lines changed Original file line number Diff line number Diff line change @@ -11,4 +11,31 @@ This directory contains the original C++ Mapcode sources and an application to
1111To 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+ +----
You can’t perform that action at this time.
0 commit comments