The Address type exposes the following members.
Methods
| Name | Description | |
|---|---|---|
| Copy |
copy the contents of one address to another address
| |
| DecimalDegreesToDMSText |
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.
| |
| DecimalDegreesToDMText |
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.
| |
| Equals | (Overrides Object..::..Equals(Object).) | |
| LatitudeAsStringWithNorthSouthIndicator |
Get Latitude as string
Includes localized North or South text prefix
| |
| LatitudeFromString |
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
| |
| LatitudeToString |
Convert decimal Latitude to full string representation in default format
| |
| LongitudeAsStringWithEastWestIndicator |
Get Longitude as string in desired format
| |
| LongitudeFromString |
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
| |
| LongitudeToString |
Get full Longitude as string using default format
| |
| StringToDecimalDegrees |
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
| |
| ToString | (Overrides Object..::..ToString()()()().) |
Properties
| Name | Description | |
|---|---|---|
| AddressType |
Type of address (physical (deliver) or postal)
| |
| City |
Get/set city for this address - maximum 255 char - may have default
entered by global/regional settings
| |
| Country |
Get/set country for this address - maximum 255 char - may have default
entered by global/regional settings
| |
| CountryCode |
Get/set ISO country code for this country, maximum 2 characters
required for all non-US address lookups
| |
| Created | ||
| Creator | ||
| DeliveryAddress |
Get/set street address - maximum 255 char
| |
| FullAddress |
Get complete address as single string for display
following US / Canadian postal regulations recommendations:
DELIVERY ADDRESS
CITY/STATE/ZIP
COUNTRY
| |
| GlobalAddressID |
ID of the one and only Global object's address
(since a global object has no ID itself, this value is
used as the ID for it)
| |
| IsEmpty |
Address object is empty (not filled in)?
| |
| LatHemisphere |
Get/Set the Hemisphere of the current Latitude coordinate
(0 Latitude is always considered North for display purposes)
| |
| Latitude |
Latitude in decimal degrees
| |
| LatitudeText |
Latitude as text
SET: parses most text formats of different styles co-ordinates
GET: Returns text formatted as per global coordinate style setting
| |
| LongHemisphere |
Get/Set the Hemisphere of the current Longitude coordinate
(0 Longitude is always considered West for display purposes)
| |
| Longitude |
Longitude in decimal degrees
| |
| LongitudeText |
Longitude as text
SET: parses most text formats of different styles co-ordinates
GET: Returns text formatted as per global coordinate style setting
| |
| MapQuestURL |
Returns a valid MapQuest url for
opening a map of address in a web page
| |
| Modified | ||
| Modifier | ||
| Postal |
Get/set postal code or zip code for this address - maximum 255 char
| |
| RootObjectID |
ID of object this address belongs to
| |
| RootObjectType |
The root object type this address applies to
Valid settings are:
Unit, HeadOffice, Vendor, Client
Global or Region
| |
| StateProv |
Get/set state or province for this address - maximum 255 char - may
have default entered by global/regional settings
|