私はjquery 1.6.4を使用しており、郵便番号に対応する都市を取得しようとしているので、Google Geocode APIを使用したいと考えています。
$(document).ready(function() {
$("#zipcode").keypress(function(){
$.getJSON(
"http://maps.googleapis.com/maps/api/geocode/json",
{
sensor: false,
address: "france"
},
function(data) {
alert(data.status);
}
);
});
});
しかし、それはうまくいきません.firebugは私にステータスコード200を与えますが、結果は出しません. APIに直接尋ねると、うまくいきます...では、何が間違っているのでしょうか?