I would like to get latitude and longitude for an address. I used angular2-google-maps npm package for this purpose. 

```
import { GoogleMapsAPIWrapper } from 'angular2-google-maps/core';
declare var google: any;
export class ContactComponent 
{
  constructor(private _wrapper: GoogleMapsAPIWrapper) 
  {

  }

  ngAfterViewInit() {
    this.getLatLon("115 23 Stockholm Sweden") ;
  }

  getLatLon(address: string) {
    console.log('Getting Address - ', address);
    let geocoder = new google.maps.Geocoder();
    return Observable.create(observer => {
        geocoder.geocode( { 'address': address}, function(results, status) {
            if (status == google.maps.GeocoderStatus.OK) {
                observer.next(results[0].geometry.location);
                observer.complete();
            } else {
                console.log('Error - ', results, ' & Status - ', status);
                observer.next({});
                observer.complete();
            }
        });
    })
  }
}

```

I got an error 'google is not defined'. I know i missed some configuration.
How can i fix this? I use angular 2 with webpack.

App Module:

```
  import { AgmCoreModule } from 'angular2-google-maps/core';

  @NgModule({
  imports: [
  AgmCoreModule.forRoot({
   apiKey: 'XXXXXXXXX'
   })],
  })

```