Skip to content

This application makes use of Google API to show a random place to visit in USA based on their selection. It is developed using react.

Notifications You must be signed in to change notification settings

yasnaraj/LetsGo-GooglePlaces

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lets Go (A Google Places API application)

This application makes use of Google API to show a random place to visit in USA based on their selection.

Once a user selects a generic thing they are interested in, the application:

  • Fetches a list of places based on the selection they made
  • Picks a random place from the selection
  • Displays the place name
  • Displays the direction to the randomly selected place from their current location or pin points the location in Google Maps
  • Displays a list of images for reference of the randomly selected place
  • Displays top 5 reviews of the place

This Application makes use of the following Google API services:

  • Place Search (Text Search Request)
  • Place Details Request
  • Place Photo Request

It also utilizes react-google-maps to generate the Google Map to render direction or pin point the location.

Please feel free to check out this demo

Note:

The api key for Google needs to be placed in /public/index.html: replace [GOOGLE-API-KEY] to your api key.

OR

If you want to run this application locally, uncomment the script tag prior to the [GOOGLE-API-KEY] script tag and comment out the script tag that has [GOOGLE-API-KEY]

<script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?libraries=places"></script>
<!-- <script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?key=[GOOGLE-API-KEY]&libraries=places"></script> -->

About

This application makes use of Google API to show a random place to visit in USA based on their selection. It is developed using react.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published