WemapPositioningSDK GPS

GPS-based outdoor positioning as a Wemap LocationSource.

Overview

This module wraps the Android platform location provider into a Wemap LocationSource. Create a GpsLocationSource from a session, then assign it to a WemapMapView's or GeoARView's location manager — or start it directly to use it with a third-party map or AR system.

import com.getwemap.sdk.positioning.gps.GpsLocationSource

val gps = GpsLocationSource(context, session)

// attach once the view has loaded (see WemapMapSDK / WemapGeoARSDK — awaitLoaded()):
mapView.userLocationManager.locationSource = gps // WemapMapSDK
// or
geoARView.locationManager.locationSource = gps // WemapGeoARSDK

GPS requires the android.permission.ACCESS_FINE_LOCATION permission. Request location permission before starting the source.

Packages

Link copied to clipboard