WemapCoreSDK

Common types, routing, points of interest, and analytics — the foundation every other Wemap SDK builds on.

Overview

WemapCoreSDK provides the shared entry point and data model for the Wemap platform. You create a CoreSession once — it loads a map's data and owns the state the other SDKs rely on (routing, points of interest, positioning) — then read directions through ItineraryProvider and points of interest through the point-of-interest manager.

A session is required to use any Wemap SDK. Create one and share it across every component you use so navigation, POI selection, and user location stay consistent.

import com.getwemap.sdk.core.CoreSession
import com.getwemap.sdk.core.configs.SessionConfig
import com.getwemap.sdk.core.configs.Environment

val session = CoreSession.create(
context, mapId = 19158, token = "YOUR_TOKEN", config = SessionConfig(environment = Environment.PROD)
)

val itineraries = session.itineraryProvider.itineraries(/* ... */)

To render a map, track indoor position, or overlay AR, pass the same session to WemapMapSDK, WemapPositioningSDK, or WemapGeoARSDK.

Call session.deinit() from the lifecycle owner that holds the session (e.g. a ViewModel.onCleared()) to tear down the session-owned services once the whole flow ends.

Packages

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard