Creates a LatLng object from a string representation.

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 LatLng Parse(
	string position
)

Parameters

position
Type: System..::..String
The string representation of the position.

Return Value

A String value.

Remarks

The string to parse must contain at least one set of coordinates in decimal notation using a dot (.) as decimal separator. The following is an example of a valid string for parsing as a LatLng: "51.5,0.0"

The following code sample shows how to create a LatLng from a coordinate string:

Examples

CopyC#
LatLng pos = LatLng.Parse("51.5,0.0");

See Also