Skip to content
This repository has been archived by the owner on Dec 23, 2021. It is now read-only.

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

Notifications You must be signed in to change notification settings

sebastien-roch/cordova-plugin-android-place-picker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published