Bing Local Business Search API の検索カテゴリ
警告
2020 年 10 月 30 日に、Bing Search API は Azure AI サービスから Bing Search サービスに移行されました。 このドキュメントは、参考用としてのみ提供されています。 更新されたドキュメントについては、Bing search API のドキュメントを参照してください。 Bing 検索用の新しい Azure リソースを作成する手順については、「Azure Marketplace から Bing Search リソースを作成する」を参照してください。
Bing Local Business Search API では、ユーザーの場所に近い結果に指定されている優先順で、さまざまなカテゴリの地元企業エンティティを検索することができます。 このような検索を、localCircularView
パラメーターと localMapView
パラメーター と共に検索に含めることができます。
最上位カテゴリ
次の種類では、検索の主なカテゴリを定義します。 localCategories
パラメーターに割り当てられているコンマ区切りリストを使用して、複数のカテゴリを指定することができます。
- EatDrink
- SeeDo
- Shop
- HotelsAndMotels
- BanksAndCreditUnions
- Parking
- Hospitals
サブ カテゴリ
サブカテゴリは localCategories
と同じ方法で渡されます。 サブカテゴリとはより固有なカテゴリのことです。 カテゴリ C とそのサブカテゴリ S のいずれかを同じコンマ区切りリストで指定した場合、C を単独で指定した場合と同じ結果が得られるという意味で、これらは下位となります。
Eat Drink
BreweriesAndBrewPubs、CocktailLounges、AfricanRestaurants、AmericanRestaurants、Bagels、BarbecueRestaurants、Taverns、SportsBars、Bars、BarsGrillsAndPubs、BuffetRestaurants| BelgianRestaurants、BritishRestaurants、CafeRestaurants、CaribbeanRestaurants、ChineseRestaurants、CoffeeAndTea、Delicatessens、DeliveryService、Diners、DiscountStores、Donuts、FastFood、FrenchRestaurants、FrozenYogurt、GermanRestaurants、Supermarkets、GreekRestaurants、Grocers、HawaiianRestaurants、HungarianRestaurants、IceCreamAndFrozenDesserts、IndianRestaurants、ItalianRestaurants、JapaneseRestaurants、Juices、KoreanRestaurants、LiquorStores、MexicanRestaurants、MiddleEasternRestaurants、Pizza、PolishRestaurants、PortugueseRestaurants、Pretzels、Restaurants、RussianAndUkrainianRestaurants、Sandwiches、SeafoodRestaurants、SpanishRestaurants、SteakHouseRestaurants、SushiRestaurants、TakeAway、ThaiRestaurants、TurkishRestaurants、VegetarianAndVeganRestaurants、VietnameseRestaurants
See Do
AmusementParks、Attractions、Carnivals、Casinos、LandmarksAndHistoricalSites、MiniatureGolfCourses、MovieTheaters、Museums、Parks、SightseeingTours、TouristInformation、Zoos
Shop
AntiqueStores、Bookstores、CDAndRecordStores、ChildrensClothingStores、CigarAndTobaccoShops、ComicBookStores、DepartmentStores、DiscountStores、FleaMarketsAndBazaars、FurnitureStores、HomeImprovementStores、JewelryAndWatchesStores、KitchenwareStores、LiquorStores、MallsAndShoppingCenters、MensClothingStores、MusicStores、OutletStores、PetShops、PetSupplyStores、SchoolAndOfficeSupplyStores、ShoeStores、SportingGoodsStores、ToyAndGameStores、VitaminAndSupplementStores、WomensClothingStores
ローカル カテゴリ検索の例
次の例では、localCategories
パラメーターに応じて結果が得られます。
https://api.cognitive.microsoft.com/localbusinesses/v7.0/search?&q=&mkt=en-US&localcategories=HotelsAndMotels
https://api.cognitive.microsoft.com/localbusinesses/v7.0/search?&q=&mkt=en-US&localcategories=EatDrink
https://api.cognitive.microsoft.com/localbusinesses/v7.0/search?&q=&mkt=en-US&localcategories=Shop
https://api.cognitive.microsoft.com/localbusinesses/v7.0/search?&q=&mkt=en-US&localcategories=Hospitals
次のクエリでは、'hospital' 結果の数が、Bing Local Business Search API から返される最初の 3 つに制限されます。
https://api.cognitive.microsoft.com/localbusinesses/v7.0/search?&q=&mkt=en-US&localCategories=Hospitals&count=3&offset=0
次の JSON 応答の例には、より大きなシアトル地区の 3 つの病院が含まれています。
BingAPIs-TraceId: 68AFB51807C6485CAB8AAF20E232EFFF
BingAPIs-SessionId: F89E7B8539B34BF58AAF811485E83B20
X-MSEdge-ClientID: 1C44E64DBFAA6BCA1270EADDBE7D6A22
BingAPIs-Market: en-US
X-MSEdge-Ref: Ref A: 68AFB51807C6485CAB8AAF20E232EFFF Ref B: CO1EDGE0108 Ref C: 2018-10-22T18:52:28Z
{
"_type": "SearchResponse",
"queryContext": {
"originalQuery": ""
},
"places": {
"readLink": "https:\/\/www.bingapis.com\/api\/v7\/places\/search?q=",
"totalEstimatedMatches": 0,
"value": [
{
"_type": "LocalBusiness",
"id": "https:\/\/www.bingapis.com\/api\/v7\/#Places.0",
"name": "Overlake Hospital Medical Center",
"url": "http:\/\/www.overlakehospital.org\/",
"entityPresentationInfo": {
"entityScenario": "ListItem",
"entityTypeHints": [
"Place",
"LocalBusiness"
]
},
"geo": {
"latitude": 47.6204986572266,
"longitude": -122.185829162598
},
"routablePoint": {
"latitude": 47.6204986572266,
"longitude": -122.185668945312
},
"address": {
"streetAddress": "1035 116th Ave NE",
"addressLocality": "Bellevue",
"addressRegion": "WA",
"postalCode": "98004",
"addressCountry": "US",
"neighborhood": "",
"text": "1035 116th Ave NE, Bellevue, WA, 98004"
},
"telephone": "(425) 688-5000"
},
{
"_type": "LocalBusiness",
"id": "https:\/\/www.bingapis.com\/api\/v7\/#Places.1",
"name": "Virginia Mason University Village Medical Center",
"url": "https:\/\/virginiamason.org\/Seattle",
"entityPresentationInfo": {
"entityScenario": "ListItem",
"entityTypeHints": [
"Place",
"LocalBusiness"
]
},
"geo": {
"latitude": 47.6095390319824,
"longitude": -122.327941894531
},
"routablePoint": {
"latitude": 47.6093978881836,
"longitude": -122.328277587891
},
"address": {
"streetAddress": "1100 9th Ave",
"addressLocality": "Seattle",
"addressRegion": "WA",
"postalCode": "98101",
"addressCountry": "US",
"neighborhood": "University District",
"text": "1100 9th Ave, Seattle, WA, 98101"
},
"telephone": "(206) 223-6600"
},
{
"_type": "LocalBusiness",
"id": "https:\/\/www.bingapis.com\/api\/v7\/#Places.2",
"name": "Seattle Children’s Hospital",
"url": "http:\/\/www.seattlechildrens.org\/",
"entityPresentationInfo": {
"entityScenario": "ListItem",
"entityTypeHints": [
"Place",
"LocalBusiness"
]
},
"geo": {
"latitude": 47.6625061035156,
"longitude": -122.283760070801
},
"routablePoint": {
"latitude": 47.6631507873535,
"longitude": -122.284614562988
},
"address": {
"streetAddress": "4800 Sand Point Way NE",
"addressLocality": "Seattle",
"addressRegion": "WA",
"postalCode": "98105",
"addressCountry": "US",
"neighborhood": "Laurelhurst",
"text": "4800 Sand Point Way NE, Seattle, WA, 98105"
},
"telephone": "(206) 987-2000"
}
],
"searchAction": {
}
}
}