This component provides real-time geolocation functionality for OutSystems Reactive and Traditional Web applications using pure JavaScript. Unlike the built-in mobile-only geolocation plugin, this solution allows web apps to access the user's current location (latitude and longitude) directly through the browser's Geolocation API.
Real-time position tracking
Latitude and longitude retrieval
Compatible with all major modern browsers
Lightweight and easy to integrate
Includes error handling (e.g., permission denied, timeout)
The component uses navigator.geolocation.watchPosition() to track the user's position in real time. Each time the position changes, the updated coordinates are passed to the OutSystems client action via a JavaScript-to-OutSystems event bridge.
navigator.geolocation.watchPosition()
Real-time user tracking on a map
Location-based filtering or content display
Delivery tracking dashboards
Geo-tagging actions within web forms
No mobile plugin required. Fully web-native.