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() {
|
private void setCoordsForAddress() {
|
||||||
//execute call using address out to covnersion API such as Google Geocoding code example
|
//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
|
//a helper function has been written to return a set of coordinates for testing in lieu of api connection
|
||||||
//these explicit declarations will serve as testing values
|
HelperFunctions apiConnection = new HelperFunctions();
|
||||||
double[] tmpCoords = { 27.993718340483223, -80.63008635738797};
|
double[] tmpCoords = apiConnection.geocodingAPI(destinationAddress);
|
||||||
coordinates[0] = tmpCoords[0];
|
coordinates[0] = tmpCoords[0];
|
||||||
coordinates[1] = tmpCoords[1];
|
coordinates[1] = tmpCoords[1];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue