From 6302b988b7442c7a60a615cfc7feb1508712ec0f Mon Sep 17 00:00:00 2001 From: Fennel Kora Date: Sat, 13 Apr 2024 16:11:11 -0400 Subject: [PATCH] added routingAPI function --- HelperFunctions.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/HelperFunctions.java b/HelperFunctions.java index c22f5f8..de38b02 100644 --- a/HelperFunctions.java +++ b/HelperFunctions.java @@ -17,4 +17,11 @@ public class HelperFunctions { double[] returnArray = coords; return returnArray; } + + public double[][] routingAPI(double[] startCoords, double[] destinationCoords) { + //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 + double[][] routeArray = {startCoords, destinationCoords}; + return routeArray; + } }