1. Home >
  2. Documentation >
  3. Services >
  4. getlatlng
 

getlatlng

This function retrieves the google.maps.GeocoderResult from an address.

Usage

Parameters

Example

This example resolves a given address, then adds a marker onto the map.

$("#test").gmap3({
  getlatlng:{
    address:  "Paris, France",
    callback: function(results){
      if ( !results ) return;
      $(this).gmap3({
        marker:{
          latLng:results[0].geometry.location
        }
      });
    }
  }
});
Close