Google Places API is a service that returns information about places using HTTP requests. Places are defined within this API as establishments, geographic locations, or prominent points of interest.
Adding Google Places as Remote Schema
- Get the Google Maps API Key by visting the Google Maps Platform page https://developers.google.com/places/web-service/get-api-key.
- Set the API key as
- This custom resolver is used to accept a location argument of type "Point" of Postgres and returns restaurants around a radius with rating and address details.
- Refer to API documentation for integration with other information like Photos, Reviews etc.
Google Places API Documentation
Deploy with Glitch
Click the following button to edit on glitch
Add the following environment variables in the
.envfile on glitch.
npm install PORT=3000 GOOGLE_MAPS_API_KEY=xxx npm start