1.0.0 • Published 8 years ago

cordova-plugin-android-place-picker v1.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

Install

cordova plugin add https://github.com/sebastien-roch/cordova-plugin-android-place-picker.git

Requirement

Google Play service. They will be required by the plugin. You will receive an error when calling the main function if the Google Play services are not present on the device.

Usage

AndroidPlacePicker.pickPlace(onSuccess, onError);

The onSuccess function receives an object with the following structure:

{
    name: 'Poststrasse 10',
    coords: {
        latitude: '8.3966319',
        longitude: '47.370395'
    }
}

The onError function receives an error message:

  • canceled: the user cancelled the action (or pressed back)
  • Google Place service not present: self descriptive
  • picker error. No connection?: No internet connection available

Licence

MIT