www/geofence.js
function (geofences, success, error) {
        if (!Array.isArray(geofences)) {
            geofences = [geofences];
        }

        geofences.forEach(coerceProperties);

        if (isIOS) {
            return addOrUpdateIOS(geofences, success, error);
        }

        return execPromise(success, error, "GeofencePlugin", "addOrUpdate", geofences);
    }
function (geofences, success, error) {
        if (!Array.isArray(geofences)) {
            geofences = [geofences];
        }

        geofences.forEach(coerceProperties);

        if (isIOS) {
            return addOrUpdateIOS(geofences, success, error);
        }

        return execPromise(success, error, "GeofencePlugin", "addOrUpdate", geofences);
    }
function ( geofences , success , error ) { if ( ! Array . isArray ( geofences ) ) { geofences = [ geofences ] ; } geofences . forEach ( coerceProperties ) ; if ( isIOS ) { return addOrUpdateIOS ( geofences , success , error ) ; } return execPromise ( success , error , "GeofencePlugin" , "addOrUpdate" , geofences ) ; }
Adding new geofence to monitor.
Geofence could override the previously one with the same id.

@name addOrUpdate
@param {Geofence|Array} geofences
@param {Function} success callback
@param {Function} error callback

@return {Promise}
Adding new geofence to monitor . Geofence could override the previously one with the same id .