From d6757dc5f42520721046c5ff9483b0e7e9e26f8f Mon Sep 17 00:00:00 2001 From: Fennel Kora Date: Sat, 13 Apr 2024 16:26:36 -0400 Subject: [PATCH] commends for routingAPI --- HelperFunctions.java | 1 + 1 file changed, 1 insertion(+) diff --git a/HelperFunctions.java b/HelperFunctions.java index 0928785..27e424c 100644 --- a/HelperFunctions.java +++ b/HelperFunctions.java @@ -21,6 +21,7 @@ public class HelperFunctions { public double[][] routingAPI(double[] startCoords, double[] destinationCoords, Boolean tollsFlag, Boolean hwyFlag) { //ideally this would return a series of coordinates, but for the sake of the demo it's just //going to concatenate the start and end into a 2x2 array with just those two steps + //speed is also returned in MPH for the expected points as the third index in the array's second dimension double[][] routeArray = new double[2][3]; if (tollsFlag && hwyFlag) { //provides a result that both avoid tolls and major highways routeArray[0] = startCoords;