/plushcap/analysis/hasura/graphql-join-data-google-places-api-postgres-postgis-location

Using GraphQL to join data across Google Places API and Postgres to build location based apps

What's this blog post about?

This article discusses using Hasura Remote Joins to join geography data from PostGIS extension in a Postgres database with Google Places API in GraphQL. It explains how to enable the PostGIS extension on Postgres and insert sample user location data. The author then demonstrates how to fetch nearby restaurants' information using Google Places API as a REST API, adding it as a Remote Schema in Hasura Console. Finally, the article provides an example of a GraphQL query that fetches this data in a single API call by joining the Postgres and Google Places API data.

Company
Hasura

Date published
July 12, 2019

Author(s)
Praveen Durairaju

Word count
511

Hacker News points
None found.

Language
English


By Matt Makai. 2021-2024.