<commit_before># Google Coordinate Encoder

This a C++ implementation of Google's Polyline Algorithm Format. It takes
takes floating point latitude and longitude positions and encodes them for a
query to one of Google's APIs. I made use of the encoding in my [Heightmaps
with Google Elevations](http://chrisbrough.com/project/2012/11/Heightmaps-with-Google-Elevations/) project.

## Usage

Include the header/source files or compile it to a library. Then create an
array of coordinates and pass it into the `encode` function with an encoding
result array with a max length of 2048 (URL character limit).
<commit_msg>brief example<commit_after># Google Coordinate Encoder

This a C++ implementation of Google's Polyline Algorithm Format. It takes
takes floating point latitude and longitude positions and encodes them for a
query to one of Google's APIs. I made use of the encoding in my [Heightmaps
with Google Elevations](http://chrisbrough.com/project/2012/11/Heightmaps-with-Google-Elevations/) project.

## Usage

Include the header/source files or compile it to a library. Then create an
array of coordinates and pass it into the `encode` function with an encoding
result array with a max length of 2048 (URL character limit).

    coordinates[500] : Coordinate
    coordinates_encoded[2048] : char
    coordinates_encoded_count : int

    coordinates_encoded_count = encode(coordinates, 500, coordinates_encoded, 2048);

See `test.cpp` for complete example.

{'fraction_non_alphanumeric': 0.06147540983606557, 'fraction_numerical': 0.023224043715846996, 'mean_word_length': 4.790513833992095, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2044116', 'n_tokens_mistral': 415, 'n_tokens_neox': 376, 'n_words': 185}