added routingAPI function
This commit is contained in:
parent
c2ad97a004
commit
6302b988b7
1 changed files with 7 additions and 0 deletions
|
@ -17,4 +17,11 @@ public class HelperFunctions {
|
||||||
double[] returnArray = coords;
|
double[] returnArray = coords;
|
||||||
return returnArray;
|
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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue