Skip to content
A Nativescript plugin that works
TypeScript Shell
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github init plugin Jan 17, 2018
demo Optional search parameter to restrict results to a country Mar 11, 2019
publish
src adding optional types parameter Jun 24, 2019
.gitignore init plugin Jan 17, 2018
.travis.yml
LICENSE init plugin Jan 17, 2018
README.md update Readme Jan 17, 2018
tslint.json init plugin Jan 17, 2018

README.md

Nativescript Google Places Autocomplete

npm version Twitter Follow

Add location autocomplete to your Nativescript application

Prerequisites

Create and grap your Api key from https://developers.google.com/maps/documentation/javascript/get-api-key?hl=en

Installation

tns plugin add nativescript-google-places-autocomplete

Usage

    import { GooglePlacesAutocomplete } from 'nativescript-google-places-autocomplete';
	
	let API_KEY = "your_api_Key";
	let googlePlacesAutocomplete = new GooglePlacesAutocomplete(API_KEY);

	googlePlacesAutocomplete.search(params)
	      .then((places: any) => {
		      // place predictions list
           }, (error => {
              console.log(error)
          }));
          
	googlePlacesAutocomplete.getPlaceById(place.placeId).then((place) => {
	   .then(function () { });
        }, error => {
            console.log(error)
        })        

Plugin Auther : Aymen Labidi

License

Apache License Version 2.0, January 2004

You can’t perform that action at this time.