Gowalla Example

no JSONP for Gowalla

HTML

<input id="btnGetIP" type="button" value="Get IP Address" />

JavaScript

$("#btnGetIP").click(function () {
    $.getJSON("http://freegeoip.net/json/?callback=?", function (data) {
        var latitude=data.latitude;
        var longitude=data.longitude;
        var url2="http://api.gowalla.com/spots?lat=" + latitude + "&lng=" + longitude + "&radius=50&callback=?";
        console.log(latitude);
        console.log(longitude);
        console.log(url2);
        $.getJSON(url2,function(data2) {
            console.log(data2);
        });
    });
});

//http://api.gowalla.com/spots?lat=30.2697&lng=-97.7494&radius=50