Options provided by the user to retrieve map data.
Promise resolving to the MapData.
Understanding Data Sources
This SDK supports two data sources with different location types:
Maker (API keys starting with mik_):
mapData.getByType('location-profile') for LocationProfilemapData.getByType('location-category') for LocationCategoryCMS/Enterprise (clientId/clientSecret, or keys NOT starting with mik_):
mapData.getByType('enterprise-location') for EnterpriseLocationmapData.getByType('enterprise-category') for EnterpriseCategorymapData.getByType('enterprise-venue') for EnterpriseVenueDetection Logic:
accessToken is provided: Enterprise if token audience matches CMS endpointskey/secret is provided: Maker if key starts with mik_, otherwise Enterprise
Asynchronously retrieves map data (MapData) based on user-provided options.
The SDK automatically detects whether you're using Maker or CMS/Enterprise credentials and populates the appropriate data types.