返される JSON 形式から緯度と経度を取得したいのですが、undefined が返されます
これはこれまでの私のコードです。json形式は、正確に返されるURLを見てください
$.ajax({
    type: 'GET',
    url: "http://maps.googleapis.com/maps/api/geocode/json?address=Garibaldi,Prishtina&sensor=true",
    dataType: 'json',
    success: function (data) {
        $.each(data, function () {
            $.each(this, function (key, value) {
                switch (key) {
                    case "lat":
                        alert(value) // access to this node works fine                      
                        break;
                    default:
                        alert(value[0].geometry.location.lat) // this is undefined
                        break;
                }
            });
        });
    }
});
誰でもこれを解決する方法を知っていますか?