Export (0) Print
Expand All

Query API

Bing

The Query API is a component of the Bing Spatial Data Services. You can use the Query API to query a data source for information about entities in that data source. For example, if the data source contains restaurant entities, you can query for French restaurants nearby or you can get information about a specific restaurant. Each query response can return a maximum number of 250 results.

Below are some ways you could use the Query API to search a data source that contains information about a set of restaurants.

  • Use Query by Area to search for all movie theaters within 20 kilometers.

  • Use Query Near a Route to search for all restaurants along a route.

  • Use Query by Property to search for all restaurants within 20 miles that have more than 20 employees.

  • Use Query by ID to search for the restaurant entity that has an entity ID of "410".

For information about creating and updating data sources, see the Load Data Source Dataflow.

In this Section

Query by Area

Describes how to query a data source for entities that are in a specified geographical area.

Query by Property

Describes how to query a data source for entities that satisfy a set of property value conditions.

Query Near a Route

Describes how to query a data source for entities near a route.

Query by ID

Describes how to query a data source for one or more entities by specifying entity IDs.

Query Options

Describes query options, such as the options to filter and order results and to user wildcard searches.

Query Response Description

Describes the response returned for queries.

Query API Sample Code (C#)

Provides sample C# code that uses the Query API.

Query API Sample Code (VB)

Provides sample Visual Basic code that uses the Query API.

Show:
© 2014 Microsoft