PublicApi

class PublicApi

The one place the SDK names the host of Mapsted's public REST API.

Every build type (release, debugRelease, staging and debug) talks to production public.mapsted.com. The old per-environment hosts public-test.mapsted.com and public-stage.mapsted.com no longer exist in DNS (NXDOMAIN, checked 2026-10-12), so debug builds that pointed at them failed every request (#291). Staging data is still selected per request with the data=uat query parameter (Params.useStagingData()), not by a separate host.

scripts/check-source-hosts-resolve.sh fails CI if any source file references a Mapsted host that does not resolve, so a dead host cannot creep back in silently.

Properties

Link copied to clipboard
val BASE_URL: String = "https://public.mapsted.com/api/"
Root of the public API, ending in /api/.