For google location search with Angular2 typescript, you can use angular2-google-map-auto-complete library.
Step1: Run following command, it will give you angular2-google-map-auto-complete package-
npm install angular2-google-map-auto-complete
Step2: Sample component looks like this-
import { Component } from '@angular/core';
import {GoogleplaceDirective} from './googleplace.directive';
@Component({
selector: 'my-app',
directives: [GoogleplaceDirective],
template: `<h1>My First Angular 2 App</h1>
<input type="text" [(ngModel)] = "address" (setAddress) = "getAddress($event)" googleplace/>
`
})
export class AppComponent {
public address : Object;
getAddress(place:Object) {
this.address = place['formatted_address'];
var location = place['geometry']['location'];
var lat = location.lat();
var lng = location.lng();
console.log("Address Object", place);
}
}
Step3: Add script tag in index.html
<script src="https://maps.googleapis.com/maps/api/js?libraries=places&sensor=false"></script>
Output result:

See if this helps.