Google maps 在我住的地方附近找餐馆

Google maps 在我住的地方附近找餐馆,google-maps,google-maps-api-3,google-latitude,Google Maps,Google Maps Api 3,Google Latitude,我试图找到一个合适的googleplacesapi,它接收我的位置,并返回附近的餐厅 目前,我只能在一个“特定”的城市里找到餐馆 有没有办法实现这一点?这就是您想要的吗 https://maps.googleapis.com/maps/api/place/search/xml?location=49.260691,-123.137784&radius=500&sensor=false&key=*PlacesAPIKey*&types=restaurant 类型是

我试图找到一个合适的
googleplacesapi
,它接收
我的位置
,并返回附近的
餐厅

目前,我只能在一个“特定”的城市里找到餐馆


有没有办法实现这一点?

这就是您想要的吗

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

类型是可选的

你所说的实现是什么意思?实现Google Places API,它接收“我的位置”[而不是我的城市]并返回附近的“餐馆”。你是否正在创建任何web应用程序,如果然后使用任何更好的语言,例如php。请参阅文档。对这就是我要找的。我已经找到了,但在分配“lat”和“long”时遇到了麻烦。我想让脚本自动确定“lat”和“long”。
https://maps.googleapis.com/maps/api/place/search/xml?location=49.260691,-123.137784&radius=500&sensor=false&key=*PlacesAPIKey*&types=restaurant