All Projects → psykolm22 → angular-google-place

psykolm22 / angular-google-place

Licence: MIT license
Angular google place library

Programming Languages

typescript
32286 projects
HTML
75241 projects
javascript
184084 projects - #8 most used programming language
CSS
56736 projects
shell
77523 projects

Projects that are alternatives of or similar to angular-google-place

Ng2 Idle
Responding to idle users in Angular (not AngularJS) applications.
Stars: ✭ 240 (+1500%)
Mutual labels:  angular5
AuthGuard
Example repo for guarding routes post
Stars: ✭ 42 (+180%)
Mutual labels:  angular5
ionic-login-component
Free sample of Premium Ionic Login Component
Stars: ✭ 17 (+13.33%)
Mutual labels:  angular5
RuralEducation
An app that helps rural students in their education.I used Firebase Realtime database,authentication,Networking requests,User Chats,Google Places Api,Paytm Payment Gateway Integration,Google places Autocomplete Api,Firebase Chat
Stars: ✭ 22 (+46.67%)
Mutual labels:  googleplaces
pos
Point of sale system targeted towards pharmacies in India.
Stars: ✭ 46 (+206.67%)
Mutual labels:  angular5
file-input-accessor
Angular directive that provides file input functionality in Angular forms.
Stars: ✭ 32 (+113.33%)
Mutual labels:  angular5
Ng Drag Drop
Drag & Drop for Angular - based on HTML5 with no external dependencies. 🎉
Stars: ✭ 233 (+1453.33%)
Mutual labels:  angular5
MEAN-stack-authentication
MEAN stack authentication boilerplate with Angular 5 and Angular Material
Stars: ✭ 29 (+93.33%)
Mutual labels:  angular5
ngx-scroll-event
An Angular 2+ directive to handle scroll events on an element.
Stars: ✭ 31 (+106.67%)
Mutual labels:  angular5
ngx-redux-core
The modern redux integration for Angular 6+
Stars: ✭ 32 (+113.33%)
Mutual labels:  angular5
angular-tag-cloud-module
This angular module contains a component which generates tag clouds.
Stars: ✭ 38 (+153.33%)
Mutual labels:  angular5
learn-how-to-build-a-mean-stack-application
The goal of this tutorial is to guide you through the coding of a full-stack JavaScript example application project and connecting a backend API to an Angular 5 front-end application employing the MEAN stack.
Stars: ✭ 55 (+266.67%)
Mutual labels:  angular5
angular5-starter
⭐ An Angular5 Starter Kit :: Router, HttpClient, Forms, Services, Dev/Prod, HMR, Async/Lazy Routes and a very good structure for large applications by @naologic
Stars: ✭ 54 (+260%)
Mutual labels:  angular5
flutter placez
Display & Search your nearby places. This app uses Flutter 1.0 PlatformView to display Google Map as a Flutter Widget in iOS & Android device
Stars: ✭ 47 (+213.33%)
Mutual labels:  googleplaces
iShop
A shopping website using ASP.net Core 2.0, EF Core 2.0 and Angular 5
Stars: ✭ 17 (+13.33%)
Mutual labels:  angular5
Ng Select
⭐ Native angular select component
Stars: ✭ 2,781 (+18440%)
Mutual labels:  angular5
enterprise-angular-seed
Angular CLI based seed application incorporating many best practices typically needed in Enterprise apps.
Stars: ✭ 62 (+313.33%)
Mutual labels:  angular5
angular-admin-panel
An Angular Admin boilerplate to quickly scaffold any large scale enterprise application.
Stars: ✭ 18 (+20%)
Mutual labels:  angular5
nz-schema-form
ng-zorro-antd form generation based on JSON-Schema
Stars: ✭ 40 (+166.67%)
Mutual labels:  angular5
ngx-google-places-autocomplete
Google Places autocomplete for angular web project
Stars: ✭ 85 (+466.67%)
Mutual labels:  places-autocomplete

angular-google-place

This is a Angular-Google-Place Module publish with Angular Format Package ( ng-packgr)

NPM

devDependency Status npm npm Downloads Renovate enabled Codacy Badge

Open Source Love TypeScript license forthebadge

Docs | Demo

#Release Notes Please take care of Release Note before creating issues.

GitHub

Please feel free to declare issues or contribute : https://github.com/psykolm22/angular-google-place

Installation

🎒 npm package can be consumed by Angular CLI, Webpack, or SystemJS

NPM

npm install --save angular-google-place

YARN

yarn add angular-google-place --save

Don't forget to add google api in your index.html

  • in your index.html:
<script  type="text/javascript" src="https://maps.googleapis.com/maps/api/js?libraries=places&key=GOOGLE_API_KEY"></script>

Replace by our Google api key .

Usage

  • Use it in your HTML elements, for example in your ***.component.html:
<input type="text" [(ngModel)] = "address" 
 [options]='options' 
 (setAddress) = "getAddress($event)"
 (FormatAddress)="getFormattedAddress($event)"
 (street_number) = 'street_number=$event'
 (street)= 'street=$event'
 (city)= 'city=$event'
 (state)='state=$event'
 (district)='district=$event'
 (country)='country=$event'
 (postal_code)='postal_code=$event'
 (lat)='lat=$event' 
 (lng)='lng=$event' 
 (adr_address)='adr_address=$event' 
 (name)='name=$event' 
 (place_id)='place_id=$event' 
 (types)='types=$event' 
 (url)='url=$event'  
 (utc_offset)='utc_offset=$event' 
 (vicinity)='vicinity=$event' 
 (photos)='photos=$event' 
 (CountryCodes)='CountryCodes=$event'
  id="autocomplete"
 angularGooglePlace/> 
  • Add in your ***.component.ts:
  • check CHANGELOG.md , types have change to type.
import { Address } from 'angular-google-place';

 export class AppComponent {
  public options = {type : 'address', componentRestrictions: { country: 'FR' }};
  getAddress(place: Address) {
         console.log('Address', place);
     }
  getFormattedAddress(event: any) {
         console.log(event);
     }   
}
  • Add GooglePlaceModule in your ***.module.ts:
import {AngularGooglePlaceModule} from 'angular-google-place';

@NgModule({
    ...
    import: [..., AngularGooglePlaceModule]
})

#Options Options for Google Search

  • Choose one type from
  [ '(cities)',
        '(regions)',
        'country',
        'postal_code',
        'locality',
        'sublocality',
        'address',
        'geocode',
        'administrative_area_level_1',
        'administrative_area_level_2',] 
  • country ( dynamic change allow) : CountryCode ISO 3166-1 Alpha-2 ( see demo )
[options]="{
    type: 'address',
    componentRestrictions: { country: 'FR' }
    }"

#Tested in:

  • Chrome
  • Firefox
  • Safari

#For AngularJS: https://github.com/vskosp/vsGoogleAutocomplete

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].