extract province from location using google api
I'm trying to extract some extra information from a location using google map api. I take a look and it's possible but I don't understand well where I've to put the bounds parameter. This is my request:

    var address = document.getElementById("address").value;
    	geocoder.geocode( { 'address': address}, function(results, status) {
    	if (status == google.maps.GeocoderStatus.OK) {
    		alert(results[0].formatted_address);	
    	} else {
    		alert("Geocode was not successful for the following reason: " + status);
    	}
    });

I suppose to add the bound after 'address':address but not clear how. I tryied with that but it doesn't works:

    geocoder.geocode( { 'address': address, "types":["sublocality","political"]}, function(results, status) {


I don't know if have familiar with Italian province but I need something like that:

Request: Venezia <br />
Response: VE

thanks,
Andrea
extract province from location using google api
===

I'm trying to extract some extra information from a location using google map api. I take a look and it's possible but I don't understand well where I've to put the bounds parameter. This is my request:

    var address = document.getElementById("address").value;
    	geocoder.geocode( { 'address': address}, function(results, status) {
    	if (status == google.maps.GeocoderStatus.OK) {
    		alert(results[0].formatted_address);	
    	} else {
    		alert("Geocode was not successful for the following reason: " + status);
    	}
    });

I suppose to add the bound after 'address':address but not clear how. I tryied with that but it doesn't works:

    geocoder.geocode( { 'address': address, "types":["sublocality","political"]}, function(results, status) {


I don't know if have familiar with Italian province but I need something like that:

Request: Venezia <br />
Response: VE

thanks,
Andrea