co-maps/3party/open-location-code
2025-11-22 13:58:55 +01:00
..
BUILD Repo created 2025-11-22 13:58:55 +01:00
CMakeLists.txt Repo created 2025-11-22 13:58:55 +01:00
codearea.cc Repo created 2025-11-22 13:58:55 +01:00
codearea.h Repo created 2025-11-22 13:58:55 +01:00
LICENSE Repo created 2025-11-22 13:58:55 +01:00
openlocationcode.cc Repo created 2025-11-22 13:58:55 +01:00
openlocationcode.h Repo created 2025-11-22 13:58:55 +01:00
README.md Repo created 2025-11-22 13:58:55 +01:00

Open Location Code C++ API

This is the C++ implementation of the Open Location Code API.

Usage

See openlocationcode_example.cc for how to use the library. To run the example, use:

bazel run openlocationcode_example

Development

The library is built/tested using Bazel. To build the library, use:

bazel build openlocationcode

To run the tests, use:

bazel test --test_output=all openlocationcode_test

The tests use the CSV files in the test_data folder. Make sure you copy this folder to the root of your local workspace.

Formatting

Code must be formatted using clang-format, and this will be checked in the tests. You can format your code using the script:

sh clang_check.sh