Topics:
- APIs
- API Documentation
- Rate Limits
- Multiple requests
- Create endpoints
- Make multpile requests to third-party API
- Return result
- You will notice there is a config file that is ignored in the .gitignore, which you will be using to store your API key. You will need to import that key into your server file. DO NOT store it anywhere that will get pushed up to your repo.
- Everything else you will start from scratch.
- You will be using the Google Maps Place API to get details about any place provided by the user of your API. When the user provides you a query (example:
coffee+shops+in+Austin
) you will use that query to make a request to thePlace Search
service, and will specifically be doing aText Search Request
. You will use the necessary information from the data returned from that first request, and then do a request toPlace Details
service, returning the detailed information to the user of your API.
- Create an endpoint
/place
that, provided a query, returns the detailed information about the first place that is in the array of places returned to you fromPlace Search
.
- Create an endpoint
/places
that, provided a query returns the detailed information about ALL places returned to you fromPlace Search
.
- Places API: https://developers.google.com/places/web-service/
- Place Search: https://developers.google.com/places/web-service/search
- Place Details: https://developers.google.com/places/web-service/details