Address

Extends Object. Address objects in Evance are automatically formatted using an internal formatter based on the address' country. However, the properties of the address are also individually accessible.  


<h3>Our Address</h3>
<p>{{ shop.address }}</p>
<p>Come and visit us in {{ shop.address.city }}</p>

For Evance.it this would render as:


<h3>Our Address</h3>
<p>2 Sorrel Horse Mews
<br>
Grimwade Street
<br>
Ipswich
<br>
Suffolk
<br>
IP4 1LN
<br>
United Kingdom</p>
<p>Come and visit us in Ipswich</p>

Properties
city

Type String

The town/city for the address.

company

Type String

The address company name.

country

Type String

The country name for the address.

countryCode

Type String

The 2 character ISO code for the country within the address.

firstname

Type String

The person's first or given name.

id

Type Number

The System ID of the Address.

isPrimary

Type Boolean

True if the address is the primary address for a Contact.

lastname

Type String

The person's surname / family name / last name.

latitude

Type Number

The numeric latitude value of the address if it has been geolocated.

line1

Type String

Line 1 of the address.

line2

Type String

Line 2 of the address.

line3

Type String

Line 3 of the address.

longitude

Type Number

The numeric longitude value of the address if it has been geolocated.

region

Type String

The county / state / province / region for the address.

postcode

An alias of zip

title

Type String

The person's title e.g. Mr or Mrs.

zip

Type String

The postal or zip code for the address.



Methods
html()

Returns String

Uses a built in formatter based on the address' country to produce an HTML formatted String representation of the address.

join(String:separator)

Returns String

Joins the address component parts according to a built in formatter based on the address' country. By default the separator is a newline character.


{{ shop.address.join(', ') }}

Renders as


2 Sorrel Horse Mews, Grimwade Street, Ipswich, Suffolk, IP4 1LN, United Kingdom
text(String:separator)

Alias of join

toString()

Returns the result of the html() method as a String representation of the object.