-
Notifications
You must be signed in to change notification settings - Fork 1
Address
James Barrow edited this page Jan 29, 2017
·
4 revisions
An object that contains details on a address to the plot on the map view, along with other data such as name and addressString.
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)
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
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"
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
The hash value.
Declaration
Swift
open override var hashValue: Int
---
<br>
### key
**Declaration**
> <sub>**Swift**</sub>
> ```swift
open var key: String
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.