【问题标题】:Get restaurants near my location获取我所在位置附近的餐厅
【发布时间】:2012-08-11 11:49:45
【问题描述】:

我试图找到一个合适的Google Places API 接收My Location 并返回附近的restaurants

目前,我只能在“特定”城市找到餐馆。

https://maps.googleapis.com/maps/api/place/textsearch/xml?query=restaurants+in+Sydney&sensor=true&key=*MyKey*

有没有办法实现这个?

【问题讨论】:

  • 实施是什么意思?
  • 实现接受“我的位置”[而不是我的城市]并返回附近的“餐厅”的 Google Places API..
  • 您是否正在创建任何 Web 应用程序,如果使用任何首选语言,例如:php。

标签: google-maps google-maps-api-3 google-latitude


【解决方案1】:

这是你要找的吗?

https://maps.googleapis.com/maps/api/place/search/xml?location=49.260691,-123.137784&radius=500&sensor=false&key=*PlacesAPIKey*&types=restaurant

类型是可选的

【讨论】:

  • 是的。这样我一直在寻找。我已经找到了,但是在分配“lat”和“long”时遇到了麻烦。我想让脚本自动确定“lat”和“long”。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2016-07-14
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多