Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

sramekpete/polyline-algorithm-csharp

Repository files navigation

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

About

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

Topics

Resources

License

Stars

Watchers

Forks

Contributors 4

Languages

AltStyle によって変換されたページ (->オリジナル) /