DeeplinkUtil

Utility object for creating and sharing deep links related to Mapsted UI elements like itinerary destinations, custom tags, and dropped pins.

Functions

Link copied to clipboard

Creates a list of DeeplinkData.Destination objects from a list of ItineraryItems. This method converts itinerary items (which can be search entities or custom tags) into a format suitable for deep linking.

Link copied to clipboard
fun createDroppedPinString(mercatorZone: MercatorZone?): String

Creates a deep link string for a dropped pin location. The string includes the property ID, building ID, floor ID, latitude, and longitude of the dropped pin. The name for a dropped pin is hardcoded as "Dropped Pin".

Link copied to clipboard

Creates a comma-separated string representing the selected route options for a deep link. The string includes flags like "OptimizeItinerary", "IncludeElevators", "IncludeRamps", etc., based on the provided RoutingOptions.

Link copied to clipboard

Creates a deep link string for a custom user-defined tag. The string includes the property ID, building ID, floor ID, latitude, longitude, and tag name.

Link copied to clipboard
fun shareDeepLink(context: Context, deepLink: String?)

Shares a deep link using Android's share sheet.