cpa

cordova-plugin-android-place-picker

A cordova plugin that lets the user pick a place on a map. Plugin returns the name and coordinates.

Showing:

Popularity

Downloads/wk

2

GitHub Stars

0

Maintenance

Last Commit

5yrs ago

Contributors

0

Package

Dependencies

0

Size (min+gzip)

0.2KB

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Readme

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

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100