在ios swift的谷歌地图上的四个方形场地侧面自定义形状

时间:2016-11-11 12:19:14

标签: swift google-maps foursquare

如何在谷歌地图上绘制的形状获得foursquare场地。搜索fours的api并没有提供任何直接的方法。

1 个答案:

答案 0 :(得分:0)

使用Foursquare上的venue/search API,您可以传递nesw参数来定义要在其中搜索的边界框。

对于复杂多边形,您可以将polygon参数传递给venues/explore端点。

https://api.foursquare.com/v2/venues/explore?client_secret=****&client_id=****&polygon=37.80463017025873%2C-122.42786407470703%3B37.802595683318046%2C-122.42374420166016%3B37.798662182986945%2C-122.42219924926756%3B37.79676317682161%2C-122.43009567260741%3B37.79255806087506%2C-122.43919372558592%3B37.79255806087506%2C-122.44314193725585%3B37.79513541839677%2C-122.44588851928712%3B37.803273851858656%2C-122.44709014892577%3B37.80286695148153%2C-122.44279861450195%3B37.805850835522065%2C-122.43370056152344%3B37.80463017025873%2C-122.42786407470703&query=dinner&v=20161101