Warning
This feature is available in the Full MapKit SDK version
MMKSearchAddress
class MMKSearchAddress : NSObject |
Contains structured address, formatted address, postal code and country code.
Structured address is an ordered list of components (usually administrative hierarchy). Formatted address is a full address as a single string. Formatted address generally can't be obtained from component names. Some components could be ignored (large administrative region) or absent (office number).
Summary
Class methods
init(formattedAddress: String, |
Properties
var formattedAddress: String { get } |
var additionalInfo: String? { get } |
var postalCode: String? { get } |
var countryCode: String? { get } |
var components: [MMKSearchAddressComponent] { get } |
Class methods
init(formattedAddress:additionalInfo:postalCode:countryCode:components:)
init(formattedAddress: String, |
Properties
formattedAddress
var formattedAddress: String { get } |
Human-readable address.
additionalInfo
var additionalInfo: String? { get } |
Additional address info.
Optional field, can be nil.
postalCode
var postalCode: String? { get } |
Postal/Zip code.
Optional field, can be nil.
countryCode
var countryCode: String? { get } |
Country code in ISO 3166-1 alpha-2 format (two-letter country code).
Optional field, can be nil.
components
var components: [MMKSearchAddressComponent] { get } |
Address component list, see MMKSearchAddressComponent, may be empty.