                                     let cloc = CLLocationCoordinate2DMake(loc.latitude, loc.longitude)
 
                                     self.locations.append(cloc)
+
+                                    let reqLoc = CLLocation(latitude: cloc.latitude, longitude: cloc.longitude)
+                                    let drvLoc = CLLocation(latitude: (dloc?.latitude)!, longitude: (dloc?.longitude)!)
+
+                                    self.distances.append(drvLoc.distanceFromLocation(reqLoc))
                                 }
                             }
                         }


    override func tableView(tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
        // #warning Incomplete implementation, return the number of rows
        return usernames.count
    }

    override func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell {
        let cell = tableView.dequeueReusableCellWithIdentifier("requestCell", forIndexPath: indexPath)

        cell.textLabel!.text = usernames[indexPath.row]

        return cell
    }

    override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) {


class DriverViewController: UITableViewController, CLLocationManagerDelegate {

    var usernames   = [String]()
    var locations   = [CLLocationCoordinate2D]()
    var distances   = [CLLocationDistance]()

    var driverLocation = CLLocationCoordinate2D()

    override func viewDidLoad() {
        super.viewDidLoad()

        loadRequests()

        NSTimer.scheduledTimerWithTimeInterval(10, target: self, selector: Selector("loadRequests"), userInfo: nil, repeats: true)
    }

    // MARK: - Table view data source
