This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func testMaxSpeedsForE19WithMaxSpeed30() { | |
//User got maxSpeed 100 which is incorrect. | |
let locationABefore = CLLocation.init(latitude: 51.01262, longitude: 4.45174) | |
var locationBBefore = CLLocation.init(latitude: 51.01008, longitude: 4.45346) | |
var course = locationABefore.headingForDirection(to: locationBBefore) | |
locationBBefore = CLLocation.init(coordinate: locationBBefore.coordinate, altitude: 0, horizontalAccuracy: 5, verticalAccuracy: 5, course: course, speed: 20, timestamp: Date.init()) | |
let locationCBefore = CLLocation.init(coordinate: CLLocation.init(latitude: 51.00784, longitude: 4.45479).coordinate, altitude: 0, horizontalAccuracy: 5, verticalAccuracy: 5, course: course, speed: 20, timestamp: Date.init()) | |
let locationDBefore = CLLocation.init(coordinate: CLLocation.init(latitude: 51.00611, longitude: 4.45612).coordinate, altitude: 0, horizontalAccuracy: 5, verticalAccuracy: 5, course: course, speed: 20, timestamp: Date.init()) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// CITSManager.swift | |
// Flitsmeister | |
// | |
// Created by Sebastiaan de Weert on 20-03-17. | |
// Copyright © 2017 Flitsmeister B.V. All rights reserved. | |
// | |
import UIKit | |
import CITS |