# Postgres Realtime location sharing with MapLibre

DevFeed: [Postgres Realtime location sharing with MapLibre](<https://devfeed.tech/articles/postgres-realtime-location-sharing-with-maplibre-510.md>)

Original publisher: [Read original article](<https://supabase.com/blog/postgres-realtime-location-sharing-with-maplibre>)

Author: Thor Schaeff

Published: 2024-07-04T07:00:00Z

Content type: tutorial

Language: en

Sources: [Supabase Blog](<https://devfeed.tech/sources/supabase-blog.md>)

Topics: [Supabase](<https://devfeed.tech/topics/supabase.md>), [JavaScript](<https://devfeed.tech/topics/javascript.md>), [React](<https://devfeed.tech/topics/react.md>), [Remote Procedure Call (RPC)](<https://devfeed.tech/topics/rpc.md>), [API](<https://devfeed.tech/topics/api.md>), [data](<https://devfeed.tech/topics/data.md>), [Database](<https://devfeed.tech/topics/database.md>)

Tags: [api](<https://devfeed.tech/tags/api.md>), [build](<https://devfeed.tech/tags/build.md>), [capture](<https://devfeed.tech/tags/capture.md>), [code](<https://devfeed.tech/tags/code.md>), [function](<https://devfeed.tech/tags/function.md>), [getting-started](<https://devfeed.tech/tags/getting-started.md>), [guide](<https://devfeed.tech/tags/guide.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [javascript](<https://devfeed.tech/tags/javascript.md>), [js](<https://devfeed.tech/tags/js.md>), [map](<https://devfeed.tech/tags/map.md>), [migrations](<https://devfeed.tech/tags/migrations.md>), [postgres](<https://devfeed.tech/tags/postgres.md>), [react](<https://devfeed.tech/tags/react.md>), [realtime](<https://devfeed.tech/tags/realtime.md>), [remote](<https://devfeed.tech/tags/remote.md>), [rpc](<https://devfeed.tech/tags/rpc.md>), [state](<https://devfeed.tech/tags/state.md>), [subscription](<https://devfeed.tech/tags/subscription.md>), [telegram](<https://devfeed.tech/tags/telegram.md>)

## AI overview

This tutorial shows how to build live location sharing with Supabase, Postgres, Supabase Realtime, a Telegram Bot, and MapLibre GL JS in React. It covers capturing location data in a Supabase Edge Function, inserting it through an RPC, subscribing to database changes, and displaying updated markers on a map.

## Source excerpt

Use Supabase Realtime to draw live location data onto the map with MapLibre GL JS.