Nativescript, JavaScript, iOS App Development, Android App Development, Programming.
location from the device before issuing the query, ensuring we’ll get results for our current location instead of a past one. Modify the onSubmit function to now be: onSubmit() { let that = this geolocation .getCurrentLocation({ timeout: 20000 }) .then(location => { if (!location) {