The Address type exposes the following members.

Methods

  NameDescription
Public methodStatic memberCopy
copy the contents of one address to another address
Public methodStatic memberDecimalDegreesToDMSText
Convert decimal degrees to String representation of Degrees minutes seconds Negative input is not converted to West or South, all input is returned as absolute value (with no sign) it is up to the caller to add the direction.
Public methodStatic memberDecimalDegreesToDMText
Convert decimal degrees to String representation of Degrees minutes and decimal minutes (no seconds) Negative input is not converted to West or South, all input is returned as as absolute value (with no sign) it is up to the caller to add the direction.
Public methodEquals
Public methodStatic memberLatitudeAsStringWithNorthSouthIndicator
Get Latitude as string Includes localized North or South text prefix
Public methodLatitudeFromString
Set Latitude from string Expects a '-' sign for South Latitudes any character other than a digit, decimal (period) or a - sign is ignored completely and not used in parsing Accepted types of co-ordinates are: Decimal degrees: "-49.3435" Degree decimal minutes: "49°22.456" Degrees Minutes Seconds Decimal seconds: "49° 22' 13.456''" Degree symbols are ignored and thus optional as well as minute ' or seconds '' symbols traditionally used. All that is important is that there is a space or non-numeric character between the groups of digits. If a single number is found it is assumed to be decimal degrees. If two separate numbers are found it is assumed to be Degree decimal minutes If three separate groups of numbers are found it is assumed to be Degress minutes seconds
Public methodStatic memberLatitudeToString
Convert decimal Latitude to full string representation in default format
Public methodStatic memberLongitudeAsStringWithEastWestIndicator
Get Longitude as string in desired format
Public methodLongitudeFromString
Set Longitude from string Expects a '-' sign for West longitudes any character other than a digit, decimal (period) or a - sign is ignored completely and not used in parsing Accepted types of co-ordinates are: Decimal degrees: "-49.3435" Degree decimal minutes: "49°22.456" Degrees Minutes Seconds Decimal seconds: "49° 22' 13.456''" Degree symbols are ignored and thus optional as well as minute ' or seconds '' symbols traditionally used. All that is important is that there is a space or non-numeric character between the groups of digits. If a single number is found it is assumed to be decimal degrees. If two separate numbers are found it is assumed to be Degree decimal minutes If three separate groups of numbers are found it is assumed to be Degress minutes seconds
Public methodStatic memberLongitudeToString
Get full Longitude as string using default format
Public methodStatic memberStringToDecimalDegrees
Parse a string coordinate and return a double coordinate value Negative symbol must be first character if a south latitude or a west longitude is input. All characters other than digits, decimal point (one only) and negative symbol are ignored. Accepted types of co-ordinates are: Decimal degrees: "-49.3435" Degree decimal minutes: "49°22.456" Degrees Minutes Seconds Decimal seconds: "49° 22' 13.456''" Degree symbols are ignored and thus optional as well as minute ' or seconds '' symbols traditionally used. All that is important is that there is a space or non-numeric character between the groups of digits. If a single number is found it is assumed to be decimal degrees. If two separate numbers are found it is assumed to be Degree decimal minutes If three separate groups of numbers are found it is assumed to be Degress minutes seconds If a null or empty string is the parameter then returns 0
Public methodToString

See Also