From 6ae985220624d1db54a9e715eefccf0d68ca86d8 Mon Sep 17 00:00:00 2001 From: Fennel Kora Date: Sat, 13 Apr 2024 16:13:26 -0400 Subject: [PATCH] assign routingAPI call directly to route object attribute --- Route.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Route.java b/Route.java index c831cd3..bc05046 100644 --- a/Route.java +++ b/Route.java @@ -18,6 +18,7 @@ public class Route { //execute api call out to routing service to get route info updateCurrentLocation(); HelperFunctions apiCallToRouting = new HelperFunctions(); - double[][] tmpSeq = apiCallToRouting.routingAPI(currentLocation, currentDestination.getDestinationCoordinates()); + routeSequence = apiCallToRouting.routingAPI(currentLocation, currentDestination.getDestinationCoordinates()); + } }