angular-material-extensions / google-maps-autocomplete

Autocomplete input component and directive for google-maps built with angular and material design |
https://angular-material-extensions.github.io/google-maps-autocomplete
MIT License
169 stars 60 forks source link

mat-search-google-maps-autocomplete #293

Closed simo9900 closed 4 years ago

simo9900 commented 4 years ago

I want to display only the search address in Auto Parse Address and hide (street, Nr, PLZ, Locality) How can I do that?

Thank you

AnthonyNahas commented 4 years ago

you can use matGoogleMapsAutocomplete directive within an input field


<mat-form-field>
  <mat-label>Address << using the directive >></mat-label>
  <input matInput
       matGoogleMapsAutocomplete
       [country]="de"
       (onAutocompleteSelected)="onAutocompleteSelected($event)"
       (onLocationSelected)="onLocationSelected($event)">
</mat-form-field>

cheers 🍺