Demo
Geolocation Tracking
Share your location with everyone in a session and see them all on one map in real time. A PubNub JavaScript demo built with messages, Presence, and App Context.
In this tutorial, you’ll discover how to build a geolocation tracking app that allows users to share locations and send messages in real-time, as well as integrate with ChatGPT to provide information about your location.
Share your location on the map in the demo, or clone the app and run it with your own keys
Demo
Share your location with everyone in a session and see them all on one map in real time. A PubNub JavaScript demo built with messages, Presence, and App Context.
GitHub
The complete source. Put your publish and subscribe keys in js/app.js, then serve the folder on localhost, for example with npx serve.
git clone https://github.com/PubNubDevelopers/Geolocation-Demo.gitYou will develop a geolocation tracking application that allows participants to locate and interact with each other, based on PubNub's Javascript SDK.