public string GetRoute(string addressFrom, string addressTo) { try { var(latitudeStart, longitudeStart) = Hub.GetCoordinatesOfAddress(addressFrom); var(latitudeFinish, longitudeFinish) = Hub.GetCoordinatesOfAddress(addressTo); Hub test = new Hub(longitudeStart, latitudeStart, latitudeFinish, longitudeFinish); return(test.BuildRoute()); } catch (TooFarException) { return("# error too far"); } catch (Exception e) { return("# unhandled error: " + e.Message); } }