Parses a string of coordinates to create a List of LatLngs.

Namespace: Reimers.Google.Map
Assembly: Reimers.Google.Map (in Reimers.Google.Map.dll) Version: 5.3.95.699 (5.3.95.699)

Syntax

C#
public static IList<LatLng> ParsePointString(
	string points,
	bool latitudeFirst
)

Parameters

points
Type: System..::..String
The points as a String.
latitudeFirst
Type: System..::..Boolean
A Boolean value setting whether coordinates are given with the latitude before longitude - lat,lng.

Return Value

A List of LatLngs.

Remarks

The expected string format is dd.ddd,dd.ddd dd.ddd,dd.ddd dd.ddd,dd.ddd - a sequence of comma separated coordinates using dot (.) as a required decimal separator. Negative number use a minue (-) prefix.

If latitudeFirst is set to true then the expected order is lat/lng, otherwise lng/lat.

See Also