Skip to content

Latest commit

 

History

History
 
 

geocode

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

#google-maps-api/geocode ##module.exports(req, [onComplete]) ⏏ This wraps the Google Maps Geocoder nicely.

The first parameter you pass in an object which represents your request to the Google Maps Geocoder. For more info visit:

https://developers.google.com/maps/documentation/javascript/reference#GeocoderRequest

Example

require( 'google-maps-api' )( 'your api key here' );

require( 'google-maps-api/geocode' )( {
  address: 'Springfield'
})
.then( function( result ) {

  console.log( result );
});

API

Returns: Promise - This promise will return the result same as the onComplete