This project is read-only.

Unable to get Geocode

May 11, 2010 at 5:27 PM

I have a field on my website for people to enter an address and then it finds the 20 closest distributors to them from the database.  My issue is that once I add the address entered as a marker I am not able to get a central Geocode to work from.  My code looks like this.

String address = txtAddress.Text;

GoogleMap1.Address = address;
GoogleMap1.Zoom = 6;
GoogleMarker center = new GoogleMarker(address);
GoogleMap1.Markers.Add(new GoogleMarker(address));


Is there any way to get the Geocode of the Address itself or of where the map will be centered?  Thanks!