我在理解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. PlaceFilter for nearby google maps api places
- 3. Google api for autocomplete places“types”issue
- 4. Google Places API Places Types
- 5. Google Places API Swift
- 6. Google Maps Places API
- 7. Google Places Api Android
- 8. Google Places API - android
- 9. Google Places API Places照片
- 10. Google Places API
- 11. Google Places API cors
- 12. Google Places API subway_station ,?
- 13. Google places Api Key
- 14. Google Places API Warning
- 15. Google Places API Web服务与Android版Google Places API
- 16. Google Places JS API weekday_text
- 17. Google Places API违例
- 18. Google Places API LatLng Query
- 19. Google Places API查询
- 20. Google Places API限制
- 21. Google Places API属性
- 22. Google Places API错误
- 23. Maps api android key for places api not working
- 24. Google Places API - 响应数量
- 25. Google Places API和Google Javascript API - 密钥
- 26. 如何过滤City Places的Google Places API
- 27. 反应:Google Places API/Places详情
- 28. Google Places API未返回place_id
- 29. Android Parse Google Places API JSON
- 30. Google Places API地点描述
感谢您的帮助。我很难理解API。我认为我现在对它有点处理了。我正在使用seattleclouds.com构建应用程序。如何以HTML格式显示我使用Google API返回的结果? – user2330432 2013-04-30 21:47:10
你需要告诉我你正在使用什么编程语言。 – 2013-05-02 03:39:14