Ionic alert: show autocomplete inside input in an alert window

I want to add autocomplete in an input that is inside ionic alert. my code is :
let alert = this.alertCtrl.create({
title: ‘Offer a Ride’,
inputs: [
name: ‘From’,
placeholder: ‘From’,
id: ‘From’
I need to do the following for this input:
autocomplete = new google.maps.places.Autocomplete(
(document.getElementById(‘From’)),//not working
{types: [‘geocode’]});

How can i do this??