WemapPositioningSDK Android Fused Adaptive

Adaptive outdoor positioning that picks the best available provider at runtime.

Overview

This module provides an adaptive LocationSource that wraps both the Google Play Services fused provider (WemapPositioningSDK Fused GMS) and the platform GPS provider (WemapPositioningSDK GPS), selecting whichever is available on the device. Use it when you want a single outdoor source that works with or without Google Play Services.

import com.getwemap.sdk.positioning.androidfusedadaptive.AndroidFusedAdaptiveLocationSource

val source = AndroidFusedAdaptiveLocationSource(context, session)

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

Requires the android.permission.ACCESS_FINE_LOCATION permission. Request location permission before starting the source.

Packages