Skip to content

Trip Advisor that shows restaurants, hotels and attractions around the users location

Notifications You must be signed in to change notification settings

LebzaM/Resturant

Repository files navigation

Resturants

Img for Git

Usage

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. Git pic 2

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]);

Git pic 3

About

Trip Advisor that shows restaurants, hotels and attractions around the users location

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published