You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: articles/cognitive-services/bing-local-business-search/local-categories.md
+4-4
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
---
2
-
title: Local Categories search | Microsoft Docs
3
-
description: How to specify categories for Local search API endpoint.
2
+
title: Local Business Categories search | Microsoft Docs
3
+
description: How to specify categories for Local Business Search API endpoint.
4
4
services: cognitive-services
5
5
author: mikedodaro
6
6
manager: rosh
@@ -11,9 +11,9 @@ ms.date: 10/22/2018
11
11
ms.author: rosh, v-gedod
12
12
---
13
13
14
-
# Categories for Bing Local Search
14
+
# Categories for Bing Local Business Search
15
15
Search for local business entities by category. This feature works with the user’s implicit RevIP location and also with `localCircularView` and `localMapView` parameters.
16
-
## Examples of Local Categories search
16
+
## Examples of Local Business Categories search
17
17
The following examples get results according to the `localCategories` parameter:
-[Local Business Search quickstart](quickstarts/local-quickstart.md)
28
+
-[Local Business Search Java quickstart](quickstarts/local-search-java-quickstart.md)
29
+
-[Local Business Search Node quickstart](quickstarts/local-search-node-quickstart.md)
30
+
-[Local Business Search Python quickstart](quickstarts/local-search-python-quickstart.md)
31
31
32
32
The response contains a `SearchResponse` object. If Bing finds places that are relevant, the object includes the `places` field. If Bing does not find relevant entities, the response object will not include the `places` field.
33
33
@@ -45,10 +45,10 @@ The response contains a `SearchResponse` object. If Bing finds places that are r
45
45
````
46
46
47
47
## Local Business Search endpoint
48
-
The **Local Search API** includes one endpoint that returns results from the Web based on a query.
48
+
The **Local Business Search API** includes one endpoint that returns results from the Web based on a query.
49
49
50
50
## Endpoint
51
-
To get local results, use the endpoint and include the `Ocp-Apim-Subscription-Key` header. There are several ways to specify the results. See [Headers](local-search-reference.md#headers) and [Parameters](local-search-reference.md#query-parameters) for the options. This example uses the `count` parameter to limit results to one, beginning with the first result as specified by `first=0`.
51
+
To get localized results, use the endpoint and include the `Ocp-Apim-Subscription-Key` header. There are several ways to specify the results. See [Headers](local-search-reference.md#headers) and [Parameters](local-search-reference.md#query-parameters) for the options. This example uses the `count` parameter to limit results to one, beginning with the first result as specified by `first=0`.
52
52
53
53
GET:
54
54
````
@@ -138,18 +138,18 @@ The JSON results include the following attributes:
138
138
* telephone
139
139
* url
140
140
141
-
For general information about headers, parameters, market codes, response objects, errors, etc., see the [Bing Local Search API v7](local-search-reference.md) reference.
141
+
For general information about headers, parameters, market codes, response objects, errors, etc., see the [Bing Local Business Search API v7](local-search-reference.md) reference.
142
142
143
143
> [!NOTE]
144
-
> You, or a third party on your behalf, may not use, retain, store, cache, share, or distribute any data from the Local Search API for the purpose of testing, developing, training, distributing or making available any non-Microsoft service or feature.
144
+
> You, or a third party on your behalf, may not use, retain, store, cache, share, or distribute any data from the Local Business Search API for the purpose of testing, developing, training, distributing or making available any non-Microsoft service or feature.
Copy file name to clipboardexpand all lines: articles/cognitive-services/bing-local-business-search/local-search-reference.md
+12-12
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
2
2
---
3
-
title: Bing Local Search API v7 Reference | Microsoft Docs
4
-
description: Describes the programming elements of the Bing Local Search API.
3
+
title: Bing Local Business Search API v7 Reference | Microsoft Docs
4
+
description: Describes the programming elements of the Bing Local Business Search API.
5
5
services: cognitive-services
6
6
author: mikedodaro
7
7
manager: rosh
@@ -16,7 +16,7 @@ ms.author: rosh, v-gedod
16
16
17
17
The Local Business Search API sends a search query to Bing to get results that include include restaurants, hotels, or other local businesses. For places, the query can specify the name of the local business or a category (for example, restaurants near me). Entity results include persons, places, or things. Place in this context is business entities, states, countries, etc.
18
18
19
-
This section provides technical details about the response objects, and the query parameters and headers that affect the search results. For examples that show how to make requests, see [Local Search C# quickstart](quickstarts/local-quickstart.md) or [Local Search Java quickstart](quickstarts/local-search-java-quickstart.md).
19
+
This section provides technical details about the response objects, and the query parameters and headers that affect the search results. For examples that show how to make requests, see [Local Business Search C# quickstart](quickstarts/local-quickstart.md) or [Local Business Search Java quickstart](quickstarts/local-search-java-quickstart.md).
20
20
21
21
For information about headers that requests should include, see [Headers](#headers).
22
22
@@ -29,7 +29,7 @@ For information about permitted use and display of results, see [Use and display
29
29
30
30
31
31
## Endpoint
32
-
To request local search results, send a GET request to:
32
+
To request local business results, send a GET request to:
|<aname="localCategories" />localCategories|List of options that define search by business category. See [Local Categories search](local-categories.md)|String|No|
72
-
|<aname="mkt" />mkt|The market where the results come from. <br /><br />For a list of possible market values, see [Market Codes](#market-codes).<br /><br /> **NOTE:** The Local Search API currently only supports en-us market and language.<br /><br />|String|Yes|
71
+
|<aname="localCategories" />localCategories|List of options that define search by business category. See [Local Business Categories search](local-categories.md)|String|No|
72
+
|<aname="mkt" />mkt|The market where the results come from. <br /><br />For a list of possible market values, see [Market Codes](#market-codes).<br /><br /> **NOTE:** The Local Business Search API currently only supports en-us market and language.<br /><br />|String|Yes|
|<aname="responseformat" />responseFormat|The media type to use for the response. The following are the possible case-insensitive values.<br /><ul><li>JSON</li><li>JSONLD</li></ul><br /> The default is JSON. For information about the JSON objects that the response contains, see [Response Objects](#response-objects).<br /><br /> If you specify JsonLd, the response body includes JSON-LD objects that contain the search results. For information about the JSON-LD, see [JSON-LD](http://json-ld.org/).|String|No|
75
75
|<aname="safesearch" />safeSearch|A filter used to filter adult content. The following are the possible case-insensitive filter values.<br /><ul><li>Off—Return webpages with adult text, images, or videos.<br /><br/></li><li>Moderate—Return webpages with adult text, but not adult images or videos.<br /><br/></li><li>Strict—Do not return webpages with adult text, images, or videos.</li></ul><br /> The default is Moderate.<br /><br /> **NOTE:** If the request comes from a market that Bing's adult policy requires that `safeSearch` is set to Strict, Bing ignores the `safeSearch` value and uses Strict.<br/><br/>**NOTE:** If you use the `site:` query operator, there is the chance that the response may contain adult content regardless of what the `safeSearch` query parameter is set to. Use `site:` only if you are aware of the content on the site and your scenario supports the possibility of adult content. |String|No|
@@ -82,7 +82,7 @@ The following are the JSON response objects that the response may include. If th
82
82
83
83
|Object|Description|
84
84
|------------|-----------------|
85
-
|[Place](#place)|Defines information about a local entity such as a restaurant or hotel.|
85
+
|[Place](#place)|Defines information about a local business such as a restaurant or hotel.|
86
86
87
87
88
88
### Error
@@ -142,7 +142,7 @@ Note that a publisher may provide their name or their website or both.
142
142
143
143
144
144
### Place
145
-
Defines information about a local entity, such as a restaurant or hotel.
145
+
Defines information about a local business, such as a restaurant or hotel.
146
146
147
147
|Name|Value|Type|
148
148
|----------|-----------|----------|
@@ -260,7 +260,7 @@ The following are the possible error code and sub-error code values.
260
260
|InsufficientAuthorization|AuthorizationDisabled<br/>AuthorizationExpired|Bing returns InsufficientAuthorization when the caller does not have permissions to access the resource. This can occur if the subscription key has been disabled or has expired. <br/><br/>If the error is InsufficientAuthorization, the HTTP status code is 403.
Copy file name to clipboardexpand all lines: articles/cognitive-services/bing-local-business-search/overview.md
+3-3
Original file line number
Diff line number
Diff line change
@@ -17,9 +17,9 @@ The Bing Local Business Search API is a RESTful service that enables your applic
17
17
## Features
18
18
| Feature | Description |
19
19
| -- | -- |
20
-
|[Find local businesses and locations](quickstarts/local-quickstart.md)| The Bing Local Business Search API gets localized information from a query. Results include a URL for the business's website, phone number, display text, and its geographical location, including: city, street address, and neighborhood |
20
+
|[Find local businesses and locations](quickstarts/local-quickstart.md)| The Bing Local Business Search API gets localized results from a query. Results include a URL for the business's website, phone number, display text, and its geographical location, including: city, street address, and neighborhood |
21
21
|[Filter local results with geographic boundaries](specify-geographic-search.md)| Add coordinates as search parameters to limit results to a specific geographic area, specified by either a circular area or square bounding box. |
22
-
|[Filter local results by category](local-categories.md)| Search for local business entities by category. This option uses reverse IP location of the caller to return localized results of various categories of business.|
22
+
|[Filter local business results by category](local-categories.md)| Search for local business results by category. This option uses reverse IP location of the caller to return localized results of various categories of business.|
23
23
24
24
## Workflow
25
25
The Bing Local Business Search API is easy to call from any programming language that can make HTTP requests and parse JSON responses. The service is accessible using the REST API.
@@ -31,6 +31,6 @@ The Bing Local Business Search API is easy to call from any programming language
31
31
32
32
## Next steps
33
33
-[Query and response](local-search-query-response.md)
Copy file name to clipboardexpand all lines: articles/cognitive-services/bing-local-business-search/quickstarts/local-search-node-quickstart.md
+4-4
Original file line number
Diff line number
Diff line change
@@ -14,7 +14,7 @@ ms.author: rosh, v-gedod
14
14
# Quickstart: Send a query to the Bing Local Business Search API using NodeJS
15
15
This article uses NodeJS to demonstrate the Bing Local Business Search API, which is part of Microsoft Cognitive Services on Azure. The API is a REST Web service compatible with any programming language that can make HTTP requests and parse JSON.
16
16
17
-
The following Node example gets local response data from the query for a *hotel in Bellevue*.
17
+
The following Node example gets local business results from the query for a *hotel in Bellevue*.
18
18
19
19
## Prerequisites
20
20
You must have a [Cognitive Services API account](https://docs.microsoft.com/azure/cognitive-services/cognitive-services-apis-create-account) with Bing APIs. The [free trial](https://azure.microsoft.com/try/cognitive-services/?api=bing-web-search-api) is sufficient for this quickstart. Use the access key provided by the free trial.
Copy file name to clipboardexpand all lines: articles/cognitive-services/bing-local-business-search/quickstarts/local-search-python-quickstart.md
+5-5
Original file line number
Diff line number
Diff line change
@@ -13,13 +13,13 @@ ms.author: rosh, v-gedod
13
13
# Quickstart: Send a query to the Bing Local Business Search API in Python
14
14
This article uses Python to demonstrate the Bing Local Business Search API, which is part of Microsoft Cognitive Services on Azure. The API is a REST Web service compatible with any programming language that can make HTTP requests and parse JSON.
15
15
16
-
The following Python example gets localized search data from a query for *restaurant in Bellevue*.
16
+
The following Python example gets localized business results from a query for *restaurant in Bellevue*.
17
17
18
18
## Prerequisites
19
19
You must have a [Cognitive Services API account](https://docs.microsoft.com/azure/cognitive-services/cognitive-services-apis-create-account) with Bing APIs. The [free trial](https://azure.microsoft.com/try/cognitive-services/?api=bing-web-search-api) is sufficient for this quickstart. Use the access key provided by the free trial.
20
20
21
21
## Code scenario
22
-
The following code gets localized data. It is implemented in the following steps:
22
+
The following code gets localized results. It is implemented in the following steps:
23
23
1. Declare variables to specify the endpoint by host and path.
24
24
2. Specify the query parameter.
25
25
3. Define the Search function that creates the request and adds the Ocp-Apim-Subscription-Key header.
0 commit comments