Address Class
This documentation is no longer available on MSDN. It is available as a CHM or PDF download. For the newest Geocoding, Imagery, Routing and Traffic services, see Bing Maps REST Services.
Contains parts of an address and the complete address.
Syntax
public class Address
Public Class Address
Constructor
Name |
Description |
---|---|
Initializes a new instance of an Address object. |
Public Properties
Name |
Description |
---|---|
A string specifying the street line of an address. The AddressLine property is the most precise, official line for an address relative to the postal agency servicing the area specified by the Locality, PostalTown, or PostalCode properties. Typical use of this element would be to enclose a street address, private bag, or any other similar official address. Optional. |
|
A string specifying the subdivision name within the country or region for an address. This element is also commonly treated as the first order administrative subdivision, but in some cases it is the second, third, or fourth order subdivision within a country, dependency, or region. Optional. |
|
A string specifying the country or region name of an address. Optional. |
|
A string specifying the higher level administrative subdivision used in some countries or regions. Optional. |
|
A string containing the complete address. |
|
A string specifying the populated place for the address. This commonly refers to a city, but may refer to a suburb or neighborhood in certain countries. Optional. |
|
A string specifying the post code, postal code, or ZIP Code of an address. Optional. |
|
A string specifying the postal city of an address. Optional. |
Remarks
For an Address object to be valid, it must contain at least one context element such as PostalTown, PostalCode, AdminDistrict, District, Locality, or CountryRegion.
The following table shows how parts of an address in specific countries map to the properties of the Address class.
Property |
Austria, Belgium, Denmark, Finland, France, Germany, Greece, Luxembourg, Norway, Sweden, Switzerland, Taiwan, and The Netherlands |
Australia and Brazil |
Canada |
Italy, Portugal, and Spain |
Hong Kong |
Puerto Rico |
Singapore and New Zealand |
United Kingdom |
United States |
---|---|---|---|---|---|---|---|---|---|
AddressLine |
Street address |
Street address |
Street address |
Street address |
Street address |
Street address |
Street address |
Address line 1 |
Street address |
Locality |
City |
City |
City |
City |
City |
City |
City |
Address line 2 |
City |
PostalTown |
Postal city |
City |
|||||||
AdminDistrict |
State |
Province |
Province |
Territory |
State |
||||
District |
District |
||||||||
PostalCode |
Postcode |
Postal code |
Postal code |
Postcode |
Postal code |
Postcode |
Postcode |
Zip code |
See Also
GeocodeRequest.Address Property
GeocodeResult.Address Property