updated setCoordsForAddress to use helperfunctions in place of hard coding a response
This commit is contained in:
parent
926c6da11d
commit
c2ad97a004
1 changed files with 3 additions and 3 deletions
|
@ -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];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue