GooglePolylineAlgoritm.Encode method

Version 1.0.0-beta002
.NET Framework 4.7
Namespace Skybrud.Essentials.Maps.Google
Assembly Skybrud.Essentials.Maps.dll

Encode(IPoint)

Static

Encodes the specified point using Google's polyline algorithm.

public static string Encode(IPoint point)

Parameters

point IPoint

The point to be encoded.

Returns

The encoded string of coordinates.

Encode(IPolygon)

Static

Encodes the specified polygon using Google's polyline algorithm.

public static string Encode(IPolygon polygon)

Parameters

polygon IPolygon

The polygon to be encoded.

Returns

The encoded string of coordinates.

Encode(IMultiPolygon)

Static

Encodes the specified multiPolygon using Google's polyline algorithm.

The polyline algorithm doesn't directly support multiple polygons and the encoded strings for each polygons are therefor separated by System.Environment.NewLine.

public static string Encode(IMultiPolygon multiPolygon)

Parameters

multiPolygon IMultiPolygon

A collection of polygons to be encoded.

Returns

The encoded string of coordinates.

Encode(ILineString)

Static

Encodes the specified lineString using Google's polyline algorithm.

public static string Encode(ILineString lineString)

Parameters

lineString ILineString

The line string to be encoded.

Returns

The encoded string of coordinates.

Encode(IEnumerable<T>)

Static

Encodes the specified points using Google's polyline algorithm.

public static string Encode(IEnumerable<T> points)

Parameters

points IEnumerable<T>

The points to be encoded.

Returns

The encoded string of coordinates.