I have an address, and now I need to retrieve the Lat / Lang coordinates.
At Google, they only have good examples for V2 and not V3.
I want to do the following:
var myLatLAng = getLatLang(adress);
How can I modify this code to make that happend?
function showAddress(address) {
geocoder.getLatLng(
address,
function(point) {
if (!point) {
alert(address + " not found");
} else {
map.setCenter(point, 13);
var marker = new GMarker(point);
map.addOverlay(marker);
marker.openInfoWindowHtml(address);
}
}
);
}