任何人都可以幫助我如何獲得在特定的城市使用Geoapi可用的業務列表。是否有可能檢索GeoApi中使用特定城市的業務列表。如果有可能,請讓我知道如何通過樣本mql查詢或url鏈接來做到這一點。如何在iPhone中使用Geoapi在特定城市搜索商戶?
0
A
回答
0
是的,你可以檢索業務的列表在你的位置,你的查詢將如下,
MQL查詢:{"lat": 37.75629, "lon": -122.4213, "radius": "1km", "entity": [{"type": "business", "guid": null}]}
這裏一個example
爲了得到一個感覺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
相關問題
- 1. 搜索城市
- 2. 在ios中搜索城市名稱
- 3. Swift + CLLocationManager:如何判斷用戶是否在特定的城市?
- 4. 如何在特定城市使用谷歌地點API在PHP
- 5. 如何根據用戶搜索查找城市和國家?
- 6. 實時搜索城市?
- 7. 如何從特定的城市獲取附近的城市?
- 8. 過濾google api來搜索特定城市的地理編碼
- 9. 如何使用Google Maps v3搜索某個地區的城市?
- 10. 使用地理定位搜索最近的城市
- 11. 未能在Weatherlib API中檢索搜索到的城市android
- 12. 如何在iPhone應用程序中找到城市名稱?
- 13. 如何在MGTwitterengine中使用twitter用戶搜索api iphone
- 14. 如何在android中使用google APIs打開某個特定城市的地圖
- 15. 如何在python中獲取城市(geonameid)的附近城市?
- 16. iphone編程,搜索城市和國家列表
- 17. 在iPhone中我們如何知道用戶的國家或城市代碼
- 18. 如何在Iphone中獲取用戶的城市和國家英文
- 19. Facebook圖形API:按城市搜索
- 20. 按城市搜索Youtube視頻
- 21. 搜索城市狀態郵編
- 22. 搜索城市查詢所選類別
- 23. Google Place API按座標搜索城市
- 24. 搜索附近城市lat和長
- 25. 使用Google Places API在特定地點獲取附近城市
- 26. iPhone:不使用城市飛艇
- 27. 在MapKit中搜索街道名稱,城市......的最佳方式?
- 28. 在一個文本字段中搜索城市,州和郵編
- 29. 在Facebook API中按城市搜索個人檔案
- 30. 如何檢查Lat Long在特定城市內?