【问题标题】:Foursquare API HelpFoursquare API 帮助
【发布时间】:2011-07-06 11:24:36
【问题描述】:

我正在尝试寻找附近的场地。我找到了这个网址,我可以在其中插入纬度和经度。

我如何使用这个网址?我尝试从 Foursquare API 站点获取库,但无法让它们工作。

我知道我可以对这个页面上的结果进行 json_decode 以获取一个 php 对象,但是我如何拨打电话并将数据获取到我的网页?

https://api.foursquare.com/v1/venues.json?geolat=40.562362&geolong=-111.938689&l=10

谢谢

【问题讨论】:

    标签: php json foursquare


    【解决方案1】:
    $data = file_get_contents(http://MyURL/);
            $results = json_decode($data, true); //true = making it into array, not object
    

    【讨论】:

      猜你喜欢
      • 2010-11-02
      • 1970-01-01
      • 2023-03-25
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-12-27
      • 2017-06-03
      • 2011-05-09
      相关资源
      最近更新 更多