From c2ad97a00435b999ba89f9ad97eb1e7045676e88 Mon Sep 17 00:00:00 2001 From: Fennel Kora Date: Sat, 13 Apr 2024 15:59:40 -0400 Subject: [PATCH] updated setCoordsForAddress to use helperfunctions in place of hard coding a response --- Destination.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Destination.java b/Destination.java index 26a6bbf..9c957e9 100644 --- a/Destination.java +++ b/Destination.java @@ -14,9 +14,9 @@ public class Destination { private void setCoordsForAddress() { //execute call using address out to covnersion API such as Google Geocoding code example - //tmpCoords = geocodingAPI(address); with the assumption an array of coordinates is returned - //these explicit declarations will serve as testing values - double[] tmpCoords = { 27.993718340483223, -80.63008635738797}; + //a helper function has been written to return a set of coordinates for testing in lieu of api connection + HelperFunctions apiConnection = new HelperFunctions(); + double[] tmpCoords = apiConnection.geocodingAPI(destinationAddress); coordinates[0] = tmpCoords[0]; coordinates[1] = tmpCoords[1]; }