VMWalkingPathOverlayUtil
@objcMembers
open class VMWalkingPathOverlayUtil : NSObject
-
<#Description#>
@param waypoints <#waypoints description#> @return <#return value description#>
Declaration
Swift
open class func boundsForWaypoints(_ waypoints: [VMMSWaypoint], onFloor floorId: String) -> VMCoordinateBounds
-
Declaration
Swift
open class func boundsForSegment(_ segment: VMMSWaypathSegment) -> VMCoordinateBounds
-
Figure out the closest mapped waypoint to a user-tapped location
@param location the location @param floorId the floor to search on @return the closest waypoint
Declaration
Swift
open class func findClosestWaypoint(atLocation location: CLLocationCoordinate2D, onFloor floorId: String, inMap map: VMMSMap) -> VMMSWaypoint?
-
Determines the geographic boudaries that encapsulates the part of a waypath on a given floor
@param waypath the waypath @param floorId the floor uid @return a VMCoordinateBounds object
Declaration
Swift
open class func boundsForWaypath( _ waypath: VMMSWaypath, onFloor floorId: String) -> VMCoordinateBounds
-
Useful for debugging. This method maps a fill color depending on the waypoint’s type, so it is possible to visually inspect that all waypoints were loaded as intended.
@param wp the waypoint @return the color
Declaration
Swift
open class func colorForWaypoint(_ wp: VMMSWaypoint) -> UIColor
-
Useful for debugging. This method maps a stroke color depending on whether the waypoint is classified as indoor or outdoor.
@param wp the waypoint @return the color
Declaration
Swift
open class func strokeColorForWaypoint(_ wp: VMMSWaypoint) -> UIColor
-
Locate the closest waypoint to a target from a list
@param location the target location @param list a list of waypoints (hopefully nearby) @return the closest waypoint by distances
Declaration
Swift
open class func findClosestDestinationWaypointInList( _ location: CLLocationCoordinate2D, inList list: [VMMSWaypoint] ) -> VMMSWaypoint?