java.lang.Object | |
↳ | com.carto.geocoding.GeocodingResult |
A geocoding result object describing address, features (geometry) and rank of the result.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
GeocodingResult(Projection projection, GeocodingAddress address, float rank, FeatureCollection featureCollection)
Constructs a GeocodingResult from a projection, address, rank and feature collection.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
synchronized void | delete() | ||||||||||
boolean |
equals(Object obj)
Checks if this object is equal to the specified object.
| ||||||||||
GeocodingAddress |
getAddress()
Returns the address of the result.
| ||||||||||
FeatureCollection |
getFeatureCollection()
Returns the feature collection of the result.
| ||||||||||
Projection |
getProjection()
Returns the projection of the geometry in the result.
| ||||||||||
float |
getRank()
Returns the rank of the result.
| ||||||||||
int |
hashCode()
Returns the hash value of this object.
| ||||||||||
String |
toString()
Creates a string representation of this result object, useful for logging.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Constructs a GeocodingResult from a projection, address, rank and feature collection.
projection | The projection used for the geometry of the result. |
---|---|
address | The address of the result. |
rank | The relative ranking of the result (in range 0..1). |
featureCollection | The geometry (features) associated with the result. |
Checks if this object is equal to the specified object.
obj | The reference object. |
---|
Returns the address of the result.
Returns the feature collection of the result.
Returns the projection of the geometry in the result.
Returns the rank of the result.
The rank is a normalized number between 0 and 1, 1 meaning a perfect match.
Returns the hash value of this object.
Creates a string representation of this result object, useful for logging.