Returns a string representation of the LatLng.

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 string ToString(
	string format,
	IFormatProvider formatProvider
)

Parameters

format
Type: System..::..String
The format of the LatLng.
formatProvider
Type: System..::..IFormatProvider
An IFormatProvider which provides culture specific formatting information.

Return Value

A String value.

Implements

IFormattable..::..ToString(String, IFormatProvider)

Remarks

The following is a list of valid format values:

  • C - Returns the position as a comma separated string (lat,lng)
  • D - Returns the position as Degrees Minutes Seconds. Ex: 51°N 30´ 00´´ 0°E 0´ 0´´
  • J
  • M - Returns the position as a MicroFormat compatible HTML formatted sting.
  • U - Return the position as a URL compatible string. Values are separated by a forward slash. Ex 51.500000/0.000000

See Also