File tree Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -47,8 +47,17 @@ typedef struct {
4747} Mapcodes ;
4848
4949
50+ /**
51+ * The MapcodeElement structure is returned by decodeXXX and can be used to inspect or clean up the
52+ * mapcode input. The field territoryISO contains the cleaned up territory code from the input, but
53+ * the code may be abbreviated, or even missing (if it wasn't available in the input).
54+ *
55+ * If you want to get a full territory code, use:
56+ * char isoName[MAX_ISOCODE_LEN + 1];
57+ * getTerritoryIsoName(isoName, mapcodeElement.territoryCode, 0)
58+ */
5059typedef struct {
51- char territoryISO [MAX_ISOCODE_LEN + 1 ]; // The (trimmed and uppercased) candidate territory ISO3166 code.
60+ char territoryISO [MAX_ISOCODE_LEN + 1 ]; // The (trimmed and uppercased) territory code, from the input .
5261 enum Territory territoryCode ; // The territory, as recognized and disambiguated from territoryISO.
5362 char properMapcode [MAX_PROPER_MAPCODE_LEN + 1 ]; // The (romanised) mapcode excl. territory or extension.
5463 int indexOfDot ; // Position of dot in properMapcode (a value between 2 and 5).
Original file line number Diff line number Diff line change 1+ #! /bin/sh
2+ echo " Compiling..."
3+ cd ../mapcodelib
4+ gcc -O3 -c mapcoder.c
5+ cd ../utility
6+ gcc -O3 mapcode.cpp -lm -o mapcode ../mapcodelib/mapcoder.o
7+
You can’t perform that action at this time.
0 commit comments