LatLon Constructor (String) | |
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
)
Public Sub New (
latlon As String
)
Parameters
- latlon
- Type: SystemString
The string containing the latitude and longitude components.
Exceptions Exception | Condition |
---|
FormatException | Thrown when the formatting is not 'lat,lon' or 'lat,lon,zlevel'. |
Examples String locString = "33.584444, -117.731874";
LatLon newLatLon = new LatLon(locString);
Console.WriteLine("Latitude {0}, Longitude {1}", newLatLon.Lat, newLatLon.Lon);
See Also