Map
class Map
Class that loads data from VMD file, finds waypaths, and labels waypoints. This is the top level class that encapsulates all data for the venue.
Functions
Link copied to clipboard
Adds a MapBuilding instance to a dictionary.
Link copied to clipboard
Adds a waypoint as a neighbor.
Link copied to clipboard
Adds a waypoint as a neighbor.
Link copied to clipboard
Adds a Outdoor MapBuilding instance to a dictionary.
Link copied to clipboard
open fun createTurnByTurnDirectionsForWaypath(path: Waypath, customMapInfo: CustomMapInfo): List<MapDirectionStep>
Creates turn by turn text directions for a given waypath using the default configurations.
open fun createTurnByTurnDirectionsForWaypath(path: Waypath, customMapInfo: CustomMapInfo, options: TurnByTurnDirectionOptions): List<MapDirectionStep>
Creates turn by turn text directions for a given waypath.
open fun createTurnByTurnDirectionsForWaypath(path: Waypath, customMapInfo: CustomMapInfo, options: TurnByTurnDirectionOptions, wayfindingDelegate: WayfindingDelegate)
Creates turn by turn text directions asynchronously for a given waypath.
Link copied to clipboard
Finds the closest outdoor waypoint for a given location on the specified floor.
Link copied to clipboard
Finds the closest waypoint for a given location on the specified floor.
Link copied to clipboard
Iterates through all buildings to find a floor with the given id.
Link copied to clipboard
Iterates through all outdoor buildings to find a floor with the given id.
Link copied to clipboard
Iterates through outdoor buildings and floors until it finds a waypoint with the given ID.
Link copied to clipboard
open fun findWaypathBetweenWaypoints(start: Waypoint, end: Waypoint, options: WayfindingOptions): Waypath
Finds shortest waypath between two waypoints using the Dijkstra algorithm.
open fun findWaypathBetweenWaypoints(start: Waypoint, end: Waypoint, options: WayfindingOptions, wayfindingDelegate: WayfindingDelegate, callback: VMDCallback)
Finds shortest waypath asynchronously between two waypoints using the Dijkstra algorithm.
Link copied to clipboard
Iterates through buildings and floors until it finds a waypoint with the given ID.
Link copied to clipboard
Checks to see if a building exists for a given id and returns it if so
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Finds the connected waypoints for a given waypoint.
Link copied to clipboard
Checks to see if a outdoor building exists for a given id and returns it if so
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Labels waypoints using default configuration.
Labels waypoints with options.
Link copied to clipboard
open fun load(vmdFileCollection: VMDFileCollection, options: WaypointLabelOptions, excludeWayfinding: Boolean): Map
Loads a vmd file and extracts all necessary data
open fun load(vmdFileCollection: VMDFileCollection, delegate: MapDelegate, options: WaypointLabelOptions, callback: VMDCallback)
open fun load(vmdFileCollection: VMDFileCollection, delegate: MapDelegate, excludeWayfinding: Boolean, callback: VMDCallback)
open fun load(vmdFileCollection: VMDFileCollection, delegate: MapDelegate, options: WaypointLabelOptions, excludeWayfinding: Boolean, callback: VMDCallback)
Loads a vmd file ASYNCHRONOUSLY, extracts all necessary data then performs a callback to the specified delegate