Skip to content

Commit 097360f

Browse files
committed
formatting and style
1 parent 67727ad commit 097360f

14 files changed

+17
-24
lines changed

README.md

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,9 @@
44
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
55
[![Build](https://github.com/sramekpete/polyline-algorithm-csharp/actions/workflows/build.yml/badge.svg)](https://github.com/sramekpete/polyline-algorithm-csharp/actions/workflows/build.yml)
66

7-
Lightweight .NET Standard 2.1 library implementing Google Encoded Polyline Algorithm.
8-
Package should be primarily used as baseline for libraries that implement polyline encoding/decoding functionality.
7+
Lightweight .NET Standard 2.1 library implementing Google Encoded Polyline Algorithm. More info about the algorithm can be found at [Google Developers](https://developers.google.com/maps/documentation/utilities/polylinealgorithm).
98

10-
More info about the algorithm can be found at [Google Developers](https://developers.google.com/maps/documentation/utilities/polylinealgorithm).
11-
12-
## Prerequisites
13-
14-
PolylineAlgorithm for .NET is available as a NuGet package targeting .NET Standard 2.1.
9+
## Installation
1510

1611
.NET CLI: `dotnet add package PolylineAlgorithm`
1712

@@ -26,4 +21,4 @@ In that case you can use `PolylineEncoding` static class that offers static meth
2621

2722
## Documentation
2823

29-
Documentation is can be found at [https://sramekpete.github.io/polyline-algorithm-csharp/](https://sramekpete.github.io/polyline-algorithm-csharp/).
24+
Documentation is can be found at [https://sramekpete.github.io/polyline-algorithm-csharp/](https://sramekpete.github.io/polyline-algorithm-csharp/).

src/PolylineAlgorithm/Abstraction/AbstractPolylineEncoder.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -217,5 +217,4 @@ static void ValidateBuffer(ILogger<AbstractPolylineDecoder<TPolyline, TCoordinat
217217
/// </returns>
218218

219219
protected abstract double GetLatitude(TCoordinate current);
220-
}
221-
220+
}

src/PolylineAlgorithm/Abstraction/IPolylineDecoder.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ public interface IPolylineDecoder<TPolyline, TCoordinate> {
2121
/// An <see cref="IEnumerable{T}"/> of <typeparamref name="TCoordinate"/> representing the decoded latitude and longitude pairs.
2222
/// </returns>
2323
IEnumerable<TCoordinate> Decode(TPolyline polyline);
24-
}
24+
}

src/PolylineAlgorithm/Abstraction/IPolylineEncoder.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ public interface IPolylineEncoder<TCoordinate, TPolyline> {
2121
/// A <typeparamref name="TPolyline"/> containing the encoded polyline string that represents the input coordinates.
2222
/// </returns>
2323
TPolyline Encode(IEnumerable<TCoordinate> coordinates);
24-
}
24+
}

src/PolylineAlgorithm/Coordinate.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,4 +129,4 @@ public bool Equals(Coordinate other) {
129129
public static bool operator !=(Coordinate left, Coordinate right) => !(left == right);
130130

131131
#endregion
132-
}
132+
}

src/PolylineAlgorithm/Extensions/PolylineDecoderExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,4 +82,4 @@ public static IEnumerable<Coordinate> Decode(this IPolylineDecoder<Polyline, Coo
8282

8383
return decoder.Decode(Polyline.FromMemory(polyline));
8484
}
85-
}
85+
}

src/PolylineAlgorithm/Extensions/PolylineEncoderExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,4 +59,4 @@ public static Polyline Encode(this IPolylineEncoder<Coordinate, Polyline> encode
5959

6060
return encoder.Encode(coordinates);
6161
}
62-
}
62+
}

src/PolylineAlgorithm/Internal/CoordinateVariance.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ internal struct CoordinateVariance {
2222
/// Initializes a new instance of the <see cref="CoordinateVariance"/> struct with the default latitude and longitude deltas.
2323
/// </summary>
2424
public CoordinateVariance() {
25-
_current =(default, default);
25+
_current = (default, default);
2626
}
2727

2828
/// <summary>
@@ -77,4 +77,4 @@ public void Next(int latitude, int longitude) {
7777
/// </returns>
7878
public override readonly string ToString()
7979
=> $"{{ Coordinate: {{ Latitude: {Latitude}, Longitude: {Longitude} }}, Variance: {{ Latitude: {Latitude}, Longitude: {Longitude} }} }}";
80-
}
80+
}

src/PolylineAlgorithm/Internal/Defaults.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,4 +142,4 @@ internal static class Length {
142142
}
143143
}
144144
}
145-
}
145+
}

src/PolylineAlgorithm/Internal/Logging/LogInfoExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ internal static partial class LogInfoExtensions {
1919

2020
[LoggerMessage(EVENT_ID_BASE + 3, LOG_LEVEL, "Operation {operationName} has finished.")]
2121
internal static partial void LogOperationFinishedInfo(this ILogger logger, string operationName);
22-
}
22+
}

0 commit comments

Comments
 (0)