Google Earth API Samples - Geocoding via the Maps API

Last Modified:
06/08/2009
Installed Plugin Version:
...

Relevant Resources:

Relevant Code Excerpt:

var geocodeLocation = document.getElementById('location').value;

var geocoder = new google.maps.ClientGeocoder();
geocoder.getLatLng(geocodeLocation, function(point) {
  if (point) {
    var lookAt = ge.createLookAt('');
    lookAt.set(point.y, point.x, 10, ge.ALTITUDE_RELATIVE_TO_GROUND, 
               0, 60, 20000);
    ge.getView().setAbstractView(lookAt);
  }
});