rendile globali
codice:var lat=0; var long=0; function check_city() { var place = $("#city").val(); geocoder = new GClientGeocoder(); geocoder.getLatLng(place, function(point) { if (!point) { alert("Place not found. Retry!"); $("#city").val(""); $('#city').focus(); } else { lat = point.y;//qui valorizzi latitudine long = point.x;//qui valorizzi longitudine } }); }![]()

Rispondi quotando