/ionic-3-google-maps-autocomplete

Integrate google maps with Ionic 3 with location autocomplete search and drag map to get the address

Primary LanguageTypeScriptDo What The F*ck You Want To Public LicenseWTFPL

Contributors Forks Stargazers Issues MIT License LinkedIn


Ionic 3 Google maps Auto complete Ionic 4 and 5 version here

Ionic 3 and Google maps integration, Search and Auto complete of address in map, drag map to get the address.

Report Bug

Table of Contents

  1. About the Project
  2. Getting Started
  3. Roadmap
  4. Contributing
  5. License
  6. Contact

About The Project

https://reddimohan.github.io
https://reddimohan.github.io
https://reddimohan.github.io

Built With

  • Ionic 3
  • [Google API key] - You can get this by login to Google console

Getting Started

To get a local copy up and running follow these simple steps.

Prerequisites

This is an example of how to list things you need to use the software and how to install them.

  • node, npm, Ionic cli, Angular cli
npm install npm@latest -g
npm install -g ionic@3.20.0 # If you want to install ionic 3

Setup for Ionic v3.x

Ionic:

   Ionic CLI          : 6.10.1 (/usr/lib/node_modules/@ionic/cli)
   Ionic Framework    : ionic-angular 3.7.1
   @ionic/app-scripts : 3.2.4

Cordova:

   Cordova CLI       : 9.0.0 (cordova-lib@9.0.1)
   Cordova Platforms : none
   Cordova Plugins   : no whitelisted plugins (0 plugins total)

Utility:

   cordova-res (update available: 0.15.0) : 0.14.0
   native-run                             : 1.0.0

System:

   Android SDK Tools : 26.1.1 (/home/mo/Android/Sdk)
   NodeJS            : v10.20.1 (/usr/bin/node)
   npm               : 6.14.4
   OS                : Linux 5.4

Installation

  1. Clone the repo
git clone https://github.com/reddimohan/ionic-3-google-maps-autocomplete.git
  1. Install NPM packages
npm install
  1. Update the Google Map API KEY in two places, which we created in Prerequisites section
    • src/index.html - <script src="https://maps.googleapis.com/maps/api/js?key=<KEY>&libraries=places"></script>
    • src/providers/map/map.ts - this.google_api_key = '<KEY>';
  2. Install below packages if they are not installed while npm install
ionic cordova plugin add cordova-plugin-geolocation
npm install --save @ionic-native/geolocation
  1. You can access the app at http://localhost:8100/ by executing ionic serve

Roadmap

See the open issues for a list of proposed features (and known issues).

Contributing

Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

License

Distributed under the MIT License. See LICENSE for more information.

Contact

Mohan - LinkedIn - Twitter

Project Link: https://github.com/reddimohan/ionic-3-google-maps-autocomplete