Skip to content

sramekpete/polyline-algorithm-csharp

Repository files navigation

PolylineAlgorithm.Abstraction

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.Abstraction is available as a NuGet package targeting .NET Standard 2.1.

.NET CLI: dotnet add package PolylineAlgorithm.Abstraction

Package Manager Console: Install-Package PolylineAlgorithm.Abstraction

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/.

About

Lightweight .NET Standard 2.1 library implementing Google Encoded Polyline Algorithm.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Contributors 3

  •  
  •  
  •  

Languages