React Native web app made with Expo framework that allows you to view resturants, hotels and attractions around you, showing prices, contact details, ranking, and link to travel advisor and their respective website.
Get the users location when permission is given
useEffect(() => { navigator.geolocation.getCurrentPosition(({coords: {latitude, longitude}}) => { setCoordinates({ lat: latitude, lng: longitude});
})
// Navigator.geolocation.getCurrentPosition to get the users unique location when permission is given by the user
}, []);
useEffect(() => { setLoading(true);
getPlacesData(bounds.sw, bounds.ne)
.then((data) => {
setPlaces(data);
setLoading(false);
})
}, [coordinates, bounds]);