如何在谷歌地图上绘制的形状获得foursquare场地。搜索fours的api并没有提供任何直接的方法。
答案 0 :(得分:0)
使用Foursquare上的venue/search API,您可以传递ne
和sw
参数来定义要在其中搜索的边界框。
对于复杂多边形,您可以将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