com.esri.core.tasks.ags.geocode
Class LocatorGeocodeResult

java.lang.Object
  extended by com.esri.core.tasks.ags.geocode.LocatorGeocodeResult

public class LocatorGeocodeResult
extends Object

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

Since:
1.0

Constructor Summary
LocatorGeocodeResult()
           
 
Method Summary
 boolean equals(Object obj)
           
static LocatorGeocodeResult fromJson(org.codehaus.jackson.JsonParser parser)
           
 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()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LocatorGeocodeResult

public LocatorGeocodeResult()
Method Detail

getAddress

public String getAddress()
Returns the formatted address.

Returns:
the formatted address
Since:
1.0

getScore

public int getScore()
Returns the score for this address candidate.

Returns:
the score for this address candidate.
Since:
1.0

getExtent

public Envelope getExtent()
Returns the geocoding feature extent.

Returns:
an Envelope object bounding the address.
Since:
1.0

getAttributes

public Map<String,String> getAttributes()
The attributes for this address candidate as defined in the service.

Returns:
the attributes for this address candidate.
Since:
1.0

hashCode

public int hashCode()
Since:
1.0

equals

public boolean equals(Object obj)
Since:
1.0

toString

public String toString()
Overrides:
toString in class Object
Since:
1.0

fromJson

public static LocatorGeocodeResult fromJson(org.codehaus.jackson.JsonParser parser)
                                     throws Exception
Parameters:
parser -
Returns:
Throws:
Exception
Since:
1.0

getSpatialreference

public SpatialReference getSpatialreference()
The spatial reference of the location for this result.

Returns:
the spatial reference for this result.

setSpatialreference

public void setSpatialreference(SpatialReference spatialreference)
Sets the spatial reference of the LocatorResult.

Parameters:
spatialreference - The spatial reference to set.

getLocation

public Point getLocation()
The location for this result.

Returns:
the location for this result.


Copyright © 2012. All Rights Reserved.