Commit graph

5 commits

Author SHA1 Message Date
fhajny
3e61d0a642 Update geography/mapcode to 2.5.4.
- Added encodeLatLonToSelectedMapcode as a convenience for languages
  that use the C library, but have difficulties dealing with
  multi-dimensional arrays (like Swift).
2017-10-03 12:15:02 +00:00
fhajny
ea09fdefe3 Update geography/mapcode to 2.5.2.
- Added unit test for floating point error with code "40822.schol".
- Added locale support.
- Added many languages.
- Hardened unit tests.
2017-01-16 13:49:40 +00:00
fhajny
da8fc2ef4b Update geography/mapcode to 2.5.1. Fix cmake build.
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-11-03 15:06:41 +00:00
fhajny
fe8af99146 Update geography/mapcode to 2.4.0. Build with thread support.
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-26 10:50:33 +00:00
fhajny
b18df60a9d Import mapcode 2.3.0 as geography/mapcode.
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.
2016-10-25 08:22:27 +00:00