我在理解Google Places API时遇到问题。我正在构建一个附带功能的iPhone应用程序,该功能允许用户找到位于用户GPS周围的餐馆。我该如何获得Google API?我必须有一个定制的,这是如何工作的?如果我还想为兴趣点创建一个API,我该怎么做?Google API for Restaurants Places
1
A
回答
5
有一个用于搜索附近位置的Google Places API。文档在这里:https://developers.google.com/places/documentation/search#PlaceSearchRequests
但我猜你已经发现了。如果您提出更具体的问题,我们可以提供更多帮助。
0
您可以使用谷歌的地方API,如果你只想显示特定类型的地方,例如在你的情况下,你可以使用请求对象餐厅如下面的代码中
var request = {
location: pyrmont,
types: ['restaurant']
};
infowindow = new google.maps.InfoWindow();
places = new google.maps.places.PlacesService(map);
places.nearbySearch(request, callback);
有关类型的更多细节过滤在谷歌的地方API你可以检查Link on Google Developers
相关问题
- 1. 使用Google Places Api for Webservices或Google Places API for iOS
- 2. Google Places Api Android
- 3. Google places Api Key
- 4. Google Places API cors
- 5. Google Places API Warning
- 6. Google Places API subway_station ,?
- 7. Google Places API错误
- 8. Google Places API限制
- 9. Google Places API属性
- 10. Google Places API - 响应数量
- 11. 反应:Google Places API/Places详情
- 12. Google Places API地点描述
- 13. Google Maps JavaScript Places API - URL undefined
- 14. Google Places API问题 - INVALID REQUEST
- 15. Google Places Web API照片
- 16. Google Places API - 详细信息
- 17. Google Places API不一致
- 18. Google Places API类型功能..
- 19. Google Places API:结果数量
- 20. Google Places Autocomplete API - 线程
- 21. Google Places API - 法国地区
- 22. PlayFramework请求Google Places API
- 23. 在Google Places API for iOS上显示地点说明
- 24. 如何使用Google Places API for Android获取位图快照?
- 25. HttpWebResponse在Google Places API调用上超时
- 26. 无法添加Google Places API密钥
- 27. Google Places API Android:Autocompletion关闭太快
- 28. Google Places API:PLACES_API_INVALID_APP
- 29. Google Places API - radarSearch按名称搜索
- 30. Google Places API展示学校和商店
感谢您的帮助。我很难理解API。我认为我现在对它有点处理了。我正在使用seattleclouds.com构建应用程序。如何以HTML格式显示我使用Google API返回的结果? – user2330432 2013-04-30 21:47:10
你需要告诉我你正在使用什么编程语言。 – 2013-05-02 03:39:14