added console.log for getCurrentPosition and nearbySearch calls