com.esri.core.tasks.bing.geocode
Class BingLocatorResult

java.lang.Object
  extended by com.esri.core.tasks.bing.geocode.BingLocatorResult
All Implemented Interfaces:
Result, Serializable

public class BingLocatorResult
extends Object
implements Result, Serializable

This class represents a Bing Maps result containing an address and its locations returned by a geocode or reverse-geocode request. You can refer to the Bing Maps documentation GeocodeResult Class for more information.

See Also:
Serialized Form

Constructor Summary
BingLocatorResult()
           
 
Method Summary
 boolean equals(Object obj)
           
 void fromJson(org.codehaus.jackson.JsonParser parser, int pOutSR)
           Populates a BingLocatorResult using a Json response and projecting the locations to the output spatial reference if any provided (i.e.
 BingAddress getAddress()
          Returns the address
 Envelope getBestView()
          Returns the best extent for the address to be displayed
 BingConfidence getConfidence()
          Returns the confidence in the relevance of the result
 String getDisplayName()
          Returns the display name of this result
 String getEntityType()
           Returns the entity type of the result
 List<Point> getLocations()
          Get the locations for this result.
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BingLocatorResult

public BingLocatorResult()
Method Detail

getAddress

public BingAddress getAddress()
Returns the address

Returns:
the address

getBestView

public Envelope getBestView()
Returns the best extent for the address to be displayed

Returns:
the best view as an Envelope

getConfidence

public BingConfidence getConfidence()
Returns the confidence in the relevance of the result

Returns:
the confidence

getDisplayName

public String getDisplayName()
Returns the display name of this result

Returns:
the display name

getEntityType

public String getEntityType()

Returns the entity type of the result

To get a list of the possible values, please refer to this page: http://msdn.microsoft.com/en-us/library/ff728811.aspx

Returns:

getLocations

public List<Point> getLocations()
Get the locations for this result.

Returns:
a List of locations

fromJson

public void fromJson(org.codehaus.jackson.JsonParser parser,
                     int pOutSR)
              throws Exception

Populates a BingLocatorResult using a Json response and projecting the locations to the output spatial reference if any provided (i.e. WKID != -1)

Specified by:
fromJson in interface Result
Parameters:
parser - JsonParser containing the Json response
pOutSR - the output spatial reference for the results
Throws:
Exception

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2010. All Rights Reserved.