I am new to both JSON & google maps. SO please tell me what I am missing
<!DOCTYPE html>
<html>
<head>
<script src="https://maps.googleapis.com/maps/api/js?v=3.15&sensor=false"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script>
$function({
$("#search").click(function(){
$.getJSON("http://maps.googleapis.com/maps/api/geocode/json?address=awan%20town&sensor=false",function(result){
$.each(result,function(i,field){
$("#map-canvas").append(field + " " );
});
});
});
});
</script>
</head>
<body>
<button id="search">Search</button>
<div id="map-canvas" style="width:100%;height:100%;"></div>
</body>
</html>