Live demo

Geolocation Tracking: Share your location on a live map

Try these · any order

Done: 0/5
  • To do: Change Username

  • To do: Send Greeting

  • To do: Send Invite

  • To do: View User Details

  • To do: Create New Session

Build it yourself

Make your own geolocation tracker

Follow the tutorial to build a geolocation tracker step by step, or clone the source and start changing it.

Tutorial

Build a geolocation tracking app

Add your keys, join a session, share your position, show everyone on the map, and count who is in the session.

GitHub

PubNubDevelopers/Geolocation-Demo

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.git
View on GitHub