谁能帮助我如何使用 Geoapi 获取特定城市的可用业务列表。是否可以使用 GeoApi 中的特定城市检索业务列表。如果可能,请让我知道如何使用示例 mql 查询或 url 链接来做到这一点。
问问题
128 次
1 回答
0
是的,您可以检索您所在位置附近的商家列表,您的查询将如下所示,
MQL 查询: {"lat": 37.75629, "lon": -122.4213, "radius": "1km", "entity": [{"type": "business", "guid": null}]}
这是一个例子
为了了解 GeoAPI 的工作原理,这里有一些基本查询。将查询放入浏览器以查看其 JSON 格式的结果。
* Search from a latitude, longitude coordinate pair:
o http://api.geoapi.com/v1/search?lat=37.75647&lon=-122.421218&radius=0.1km&apikey=demo&pretty=1
* Get the parent entities of a lat, lon pair:
o http://api.geoapi.com/v1/parents?lat=37.563475&lon=-122.323219&apikey=demo&pretty=1
* Get an entitys parents (in this case, the entity is Ritual Roasters in San Francisco, and its parents are the neighborhood and city its located in):
o http://api.geoapi.com/v1/e/ritual-coffee-roasters-san-francisco-ca-94110/parents?apikey=demo&pretty=1
* Get information about a business (in this case, Ritual Roasters in San Francisco):
o http://api.geoapi.com/v1/e/ritual-coffee-roasters-san-francisco-ca-94110/view/listing?apikey=demo&pretty=1
* Get information about an entity (in this case, San Francisco):
o http://api.geoapi.com/v1/e/san-francisco-ca?apikey=demo&pretty=1
于 2011-01-28T03:07:48.267 回答