PolylineAlgorithm 1.0.39-preview.9

This is a prerelease version of PolylineAlgorithm.
dotnet add package PolylineAlgorithm --version 1.0.39-preview.9
                    
NuGet\Install-Package PolylineAlgorithm -Version 1.0.39-preview.9
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="PolylineAlgorithm" Version="1.0.39-preview.9" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="PolylineAlgorithm" Version="1.0.39-preview.9" />
                    
Directory.Packages.props
<PackageReference Include="PolylineAlgorithm" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add PolylineAlgorithm --version 1.0.39-preview.9
                    
#r "nuget: PolylineAlgorithm, 1.0.39-preview.9"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package PolylineAlgorithm@1.0.39-preview.9
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=PolylineAlgorithm&version=1.0.39-preview.9&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=PolylineAlgorithm&version=1.0.39-preview.9&prerelease
                    
Install as a Cake Tool

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

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
.NET Core netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.1 is compatible. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.39-preview.9 131 9/11/2025