SearchRegion.Source Property

 

A string indicating the source of the match for the 'where' component of the search query. Get this property from the service response.

Syntax

public string Source { set; get; }
Public Property Source As String

Remarks

The following table lists the possible values for the Source property.

Source

Description

"CurrentLocation"

The search query was performed using information about the user's current location, which is either provided directly in the UserProfile.CurrentLocation Property or calculated based on the IP address found in the UserProfile.IPAddress Property. In this case, both the SearchRegion.BoundingArea Property and the SearchRegion.GeocodeLocation Property may be populated.

"MapView"

The 'where' component of the search query was matched to an area of the map, which is returned in the SearchRegion.BoundingArea Property.

"Query"

The 'where' component of the search query was matched to a geocode result. The SearchRegion.GeocodeLocation Property is populated with results of the geocode and the SearchRegion.BoundingArea Property contains the best map view of the geocoded result.