public class

Address

extends Object
java.lang.Object
   ↳ com.carto.core.Address
Known Direct Subclasses

This class is deprecated.
No replacement.

Class Overview

A geographical address describing country, region, county and other information.
This class is deprecated and will be removed in future SDK versions. Use GeocodingAddress instead.

Summary

Public Constructors
Address()
Constructs an empty Address object.
Address(String country, String region, String county, String locality, String neighbourhood, String street, String postcode, String houseNumber, String name, StringVector categories)
Constructs a new address from the the country, region, county and other attributes.
Public Methods
synchronized void delete()
boolean equals(Object obj)
Checks if this object is equal to the specified object.
StringVector getCategories()
Returns the list of category tags describing the address.
String getCountry()
Returns the country name included in the address.
String getCounty()
Returns the county name included in the address.
String getHouseNumber()
Returns the house number included in the address.
String getLocality()
Returns the locality (city, town, village) name included in the address.
String getName()
Returns the name included in the address.
String getNeighbourhood()
Returns the local neighbourhood name included in the address.
String getPostcode()
Returns the postcode of the address.
String getRegion()
Returns the region name included in the address.
String getStreet()
Returns the street name included in the address.
int hashCode()
Returns the hash value of this object.
String toString()
Creates a string representation of this address object, useful for logging.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public Address ()

Constructs an empty Address object.

public Address (String country, String region, String county, String locality, String neighbourhood, String street, String postcode, String houseNumber, String name, StringVector categories)

Constructs a new address from the the country, region, county and other attributes.

Parameters
country The country name of the address.
region The region name of the address.
county The county name of the address.
locality The locality name of the address.
neighbourhood The neighbourhood name of the address.
street The street name of the address.
postcode The postcode of the address.
houseNumber The house number of the address.
name The name of the address.
categories The category tags describing the address.

Public Methods

public synchronized void delete ()

public boolean equals (Object obj)

Checks if this object is equal to the specified object.

Parameters
obj The reference object.
Returns
  • True when objects are equal, false otherwise.

public StringVector getCategories ()

Returns the list of category tags describing the address.

Returns
  • The list of category tags describing the address.

public String getCountry ()

Returns the country name included in the address.

Returns
  • The country name included in the address.

public String getCounty ()

Returns the county name included in the address.

Returns
  • The county name included in the address.

public String getHouseNumber ()

Returns the house number included in the address.

Returns
  • The house number included in the address.

public String getLocality ()

Returns the locality (city, town, village) name included in the address.

Returns
  • The locality name included in the address.

public String getName ()

Returns the name included in the address.

Returns
  • The name included in the address.

public String getNeighbourhood ()

Returns the local neighbourhood name included in the address.

Returns
  • The neighbourhood name included in the address.

public String getPostcode ()

Returns the postcode of the address.

Returns
  • The postcode of the address.

public String getRegion ()

Returns the region name included in the address.

Returns
  • The region name included in the address.

public String getStreet ()

Returns the street name included in the address.

Returns
  • The street name included in the address.

public int hashCode ()

Returns the hash value of this object.

Returns
  • The hash value of this object.

public String toString ()

Creates a string representation of this address object, useful for logging.

Returns
  • The string representation of this address object.