public class Address
extends java.lang.Object
implements java.io.Serializable
address.getCoordinateFromGeocoder(new Address.CoordinateAddressCallback() {
@Override
public void coordinate(@Nullable LngLat coordinate) {
// coordinate is real housenumber coordinate
}
});
Copyright (c) 2017 Nexusgeographics All rights reserved.Suggest
,
SuggestGeocoding
,
Geocoder
,
Serialized FormModifier and Type | Class and Description |
---|---|
static interface |
Address.CoordinateAddressCallback |
static class |
Address.Type
The enum Type Address.
|
Constructor and Description |
---|
Address() |
Modifier and Type | Method and Description |
---|---|
java.util.List<java.lang.String> |
addressArray()
Address array list.
|
java.lang.String |
addressLine()
Address line string.
|
City |
getCity()
Gets city.
|
LatLng |
getCoordinate()
Gets coordinate.
|
void |
getCoordinateFromGeocoder(Address.CoordinateAddressCallback callback)
Obtain coordinates async from SuggestGeocoding.
|
Country |
getCountry()
Gets country.
|
Municipality |
getMunicipality()
Gets municipality.
|
java.lang.String |
getPostalCode()
Gets postal code.
|
Region |
getRegion()
Gets region.
|
Road |
getRoad()
Gets road.
|
SubRegion |
getSubregion()
Gets subregion.
|
boolean |
hasCity()
Has city.
|
boolean |
hasCoordinate()
Has coordinateSuggest.
|
boolean |
hasCountry()
Has country.
|
boolean |
hasMunicipality()
Has municipality.
|
boolean |
hasPostalCode()
Has postal code.
|
boolean |
hasRegion()
Has region.
|
boolean |
hasRoad()
Has road.
|
boolean |
hasSubregion()
Has subregion.
|
void |
setCity(City city)
Sets city.
|
void |
setCoordinate(LatLng coordinate)
Sets coordinate.
|
void |
setCountry(Country country)
Sets country.
|
void |
setMunicipality(Municipality municipality)
Sets municipality.
|
void |
setPostalCode(java.lang.String postalCode)
Sets postal code.
|
void |
setRegion(Region region)
Sets region.
|
void |
setRoad(Road road)
Sets road.
|
void |
setSubregion(SubRegion subregion)
Sets subregion.
|
java.lang.String |
toString() |
@NonNull public java.lang.String addressLine()
@NonNull public java.util.List<java.lang.String> addressArray()
public boolean hasRoad()
public boolean hasCoordinate()
public boolean hasPostalCode()
public boolean hasCity()
public boolean hasMunicipality()
public boolean hasSubregion()
public boolean hasRegion()
public boolean hasCountry()
public Road getRoad()
public void setRoad(Road road)
road
- the roadpublic java.lang.String getPostalCode()
public void setPostalCode(java.lang.String postalCode)
postalCode
- the postal codepublic City getCity()
public void setCity(City city)
city
- the citypublic Municipality getMunicipality()
public void setMunicipality(Municipality municipality)
municipality
- the municipalitypublic LatLng getCoordinate()
Address.getCoordinateFromGeocoder(callback)
when coordinates is null or Address.hasCoordinate()
is false.public void getCoordinateFromGeocoder(@NonNull Address.CoordinateAddressCallback callback)
Address.hasCoordinate()
is false.callback
- callback functionpublic void setCoordinate(LatLng coordinate)
coordinate
- the coordinatepublic SubRegion getSubregion()
public void setSubregion(SubRegion subregion)
subregion
- the subregionpublic Region getRegion()
public void setRegion(Region region)
region
- the regionpublic Country getCountry()
public void setCountry(Country country)
country
- the countrypublic java.lang.String toString()
toString
in class java.lang.Object