This file contains hidden or 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
| var sceneLocationView: SceneLocationView! | |
| var pois: [PointOfInterest]! | |
| var locationAnnotationNode2POI: [LocationTextAnnotationNode: PointOfInterest]! | |
| var selectedPOI: PointOfInterest? | |
| func setupARScene() { | |
| // create AR scene | |
| sceneLocationView = SceneLocationView() | |
| view.addSubview(sceneLocationView) |
This file contains hidden or 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 getRouteSegments(startCoordinate: CLLocationCoordinate2D, endCoordinate: CLLocationCoordinate2D) { | |
| // Request the walking directions between the two points | |
| let directionRequest = setupRouteDirectionsRequest(startCoordinate: startCoordinate, endCoordinate: endCoordinate) | |
| let directions = MKDirections(request: directionRequest) | |
| directions.calculate { | |
| (response, error) -> Void in | |
| guard let response = response else { | |
| if let error = error { | |
| print("Error: \(error)") |
This file contains hidden or 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
| import CoreLocation | |
| class ARCLViewController: UIViewController, CLLocationManagerDelegate { | |
| var locationManager: CLLocationManager! | |
| var latestLocation: CLLocation? | |
| func setupLocation() { | |
| // Setup location manager | |
| locationManager = CLLocationManager() |
This file contains hidden or 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
| [user] | |
| name = António Lima | |
| email = <user@organization> | |
| [alias] | |
| # list aliases | |
| alias = "!git config --get-regexp ^alias\\. | sed -e s/^alias\\.// -e s/\\ /\\ =\\ /" | |
| # push to origin [branch_name] |
NewerOlder