2017-11-25 160 views
0

我有这个网址,以便我能找到的所有定义的区域使用谷歌的API的咖啡馆:获得在特定区域内的所有网吧,而无需使用圆心和半径

https://maps.googleapis.com/maps/api/place/nearbysearch/json?location=26.272514,50.195682&radius=15000&types=cafe&key=<myAPI> 

涵盖在上述范围内的区域在这个圆圈内如下图所示:

enter image description here

我考虑了城市的实际面积是如下出现:

https://www.google.com.sa/maps/place/Al+Khobar/@26.2435009,50.0472298,11z/data=!4m5!3m4!1s0x3e49e839e8ef58d9:0xef778812d8b6aad1!8m2!3d26.2171906!4d50.1971381?hl=en 

enter image description here

我怎样才能得到所有这些正是在这个城市的咖啡馆(不多不少,不使用半径)?

回答

1

在谷歌Places API的here挖后,我发现这个代码,它看起来对我罚款:

https://maps.googleapis.com/maps/api/place/textsearch/json?query=cafes+in+Khobar&key=AIzaSyDAc91J9HvQ7bzyQqJzfQz38RcEjKamyEU