summaryrefslogtreecommitdiff
path: root/geography/mapcode
AgeCommit message (Collapse)AuthorFilesLines
2017-01-16Update geography/mapcode to 2.5.2.fhajny3-14/+21
- Added unit test for floating point error with code "40822.schol". - Added locale support. - Added many languages. - Hardened unit tests.
2016-11-08Expand -lm arg to all platforms. Fixes build elsewhere.fhajny1-2/+2
2016-11-03Update geography/mapcode to 2.5.1. Fix cmake build.fhajny3-14/+44
2.5.1 - Updated unit test to compile with plain C and added some test cases. 2.5.0 - Added support for getting territory names in English and local alphabets. - Added much improved unit test scripts to run gprof, valgrind, the CLang address sanitize and compare the output of the new library with and older version.
2016-10-26Update geography/mapcode to 2.4.0. Build with thread support.fhajny2-7/+10
Changes in 2.4.0 - Added scripts for Korean (Choson'gul / Hangul), Burmese, Khmer, Sinhalese, Thaana (Maldivan), Chinese (Zhuyin, Bopomofo), Tifinagh (Berber), Tamil, Amharic, Telugu, Odia, Kannada, Gujarati. - Renamed constants to more correct terms (Malay to Malayalam, Hindi to Devanagari). - Added getAlphabetsForTerritory(t), returning the most commonly used alphabets for territory t. - Improved some characters for Arabic and Devanagari. - Fixed Bengali to also support Assamese. - Improved readability of implementation. - Added conditional define option for unittest: NO_POSIX_THREADS. Add -DNO_POSIX_THREADS to your compiler command-line to not use pthreads.h, for example, on MSVC platforms. - Added conditional define option library: NO_FAST_ENCODE. Add -DNO_FAST_ENCODE to your compiler command-line to not use the fast encoding (default is to use fast encoding). Using fast encoding speeds up de encoding by a factor of 2. For normal use, there is no reason not to use fast encoding. - Added parseMapcodeString to get individual mapcode elements, like the territory code, the 'proper' mapcode (without the territory and precision extension) and the precision extension parsed from a (user) input string. - Additional bug fixes.
2016-10-25Import mapcode 2.3.0 as geography/mapcode.fhajny5-0/+59
Based on a PR by Aleksej Lebedev. A mapcode represents a location. Every location on Earth can be represented by a mapcode. Mapcodes were designed to be short, easy to recognise, remember and communicate. They are precise to a few meters, which is good enough for every-day use.