Важно
This feature is available in the Full MapKit SDK version
Package com.yandex.mapkit.search
Class Address
java.lang.Object
↳ com.yandex.mapkit.search.Address
class Address implements Serializable
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).
Nested Class Summary
Modifier and Type |
Interface |
Description |
|
Single address component. Component represents a single entry in the administrative hierarchy of the address. |
Summary
Constructors
Signature and Description |
Address() |
Address(@NonNull java.lang.String formattedAddress, |
Methods
Type and modifiers |
Method and Description |
|
getFormattedAddress() |
|
getAdditionalInfo() |
|
getPostalCode() |
|
getCountryCode() |
|
getComponents() |
void |
serialize(com.yandex.runtime.bindings.Archive archive) |
|
Constuctors
Address
Address() |
Use constructor with parameters in your code.
This one is for serialization only!
Address
Address(@NonNull java.lang.String formattedAddress, |
Methods
getFormattedAddress
@NonNull |
Human-readable address.
getAdditionalInfo
@Nullable |
Additional address info.
Optional field, can be null.
getPostalCode
@Nullable |
Postal/Zip code.
Optional field, can be null.
getCountryCode
@Nullable |
Country code in ISO 3166-1 alpha-2 format (two-letter country code).
Optional field, can be null.
getComponents
@NonNull |
Address component list, see mapkit.search.Address.Component, may be empty.
serialize
@Override |
getNativeName
java.lang.String getNativeName() |