谷歌从Bing提供API类似的API?

时间:2013-07-09 09:40:43

标签: google-maps foursquare google-places-api bing-maps

Google提供Google地方API(https://developers.google.com/places/documentation/)以获取本地商家信息。

例如:http://www.google.com/maps/place?source=uds&q=Priority+Computer+Solutions,&cid=13222445107995448542

Bing是否有类似的机制提供上市信息?我尝试使用Bing Maps REST Locations API,但它仍然缺少一些信息,如电话号码,商业网址等....

即使Bing使用以下网址提供了足够的信息:

http://www.bing.com/local/details.aspx?lid=YN873x102579773&q=Ace%20Auto%20Detailing%2c%2020165&qt=yp&tid=6fa705c250b34f5184fae60

bing local是否有任何API提供上述URL的信息?

基本上我需要任何商家信息地址,包括其电话号码和URL。我只想尝试Bing。

谢谢!

2 个答案:

答案 0 :(得分:2)

是的,实际上根据您的需要有多种服务,您可以使用:

  • Bing Maps REST空间数据服务(公共数据源):

NAVTEQEU:http://msdn.microsoft.com/en-us/library/hh478193.aspx

NAVTEQNA:http://msdn.microsoft.com/en-us/library/hh478192.aspx

  • Bing Maps REST Location API,如果您对位置和地理编码更感兴趣:

http://msdn.microsoft.com/en-us/library/ff701711.aspx

  • Bing Maps SOAP Search服务(考虑不使用它,我建议使用REST而不是这个)

http://msdn.microsoft.com/en-us/library/cc980849.aspx

  • Bing Search 2.0还包含位置信息,请参阅Azure数据 Markeplace:

http://datamarket.azure.com/dataset/bing/search

答案 1 :(得分:0)

https://msdn.microsoft.com/en-us/library/gg585126.aspx 您可以按区域查询本地列表,如果有,则可以通过Id查询。您可以 1)按区域查询以获取实体的完整列表,然后查找任何特定ID的详细信息。

<entry xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices" xmlns="http://www.w3.org/2005/Atom">
  <id>https://spatial.virtualearth.net/REST/v1/data/20181f26d9e94c81acdf9496133d4f23/FourthCoffeeSample/FourthCoffeeShops('-22067')</id>
  <title type="text" />
  <updated>2011-01-11T02:22:18Z</updated>
  <content type="application/xml">
    <m:properties>
      <d:EntityID>-22067</d:EntityID>
      <d:Latitude m:type="Edm.Double">57.003766</d:Latitude>
      <d:Longitude m:type="Edm.Double">9.874434</d:Longitude>
      <d:AddressLine>Løven</d:AddressLine>
      <d:PrimaryCity>Aalborg</d:PrimaryCity>
      <d:Subdivision>Nordjyllands Amt</d:Subdivision>
      <d:PostalCode>9200</d:PostalCode>
      <d:Phone>0800-XXXXX</d:Phone>
      <d:SecondaryCity />
      <d:CountryRegion>Danmark</d:CountryRegion>
      <d:Name>Fourth Coffee Store #22067</d:Name>
      <d:DisplayName>Fourth Coffee Store #22067, Aalborg, Nordjyllands Amt, Danmark</d:DisplayName>
      <d:Manager>Alan Steiner</d:Manager>
      <d:StoreOpen>Y</d:StoreOpen>
      <d:StoreType>Drive-Thru</d:StoreType>
      <d:SeatingCapacity m:type="Edm.Int64" m:null="true" />
      <d:Open m:type="Edm.Int64">700</d:Open>
      <d:Close m:type="Edm.Int64">1800</d:Close>
      <d:IsWiFiHotSpot m:type="Edm.Boolean">0</d:IsWiFiHotSpot>
      <d:IsWheelchairAccessible m:type="Edm.Boolean">0</d:IsWheelchairAccessible>
      <d:AcceptsOnlineOrders m:type="Edm.Boolean">0</d:AcceptsOnlineOrders>
      <d:AcceptsCoffeeCards m:type="Edm.Boolean">1</d:AcceptsCoffeeCards>
      <d:CreatedDate m:type="Edm.DateTime">2010-11-03T00:00:00</d:CreatedDate>
      <d:LastUpdatedDate m:type="Edm.DateTime">2010-11-03T23:31:36</d:LastUpdatedDate>
    </m:properties>
  </content>
  <rights type="text">© 2011 Microsoft and its suppliers. This API and any results cannot be used or accessed without Microsoft’s express written permission.</rights>
</entry>