@@ -15,35 +15,34 @@ The directory 'mapcodelib' contains the files:
1515
1616 mapcodelib/
1717 mapcoder.h <-- Header file with method prototypes and defines for caller.
18- mapcoder.c
19- basics.h
18+ mapcoder.c <-- Implementation of mapcode routines.
19+ internal_*.h <-- Internal implementataion details for library.
2020
21- mapcode_fastencode.h <-- include unless FAST_ENCODE is undefined
22- mapcode_fastalpha.h <-- needed only if FAST_ALPHA is defined
23-
24- mapcode_countrynames.h <-- optional array with english territory names, including official names
25- mapcode_countrynames_short.h <-- optional array with english territory names
21+ mapcode_alphabets.h <-- Enumeration of supported alphabets (or scripts).
22+ mapcode_territories.h <-- Enumeration of supported territories.
23+
24+ mapcode_legacy.h <-- Courtesy support for legacy calls, may be deprecated in future.
2625
2726Together these provide routine to encode/decode Mapcodes.
2827
2928Documentation, including example snippets of C source code, can be found in
3029
3130 docs/
3231 mapcode_library_c.pdf <-- PDF format.
33- mapcode_library_c.doc <-- Microsoft Word format.
32+ mapcode_library_c.docx <-- Microsoft Word format.
3433
35- A unit test can be found in the ` test ` subdirectory.
36- Compile and run ` unittest.c ` to see if the library performs as expected.
37- Check the ` README.md ` file in ` test ` to see how you can compile it/
34+ A unit test can be found in the ` test ` subdirectory. Compile and run ` unittest.c ` to see
35+ if the library performs as expected:
3836
39- Also see www.mapcode.com for background and reference materials.
37+ cd mapcodelib
38+ gcc -O -c mapcoder.c
39+ cd ../test
40+ gcc -O unittest.c -lm -lpthread -o unittest ../mapcodelib/mapcoder.o
41+ ./unittest
4042
41- Note: this version may be restricted to a particular area of the Earth!
42- In that case, basics.h will state a version number of the for:
43+ Check the ` README.md ` in directory ` test ` for more information.
4344
44- #define mapcode_cversion "1.2xxx"
45-
46- where "xxx" states the geographical limitation.
45+ Also see http://www.mapcode.com for background and reference materials.
4746
4847
4948## A Real-Life Example, The 'mapcode' Codec Tool: ` utility/ `
@@ -53,8 +52,10 @@ of how to use the library.
5352
5453To build the original Mapcode tool, execute:
5554
56- cd utility
57- gcc -O mapcode.cpp -o mapcode
55+ cd mapcodelib
56+ gcc -O -c mapcoder.c
57+ cd ../utility
58+ gcc -O mapcode.cpp -o mapcode ../mapcodelib/mapcoder.o
5859
5960For help, simply execute the binary file 'mapcode' without no arguments.
6061This tool provides a rather extensive command-line interface to encode and
@@ -136,6 +137,23 @@ The Mapcode C/C++ Library has includes a number of fixed data tables, which incr
136137You may not require all of this data, so we've added some options for you to be able to reduce its
137138footprint, for example for embedded applications.
138139
140+ You can specify the define ` MAPCODE_NO_SUPPORT_ALL_LANGUAGES ` to disable support for territory names
141+ in all languages.
142+
143+ Note that English names are always supported and it's also always possible to get territory names
144+ in their locale language.
145+
146+ To add individual support support for other languages (of all territory names), use:
147+
148+ -DMAPCODE_NO_SUPPORT_ALL_LANGUAGES // If not defined, ALL languages are available.
149+ -DMAPCODE_SUPPORT_LANGUAGE_DA // Add individual languages.
150+ -DMAPCODE_SUPPORT_LANGUAGE_DE
151+ -DMAPCODE_SUPPORT_LANGUAGE_FR
152+ -DMAPCODE_SUPPORT_LANGUAGE_HI
153+ -DMAPCODE_SUPPORT_LANGUAGE_NL
154+
155+ The list of support languages may grow over time.
156+
139157## Release Notes
140158
141159### 2.5.2
0 commit comments