Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,190 @@
### YamlMime:ApiPage
title: Class AbstractPolylineDecoder<TPolyline, TCoordinate>
body:
- api1: Class AbstractPolylineDecoder<TPolyline, TCoordinate>
id: PolylineAlgorithm_Abstraction_AbstractPolylineDecoder_2
src: https://github.com/sramekpete/polyline-algorithm-csharp/blob/dependabot/nuget/src/PolylineAlgorithm/Microsoft.Extensions.Logging.Abstractions-9.0.8/src/PolylineAlgorithm/Abstraction/AbstractPolylineDecoder.cs#L23
metadata:
uid: PolylineAlgorithm.Abstraction.AbstractPolylineDecoder`2
commentId: T:PolylineAlgorithm.Abstraction.AbstractPolylineDecoder`2
- facts:
- name: Namespace
value:
text: PolylineAlgorithm.Abstraction
url: PolylineAlgorithm.Abstraction.html
- name: Assembly
value: PolylineAlgorithm.dll
- markdown: >-
Decodes encoded polyline strings into sequences of geographic coordinates.

Implements the <xref href="PolylineAlgorithm.Abstraction.IPolylineDecoder%602" data-throw-if-not-resolved="false"></xref> interface.
- code: 'public abstract class AbstractPolylineDecoder<TPolyline, TCoordinate> : IPolylineDecoder<TPolyline, TCoordinate>'
- h4: Type Parameters
- parameters:
- name: TPolyline
- name: TCoordinate
- h4: Inheritance
- inheritance:
- text: object
url: https://learn.microsoft.com/dotnet/api/system.object
- text: AbstractPolylineDecoder<TPolyline, TCoordinate>
url: PolylineAlgorithm.Abstraction.AbstractPolylineDecoder-2.html
- h4: Implements
- list:
- text: IPolylineDecoder<TPolyline, TCoordinate>
url: PolylineAlgorithm.Abstraction.IPolylineDecoder-2.html
- h4: Inherited Members
- list:
- text: object.Equals(object)
url: https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object)
- text: object.Equals(object, object)
url: https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object-system-object)
- text: object.GetHashCode()
url: https://learn.microsoft.com/dotnet/api/system.object.gethashcode
- text: object.GetType()
url: https://learn.microsoft.com/dotnet/api/system.object.gettype
- text: object.MemberwiseClone()
url: https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone
- text: object.ReferenceEquals(object, object)
url: https://learn.microsoft.com/dotnet/api/system.object.referenceequals
- text: object.ToString()
url: https://learn.microsoft.com/dotnet/api/system.object.tostring
- h2: Remarks
- markdown: This abstract class provides a base implementation for decoding polylines, allowing subclasses to define how to handle specific polyline formats.
- h2: Constructors
- api3: AbstractPolylineDecoder()
id: PolylineAlgorithm_Abstraction_AbstractPolylineDecoder_2__ctor
src: https://github.com/sramekpete/polyline-algorithm-csharp/blob/dependabot/nuget/src/PolylineAlgorithm/Microsoft.Extensions.Logging.Abstractions-9.0.8/src/PolylineAlgorithm/Abstraction/AbstractPolylineDecoder.cs#L27
metadata:
uid: PolylineAlgorithm.Abstraction.AbstractPolylineDecoder`2.#ctor
commentId: M:PolylineAlgorithm.Abstraction.AbstractPolylineDecoder`2.#ctor
- markdown: Initializes a new instance of the <xref href="PolylineAlgorithm.Abstraction.AbstractPolylineDecoder%602" data-throw-if-not-resolved="false"></xref> class with default encoding options.
- code: protected AbstractPolylineDecoder()
- api3: AbstractPolylineDecoder(PolylineEncodingOptions)
id: PolylineAlgorithm_Abstraction_AbstractPolylineDecoder_2__ctor_PolylineAlgorithm_PolylineEncodingOptions_
src: https://github.com/sramekpete/polyline-algorithm-csharp/blob/dependabot/nuget/src/PolylineAlgorithm/Microsoft.Extensions.Logging.Abstractions-9.0.8/src/PolylineAlgorithm/Abstraction/AbstractPolylineDecoder.cs#L39
metadata:
uid: PolylineAlgorithm.Abstraction.AbstractPolylineDecoder`2.#ctor(PolylineAlgorithm.PolylineEncodingOptions)
commentId: M:PolylineAlgorithm.Abstraction.AbstractPolylineDecoder`2.#ctor(PolylineAlgorithm.PolylineEncodingOptions)
- markdown: Initializes a new instance of the <xref href="PolylineAlgorithm.Abstraction.AbstractPolylineDecoder%602" data-throw-if-not-resolved="false"></xref> class with the specified encoding options.
- code: protected AbstractPolylineDecoder(PolylineEncodingOptions options)
- h4: Parameters
- parameters:
- name: options
type:
- text: PolylineEncodingOptions
url: PolylineAlgorithm.PolylineEncodingOptions.html
description: The <xref href="PolylineAlgorithm.PolylineEncodingOptions" data-throw-if-not-resolved="false"></xref> to use for encoding operations.
- h4: Exceptions
- parameters:
- type:
- text: ArgumentNullException
url: https://learn.microsoft.com/dotnet/api/system.argumentnullexception
description: Thrown when <code class="paramref">options</code> is <a href="https://learn.microsoft.com/dotnet/csharp/language-reference/keywords/null">null</a>
- h2: Properties
- api3: Options
id: PolylineAlgorithm_Abstraction_AbstractPolylineDecoder_2_Options
src: https://github.com/sramekpete/polyline-algorithm-csharp/blob/dependabot/nuget/src/PolylineAlgorithm/Microsoft.Extensions.Logging.Abstractions-9.0.8/src/PolylineAlgorithm/Abstraction/AbstractPolylineDecoder.cs#L46
metadata:
uid: PolylineAlgorithm.Abstraction.AbstractPolylineDecoder`2.Options
commentId: P:PolylineAlgorithm.Abstraction.AbstractPolylineDecoder`2.Options
- markdown: Gets the encoding options used by this polyline encoder.
- code: public PolylineEncodingOptions Options { get; }
- h4: Property Value
- parameters:
- type:
- text: PolylineEncodingOptions
url: PolylineAlgorithm.PolylineEncodingOptions.html
- h2: Methods
- api3: CreateCoordinate(double, double)
id: PolylineAlgorithm_Abstraction_AbstractPolylineDecoder_2_CreateCoordinate_System_Double_System_Double_
src: https://github.com/sramekpete/polyline-algorithm-csharp/blob/dependabot/nuget/src/PolylineAlgorithm/Microsoft.Extensions.Logging.Abstractions-9.0.8/src/PolylineAlgorithm/Abstraction/AbstractPolylineDecoder.cs#L153
metadata:
uid: PolylineAlgorithm.Abstraction.AbstractPolylineDecoder`2.CreateCoordinate(System.Double,System.Double)
commentId: M:PolylineAlgorithm.Abstraction.AbstractPolylineDecoder`2.CreateCoordinate(System.Double,System.Double)
- markdown: Creates a coordinate instance from the given latitude and longitude values.
- code: protected abstract TCoordinate CreateCoordinate(double latitude, double longitude)
- h4: Parameters
- parameters:
- name: latitude
type:
- text: double
url: https://learn.microsoft.com/dotnet/api/system.double
description: The latitude value.
- name: longitude
type:
- text: double
url: https://learn.microsoft.com/dotnet/api/system.double
description: The longitude value.
- h4: Returns
- parameters:
- type:
- TCoordinate
description: A coordinate instance of type <code class="typeparamref">TCoordinate</code>.
- api3: Decode(TPolyline)
id: PolylineAlgorithm_Abstraction_AbstractPolylineDecoder_2_Decode__0_
src: https://github.com/sramekpete/polyline-algorithm-csharp/blob/dependabot/nuget/src/PolylineAlgorithm/Microsoft.Extensions.Logging.Abstractions-9.0.8/src/PolylineAlgorithm/Abstraction/AbstractPolylineDecoder.cs#L66
metadata:
uid: PolylineAlgorithm.Abstraction.AbstractPolylineDecoder`2.Decode(`0)
commentId: M:PolylineAlgorithm.Abstraction.AbstractPolylineDecoder`2.Decode(`0)
- markdown: Decodes an encoded <code class="typeparamref">TPolyline</code> into a sequence of <code class="typeparamref">TCoordinate</code> instances.
- code: public IEnumerable<TCoordinate> Decode(TPolyline polyline)
- h4: Parameters
- parameters:
- name: polyline
type:
- TPolyline
description: The <code class="typeparamref">TPolyline</code> instance containing the encoded polyline string to decode.
- h4: Returns
- parameters:
- type:
- text: IEnumerable
url: https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1
- <
- TCoordinate
- '>'
description: An <xref href="System.Collections.Generic.IEnumerable%601" data-throw-if-not-resolved="false"></xref> of <code class="typeparamref">TCoordinate</code> representing the decoded latitude and longitude pairs.
- h4: Exceptions
- parameters:
- type:
- text: ArgumentNullException
url: https://learn.microsoft.com/dotnet/api/system.argumentnullexception
description: Thrown when <code class="paramref">polyline</code> is <a href="https://learn.microsoft.com/dotnet/csharp/language-reference/keywords/null">null</a>.
- type:
- text: ArgumentException
url: https://learn.microsoft.com/dotnet/api/system.argumentexception
description: Thrown when <code class="paramref">polyline</code> is empty.
- type:
- text: InvalidPolylineException
url: PolylineAlgorithm.InvalidPolylineException.html
description: Thrown when the polyline format is invalid or malformed at a specific position.
- api3: GetReadOnlyMemory(TPolyline)
id: PolylineAlgorithm_Abstraction_AbstractPolylineDecoder_2_GetReadOnlyMemory__0_
src: https://github.com/sramekpete/polyline-algorithm-csharp/blob/dependabot/nuget/src/PolylineAlgorithm/Microsoft.Extensions.Logging.Abstractions-9.0.8/src/PolylineAlgorithm/Abstraction/AbstractPolylineDecoder.cs#L139
metadata:
uid: PolylineAlgorithm.Abstraction.AbstractPolylineDecoder`2.GetReadOnlyMemory(`0)
commentId: M:PolylineAlgorithm.Abstraction.AbstractPolylineDecoder`2.GetReadOnlyMemory(`0)
- markdown: Converts the provided polyline instance into a <xref href="System.ReadOnlyMemory%601" data-throw-if-not-resolved="false"></xref> for decoding.
- code: protected abstract ReadOnlyMemory<char> GetReadOnlyMemory(TPolyline polyline)
- h4: Parameters
- parameters:
- name: polyline
type:
- TPolyline
description: The <code class="typeparamref">TPolyline</code> instance containing the encoded polyline data to decode.
- h4: Returns
- parameters:
- type:
- text: ReadOnlyMemory
url: https://learn.microsoft.com/dotnet/api/system.readonlymemory-1
- <
- text: char
url: https://learn.microsoft.com/dotnet/api/system.char
- '>'
description: A <xref href="System.ReadOnlyMemory%601" data-throw-if-not-resolved="false"></xref> representing the encoded polyline data.
languageId: csharp
metadata:
description: >-
Decodes encoded polyline strings into sequences of geographic coordinates.

Implements the interface.
Loading
Loading