Welcome to PolylineAlgorithm for .NET, a modern library for Google-compliant polyline encoding and decoding with strong input validation, extensible API design, and robust performance.
PolylineAlgorithm provides tools for encoding a sequence of geographic coordinates into a compact string format used by Google Maps and other mapping platforms, and for decoding those strings back into coordinates. Its simple API and thorough documentation make it suitable for .NET Core, .NET 5+, and any framework supporting netstandard2.1.
- Standards compliance: Implements Google's Encoded Polyline Algorithm as specified
- Immutable, strongly-typed objects: Guarantees reliability and thread safety
- Extensible: Custom coordinate/polyline support via abstract base classes and interfaces
- Robust input validation: Throws descriptive exceptions for out-of-range or malformed input
- Configuration and logging: Advanced options and integration with
ILoggerFactory - Benchmarked and tested: Includes unit and performance tests
Install via the .NET CLI:
dotnet add package PolylineAlgorithmThen explore the versioned guide and API reference below to learn more.
{versions_section}