Lightweight .NET Standard 2.0 library implementing Google Polyline Algorithm.


Keywords
csharp, google, polyline, algorithm, google-polyline, library, polyline-algorithm, polyline-decoder, polyline-encoder
License
MIT
Install
Install-Package Cloudikka.PolylineAlgorithm -Version 1.0.0.1139-beta

Documentation

PolylineAlgorithm for .NET

NuGet License: MIT Build

Lightweight .NET Standard 2.1 library implementing Google Encoded Polyline Algorithm. Package should be primarily used as baseline for libraries that implement polyline encoding/decoding functionality.

More info about the algorithm can be found at Google Developers.

Prerequisites

PolylineAlgorithm for .NET is available as a NuGet package targeting .NET Standard 2.1.

.NET CLI: dotnet add package PolylineAlgorithm

Package Manager Console: Install-Package PolylineAlgorithm

How to use it

In the majority of cases you would like to inherit AbstractPolylineDecoder<TPolyline, TCoordinate> and AbstractPolylineEncoder<TCoordinate, TPolyline> classes and implement abstract methods that are mainly responsible for extracting data from your coordinate and polyline types and creating new instances of them.

In some cases you may want to implement your own decoder and encoder from scratch. In that case you can use PolylineEncoding static class that offers static methods for encoding and decoding polyline segments.

Documentation

Documentation is can be found at https://sramekpete.github.io/polyline-algorithm-csharp/.