function GoogleGeocode(apiKey){
	this.apiKey=apiKey;
	this.geocode=function(address,callbackFunction){
		$.ajax({
			dataType:'jsonp',
			url:'http://maps.google.com/maps/geo?output=json&oe=utf8&sensor=false'+'&key='+this.apiKey+'&q='+address,
			cache:false,
			success:function(data){
				if(data.Status.code==200){
					var result={};
					result.longitude=data.Placemark[0].Point.coordinates[0];
					result.latitude=data.Placemark[0].Point.coordinates[1];
					callbackFunction(result);
				}
				else{
					callbackFunction(null);
				}
			}
		});
	};
}
