GooglePolylineAlgoritm.Encode method
Namespace | Skybrud.Essentials.Maps.Google |
---|---|
Assembly | Skybrud.Essentials.Maps.dll |
Encode(IPoint)
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)
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)
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)
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>)
Encodes the specified points
using Google's polyline algorithm.
public static string Encode(IEnumerable<T> points)
Parameters
The points to be encoded.
Returns
The encoded string of coordinates.