Skip to content
James Barrow edited this page Jan 29, 2017 · 4 revisions

Address

An object that contains details on a address to the plot on the map view, along with other data such as name and addressString.

objectID

The ID of the addres object.

Declaration

Swift

public var objectID: String?

---

<br>

### coordinate
The coordinate of the address.

**Declaration**
> <sub>**Swift**</sub>  
> ```swift  
public var coordinate = CLLocationCoordinate2DMake(0.0, 0.0)


latitude

The latitude of the address.

Declaration

Swift

public var latitude: CLLocationDegrees

---

<br>

### longitude
The longitude of the address.

**Declaration**
> <sub>**Swift**</sub>  
> ```swift  
public var longitude: CLLocationDegrees


isValid

If the address is valid then true, otherwise return false.

Declaration

Swift

public var isValid: Bool

---

<br>

### name
The name of the address object.

**Declaration**
> <sub>**Swift**</sub>  
> ```swift  
public var name = "N/A"


addressString

The address string of the object.

Declaration

Swift

public var addressString = ""

---

<br>

### description
Returns a string that represents the contents of the receiving class.

**Declaration**
> <sub>**Swift**</sub>  
> ```swift  
open override var description: String


hashValue

The hash value.

Declaration

Swift

open override var hashValue: Int

---

<br>

### key


**Declaration**
> <sub>**Swift**</sub>  
> ```swift  
open var key: String


init(dictionary:)

A convenience initialiser for creating an address object from a dictionary returned from a FUS based system.

Declaration

Swift

public convenience init(dictionary: [String: Any])


**Parameters**
<table>
<tr><td> `dictionary` </td><td> The dictionary to parse the information from. </td></tr>
<table>

---

<br>

### addresses(fromArrayOfDictionaries:)
A helper method for creating an array of address objects from an array of dictionaryies.

**Declaration**
> <sub>**Swift**</sub>  
> ```swift  
public class func addresses(fromArrayOfDictionaries array: [[String: Any]]) -> [Address]

Parameters

`array` An array of dictionaries returned by a FUS like system.

Return Value
An array of address objects.


Clone this wiki locally