Click or drag to resize

LatLon Constructor (String)

Verizon Connect Logo
Print this page
Learn more about Verizon Connect GeoBase.
Get information about the latest release
Takes a string of form "latitude,longitude" and creates a LatLon object.

Namespace:  Telogis.GeoBase
Assembly:  geobase.net (in geobase.net.dll) Version: 4.99.0.0
Syntax
public LatLon(
	string latlon
)

Parameters

latlon
Type: SystemString
The string containing the latitude and longitude components.
Exceptions
ExceptionCondition
FormatExceptionThrown when the formatting is not 'lat,lon' or 'lat,lon,zlevel'.
Examples
C#
String locString = "33.584444, -117.731874";
LatLon newLatLon = new LatLon(locString);
Console.WriteLine("Latitude {0}, Longitude {1}", newLatLon.Lat, newLatLon.Lon);
// 'Latitude 33.5844439914491, Longitude -117.731874300949'
See Also