Show / Hide Table of Contents

Class CoderExtensions

Contains extension methods related to the coder.

Inheritance
System.Object
CoderExtensions
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: System.Dynamic.ExpandoObject
Assembly: cs.temp.dll.dll
Syntax
public static class CoderExtensions

Methods

BuildLine(Coder, Itinero.LocalGeo.Coordinate, Itinero.LocalGeo.Coordinate)

Builds the shortest path between the two coordinates as a referenced line.

Declaration
public static ReferencedLine BuildLine(this Coder coder, Itinero.LocalGeo.Coordinate coordinate1, Itinero.LocalGeo.Coordinate coordinate2)
Parameters
Coder coder

Itinero.LocalGeo.Coordinate coordinate1

Itinero.LocalGeo.Coordinate coordinate2

Returns
ReferencedLine

BuildLine(Coder, Itinero.LocalGeo.Coordinate, Itinero.LocalGeo.Coordinate, out Route)

Builds the shortest path between the two coordinates as a referenced line.

Declaration
public static ReferencedLine BuildLine(this Coder coder, Itinero.LocalGeo.Coordinate coordinate1, Itinero.LocalGeo.Coordinate coordinate2, out Route route)
Parameters
Coder coder

Itinero.LocalGeo.Coordinate coordinate1

Itinero.LocalGeo.Coordinate coordinate2

Route route

Returns
ReferencedLine

BuildLine(Coder, Itinero.LocalGeo.Coordinate[])

Builds the shortest path along all the given coordinates as a referenced line.

Declaration
public static ReferencedLine BuildLine(this Coder coder, Itinero.LocalGeo.Coordinate[] coordinates)
Parameters
Coder coder

Itinero.LocalGeo.Coordinate[] coordinates

Returns
ReferencedLine

BuildPointAlongLine(Coder, Itinero.LocalGeo.Coordinate)

Builds a point along line location.

Declaration
public static ReferencedPointAlongLine BuildPointAlongLine(this Coder coder, Itinero.LocalGeo.Coordinate coordinate)
Parameters
Coder coder

Itinero.LocalGeo.Coordinate coordinate

Returns
ReferencedPointAlongLine

BuildPointAlongLine(Coder, Itinero.LocalGeo.Coordinate, out RouterPoint)

Builds a point along line location.

Declaration
public static ReferencedPointAlongLine BuildPointAlongLine(this Coder coder, Itinero.LocalGeo.Coordinate coordinate, out RouterPoint resolvedPoint)
Parameters
Coder coder

Itinero.LocalGeo.Coordinate coordinate

RouterPoint resolvedPoint

Returns
ReferencedPointAlongLine

BuildPointAlongLine(Coder, Single, Single)

Builds a point along line location.

Declaration
public static ReferencedPointAlongLine BuildPointAlongLine(this Coder coder, float latitude, float longitude)
Parameters
Coder coder

System.Single latitude

System.Single longitude

Returns
ReferencedPointAlongLine

BuildPointAlongLine(Coder, Single, Single, out RouterPoint)

Builds a point along line location.

Declaration
public static ReferencedPointAlongLine BuildPointAlongLine(this Coder coder, float latitude, float longitude, out RouterPoint resolvedPoint)
Parameters
Coder coder

System.Single latitude

System.Single longitude

RouterPoint resolvedPoint

Returns
ReferencedPointAlongLine

EncodeAsPointAlongLine(Coder, Single, Single)

Encodes a set of coordinates as a point along line.

Declaration
public static string EncodeAsPointAlongLine(this Coder coder, float latitude, float longitude)
Parameters
Coder coder

System.Single latitude

System.Single longitude

Returns
System.String

EncodeAsPointAlongLine(Coder, Single, Single, out RouterPoint)

Encodes a set of coordinates as a point along line.

Declaration
public static string EncodeAsPointAlongLine(this Coder coder, float latitude, float longitude, out RouterPoint resolvedPoint)
Parameters
Coder coder

System.Single latitude

System.Single longitude

RouterPoint resolvedPoint

Returns
System.String

FindShortestPath(Coder, UInt32, UInt32, Boolean)

Finds the shortest path between the given from->to.

Declaration
public static EdgePath<float> FindShortestPath(this Coder coder, uint from, uint to, bool searchForward)
Parameters
Coder coder

System.UInt32 from

System.UInt32 to

System.Boolean searchForward

Returns
EdgePath<System.Single>

FindValidVertexFor(Coder, UInt32, Int64, UInt32, HashSet<UInt32>, Boolean)

Finds a valid vertex for the given vertex but does not search in the direction of the target neighbour.

Declaration
public static EdgePath<float> FindValidVertexFor(this Coder coder, uint vertex, long targetDirectedEdgeId, uint targetVertex, HashSet<uint> excludeSet, bool searchForward)
Parameters
Coder coder

System.UInt32 vertex

System.Int64 targetDirectedEdgeId

System.UInt32 targetVertex

HashSet<System.UInt32> excludeSet

System.Boolean searchForward

Returns
EdgePath<System.Single>

IsOnShortestPath(Coder, UInt32, UInt32, UInt32, UInt32)

Returns true if the sequence vertex1->vertex2 occurs on the shortest path between from and to.

Declaration
public static bool IsOnShortestPath(this Coder coder, uint from, uint to, uint vertex1, uint vertex2)
Parameters
Coder coder

System.UInt32 from

System.UInt32 to

System.UInt32 vertex1

System.UInt32 vertex2

Returns
System.Boolean

IsVertexValid(Coder, UInt32)

Returns true if the given vertex is a valid candidate to use as a location reference point.

Declaration
public static bool IsVertexValid(this Coder coder, uint vertex)
Parameters
Coder coder

System.UInt32 vertex

Returns
System.Boolean

Back to top Built by Itinero, MIT licensed.