tried to edit the post but seems that edits are not working..... the url is wrong,
http://maps.googleapis.com/maps/api/geocode/json?sensor=false&address=%s has to be replaced with http://maps.googleapis.com/maps/api/geocode/xml?sensor=false&address=%s Sorry for that.