Share via


Federated Search Virtual Earth Map Connector Sample

By using the Federated Search Web Part, you can display more than results from OpenSearch (1.0/1.1) sites on your search results page. The same lightweight interface, or connector, that enables you to display the Federated Search SQL Server Connector Sample [Search Server 2008] and to Federated Search HTML to RSS Connector Sample [Search Server 2008] can also be used to display the results of Web service requests.

This sample demonstrates that you can extend the connector concept to Web service requests other than search queries. It shows how to use a connector to pass a structured address string to the Microsoft MapPoint Web service to obtain the latitude and longitude coordinates of that address. After you have those coordinates, displaying a Microsoft Virtual Earth map requires only the addition of some ECMAScript code (JScript, JavaScript) to your Federated Location definition file.

For the download, which includes the complete code for the Federated Search Virtual Earth Map Connector sample application, see Federated Search Connector for Virtual Earth Maps Sample.

Prerequisites

To use the Federated Search Virtual Earth Map Connector sample, you must have a MapPoint developer account. Your environment must have the following installed:

  • Microsoft Search Server 2008

  • Microsoft Visual Studio 2005 with Microsoft Visual C# enabled

Completing the Walkthrough

The following topics walk you through creating and deploying a federated search Virtual Earth map connector:

Step 1: Set Up the Project for the Federated Search Virtual Earth Map Connector [Search Server 2008]

Step 2: Add the Code for the Federated Search Virtual Earth Map Connector [Search Server 2008]

Step 3: Create the Virtual Earth Map Location and Customize the XSL [Search Server 2008]

See Also

Concepts

Architecture Guidance for Building Federated Search Connectors [Search Server 2008]
Federated Results Web Parts XSLT [Search Server 2008]