VMMapUtil
@objcMembers
public class VMMapUtil : NSObject
-
Declaration
Swift
public class func tileBoundsFor(x: Int, y: Int, z: Int, zoom: Int) -> VMCoordinateBounds -
Declaration
Swift
public class func locationFromString(point: String) -> CLLocationCoordinate2D -
Declaration
Swift
public class func distanceBetweenPoint( _ start: CLLocationCoordinate2D, andPoint end: CLLocationCoordinate2D ) -> Double -
Declaration
Swift
public class func angleAndDirectionBetweenLocationA( _ locA: CLLocationCoordinate2D, andLocationB locB: CLLocationCoordinate2D, andLocationC locC: CLLocationCoordinate2D ) -> [String: NSNumber] -
Declaration
Swift
public class func headingBetweenPoint( _ p1: CLLocationCoordinate2D, andPoint p2: CLLocationCoordinate2D ) -> Double -
Declaration
Swift
public class func locationWithOffset( _ source: CLLocationCoordinate2D, withHeading bearing: Double, andDistance distance: Double ) -> CLLocationCoordinate2D -
Declaration
Swift
public class func averageOf( CLCoordinates coordinates: [CLLocationCoordinate2D] ) -> CLLocationCoordinate2D -
Declaration
Swift
public class func averageOf(coordinates: [[NSValue]]) -> CLLocationCoordinate2D -
Declaration
Swift
public class func pointIsIn(polygon point: CLLocationCoordinate2D, vertices: [NSValue]) -> Bool -
Declaration
Swift
public class func pointIsIn( multiPolygon point: CLLocationCoordinate2D, vertices: [[NSValue]] ) -> Bool -
Declaration
Swift
public class func boundsForFloor(_ floor: VMMSBaseFloor) -> VMCoordinateBounds -
Declaration
Swift
public class func boundsForBuilding(_ building: VMMSBaseBuilding) -> VMCoordinateBounds -
Declaration
Swift
public class func unionOfCoordinateBounds(_ bounds: [VMCoordinateBounds]) -> VMCoordinateBounds -
Declaration
Swift
public class func boundsForCoordinates(_ coordinates: [[NSValue]]) -> VMCoordinateBounds -
Declaration
Swift
public class func zoom(mapPx: Int, worldPx: Int, fraction: Double) -> Double -
Declaration
Swift
public class func getBoundsZoomLevel( _ bounds: VMCoordinateBounds, mapWidth: Int, mapHeight: Int ) -> Float -
Declaration
Swift
public class func getBoundsZoomLevel( _ bounds: VMCoordinateBounds, mapWidth mapWidthPx: Int, mapHeight mapHeightPx: Int, maxZoom: Float ) -> Float -
Declaration
Swift
public class func rotateCoordinate( _ coordinate: CLLocationCoordinate2D, withCenter center: CLLocationCoordinate2D, andBearing bearing: Double ) -> CLLocationCoordinate2D -
Determine if vmd is geolocated or not
Declaration
Swift
public class func determineGeolocation(forVMD vmd: VMVenue) -> Bool -
Determine if a coordinate falls in the region -1, -1 to 1,1
Since
Since 2.2Declaration
Swift
public class func isValidCoordinate(_ coord: CLLocationCoordinate2D) -> Bool