PlaceResult Object

Represents a place result in the Search module.

Properties

Name Type Description
address Address A structured address object.
bestView LocationRect The location rectangle that defines the boundaries of the best map view of the place result.
entityType string The classification of the geographic entity returned, such as PopulatedPlace.
location Location The geocoded location of the best result.
locations GeocodeLocation[] The geocoded locations.
matchCode MatchCode The match code of the best result. The possible values are:

  • Good: The location has only one match or all returned matches are considered strong matches. For example, a query for New York returns several Good matches.
  • Ambiguous: The location is one of a set of possible matches. For example, when you query for the street address 128 Main St., the response may return two locations for 128 North Main St. and 128 South Main St. because there is not enough information to determine which option to choose.
  • UpHierarchy: The location represents a move up the geographic hierarchy. This occurs when a match for the location request was not found, so a less precise result is returned. For example, if a match for the requested address cannot be found, then a match code of UpHierarchy with a RoadBlock entity type may be returned.
matchConfidence MatchConfidence The match confidence of the best result. The possible values are:

  • High
  • Medium
  • Low

For more information on this property, see the documentation on the Bing Maps REST Location Data object.
name string The name of the place result, if one exists.