GeoCoderShortenState Method | |
Print this page
Learn more about Verizon Connect GeoBase.
Get information about the latest release
Convert a given state to its two-letter abbreviation. Given "Texas" ShortenState will return "TX".
Namespace:
Telogis.GeoBase
Assembly:
geobase.net (in geobase.net.dll) Version: 4.99.0.0
Syntax public static string ShortenState(
string state,
Country country
)
Public Shared Function ShortenState (
state As String,
country As Country
) As String
Parameters
- state
- Type: SystemString
Name of a state. - country
- Type: Telogis.GeoBaseCountry
See Country.
Return Value
Type:
StringTwo-letter abbreviation for state
Remarks Capitalization of the state's full name is ignored. The abbreviation is always returned.
as upper-case.
Examples string shortState = GeoCoder.ShortenState("North Carolina", Country.USA);
See Also