Geoapi を使用して特定の都市で利用可能なビジネスのリストを取得する方法を教えてください。GeoApi で特定の都市を使用してビジネスのリストを取得することは可能ですか。可能であれば、サンプル MQL クエリまたは URL リンクを使用してそれを行う方法を教えてください。
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 に答える