Skip to main content
Access the user’s GPS coordinates to build location-aware apps on MentraOS using the LocationManager.

Quick Start

Subscribe to Location Stream

Get continuous location updates as the user moves:

Get Latest Location (One-Time Poll)

Request a single location fix without subscribing to a stream:

LocationManager API

The SDK provides session.location with three main methods:

Accuracy Tiers

Choose the accuracy tier based on your app’s needs. Higher accuracy tiers provide more precise location data but drain more battery. Example:

LocationUpdate Data Structure

The LocationUpdate interface contains location data: TypeScript Interface:

Usage Examples

Display Location on Dashboard

Show Location on Voice Command

Cleanup Subscriptions


Permissions

Location access requires the location permission in your app manifest. Configure this in the Developer Console at console.mentra.glass.
Users must grant location permission for your app to access GPS data. Always handle cases where location data is unavailable.

Best Practices

Choose appropriate accuracy:
Always unsubscribe when done:
Handle poll timeouts:
Check accuracy in handler:

Error Handling

Handling Stream Errors

Handling Poll Timeouts


Next Steps

Permissions

Configure location permissions

Location Manager API

Complete API reference

Dashboard

Display location on dashboard

AI Tool Calls

Add voice commands for location (under maintenance, returning later in 2026)