public class

LocatorGeocodeResult

extends Object
java.lang.Object
   ↳ com.esri.core.tasks.geocode.LocatorGeocodeResult

Class Overview

Class containing the details of a location candidate such as the formatted address, the score, the location and the attributes.

Summary

Public Constructors
LocatorGeocodeResult()
Public Methods
boolean equals(Object obj)
static LocatorGeocodeResult fromJson(JsonParser parser)
Creates a LocatorGeocodeResult object from its JSON String representation.
String getAddress()
Returns the formatted address.
Map<String, String> getAttributes()
The attributes for this address candidate as defined in the service.
Envelope getExtent()
Returns the geocoding feature extent.
Point getLocation()
The location for this result.
int getScore()
Returns the score for this address candidate.
SpatialReference getSpatialreference()
The spatial reference of the location for this result.
int hashCode()
void setSpatialreference(SpatialReference spatialreference)
Sets the spatial reference of the LocatorResult.
String toString()
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public LocatorGeocodeResult ()

Public Methods

public boolean equals (Object obj)

Parameters
obj Object
Returns
boolean

public static LocatorGeocodeResult fromJson (JsonParser parser)

Creates a LocatorGeocodeResult object from its JSON String representation.

Parameters
parser JsonParser: The JSON parser containing the JSON String of the LocatorGeocodeResult
Returns
LocatorGeocodeResult a LocatorGeocodeResult object
Throws
Exception JSON parsing exception

public String getAddress ()

Returns the formatted address.

Returns
String the formatted address

public Map<String, String> getAttributes ()

The attributes for this address candidate as defined in the service.

Returns
Map<String, String> the attributes for this address candidate.

public Envelope getExtent ()

Returns the geocoding feature extent.

Returns
Envelope an Envelope object bounding the address.

public Point getLocation ()

The location for this result.

Returns
Point the location for this result.

public int getScore ()

Returns the score for this address candidate.

Returns
int the score for this address candidate.

public SpatialReference getSpatialreference ()

The spatial reference of the location for this result.

Returns
SpatialReference the spatial reference for this result.

public int hashCode ()

Returns
int

public void setSpatialreference (SpatialReference spatialreference)

Sets the spatial reference of the LocatorResult.

Parameters
spatialreference SpatialReference: The spatial reference to set.

public String toString ()

Returns
String