Get turn-by-turn navigation route data

This lets you get the route information for a given origin and destination. This is the same data that is used for turn-by-turn navigation .

// Get these coordinates from your app, these are just a sample
let origin = TGWaypoint(coordinate: CLLocationCoordinate2D(latitude: 34.101558, longitude: -118.340944)) // Grauman's Chinese Theatre
let destination = TGWaypoint(coordinate: CLLocationCoordinate2D(latitude: 34.011441, longitude: -118.494932)) // Santa Monica Pier

let request = TGRouteRequest(originWaypoint: origin, destinationWaypoint: destination)

TGNavigationService.route(for: request) { (response) in
    if let error = response.error {
        // handle error

    } else if let route = response.route {
        // do something with route
    }
}
// Get these coordinates from your app, these are just a sample
TGWaypoint *origin = [TGWaypoint.alloc initWithCoordinate:CLLocationCoordinate2DMake(34.101558, -118.340944)]; // Grauman's Chinese Theatre
TGWaypoint *destination = [TGWaypoint.alloc initWithCoordinate:CLLocationCoordinate2DMake(34.011441, -118.494932)]; // Santa Monica Pier

TGRouteRequest *request = [TGRouteRequest.alloc initWithOriginWaypoint:origin destinationWaypoint:destination];

[TGNavigationService routeForRequest:request completionHandler:^(TGRouteResponse * _Nonnull response) {
    if (response.error != nil) {
        // handle error

    } else {
        TGRoute *route = response.route;
        // do something with route
    }
}];
Expected Output
TallyGo
Check out the iOS Reference App to see this example in action.

Look for example 303 in the app.