Skip to main content
RadarAddress represents an address returned from geocoding operations.

Properties

coordinate
CLLocationCoordinate2D
required
The location coordinate of the address.
formattedAddress
string
The formatted string representation of the address.
country
string
The name of the country of the address.
countryCode
string
The unique code of the country of the address.
countryFlag
string
The flag of the country of the address.
dma
string
The name of the DMA of the address.
dmaCode
string
The unique code of the DMA of the address.
state
string
The name of the state of the address.
stateCode
string
The unique code of the state of the address.
postalCode
string
The postal code of the address.
city
string
The city of the address.
borough
string
The borough of the address.
county
string
The county of the address.
neighborhood
string
The neighborhood of the address.
number
string
The street number of the address.
street
string
The street name of the address.
addressLabel
string
The label of the address.
placeLabel
string
The label of the place.
unit
string
The unit of the address.
plus4
string
The plus4 value for the zip of the address.
distance
number
The distance to the search anchor in meters.
layer
string
The layer of the address, e.g. ‘place’, ‘address’, ‘intersection’, ‘street’, ‘state’, etc.
metadata
object
The metadata of the address.
confidence
RadarAddressConfidence
required
The confidence level of the geocoding result.
timeZone
RadarTimeZone
The time zone information of the address.
categories
string[]
The categories of the address.

Class Methods

addressFromObject

class func address(from object: Any) -> RadarAddress?
+ (RadarAddress *_Nullable)addressFromObject:(id _Nonnull)object;
Creates a RadarAddress instance from a dictionary object.

Parameters

object
Any
required
The dictionary object to parse.

Returns

A RadarAddress instance, or nil if the object could not be parsed.

arrayForAddresses

class func array(for addresses: [RadarAddress]?) -> [[String: Any]]?
+ (NSArray<NSDictionary *> *_Nullable)arrayForAddresses:(NSArray<RadarAddress *> *_Nullable)addresses;
Converts an array of RadarAddress objects to an array of dictionaries.

Parameters

addresses
RadarAddress[]
The array of addresses to convert.

Returns

An array of dictionaries representing the addresses.

Instance Methods

dictionaryValue

func dictionaryValue() -> [String: Any]
- (NSDictionary *_Nonnull)dictionaryValue;
Converts the address to a dictionary representation.

Returns

A dictionary representation of the address.

See Also

Build docs developers (and LLMs) love