commends for routingAPI
This commit is contained in:
parent
bcae154165
commit
d6757dc5f4
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue