cordova-plugin-android-place-picker

1.0.0 • Public • Published

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

Package Sidebar

Install

npm i cordova-plugin-android-place-picker

Weekly Downloads

1

Version

1.0.0

License

MIT

Last publish

Collaborators

  • seboulba