EMS.Address

A structured address.

Summary
EMS.AddressA structured address.
Properties
number{String} This is the street number and maybe null.
street{EMS.Street} This is the street object and maybe null.
suburb{String} This is the suburb and maybe null.
postcode{String} This is the postcode and maybe null.
regions{Array} This is the regions that the address is within.
region{String} This is the region name.
type{String} This is the region type, only applicable if the address itself is a region.
state{String} This is the state.
Constructor
EMS.Address
Functions
equals
clone{EMS.Address} Returns a clone/copy of this address.
toString{String} The address as a string.

Properties

number

{String} This is the street number and maybe null.

street

{EMS.Street} This is the street object and maybe null.

suburb

{String} This is the suburb and maybe null.

postcode

{String} This is the postcode and maybe null.

regions

{Array} This is the regions that the address is within.  This maybe null.

region

{String} This is the region name.  This only applies if the address itself is a region such as “Greater Melbourne”.

type

{String} This is the region type, only applicable if the address itself is a region.

state

{String} This is the state.

Constructor

EMS.Address

Parameters

address{Mixed} is either an EMS.Address or simply an {Object} to copy.

Functions

equals

equals: function(address)

Parameters

address{Mixed} is the address to compare to.  This maybe just a plain {Object} or an EMS.Address.

Returns

{Boolean} Returns true if the address is equal.

clone

clone: function()

Returns

{EMS.Address} Returns a clone/copy of this address.

toString

toString: function()

Returns

{String} The address as a string.  If no properties have been set then this returns an empty string.

A structured street.
equals: function(address)
clone: function()
{EMS.Address} Returns a clone/copy of this address.
toString: function()
{String} The address as a string.
Close