Skip to content

Commit

Permalink
Merge pull request #3 from xBambusekD/main
Browse files Browse the repository at this point in the history
fix: key
  • Loading branch information
xBambusekD authored May 17, 2023
2 parents 96e8694 + a9843d2 commit 9f30e0e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ public void run() {
private double getTakeoffElevationFromGoogleMaps(double latitude, double longitude) {
double result = Double.NaN;
try {
URL url = new URL("https://maps.googleapis.com/maps/api/elevation/json?locations=" + latitude + "%2C" + longitude + "&key=AIzaSyB3a5kGz56huz3xwPGRSzKKOSmEKDnmOvc");
URL url = new URL("https://maps.googleapis.com/maps/api/elevation/json?locations=" + latitude + "%2C" + longitude + "&key=API_KEY");
HttpURLConnection urlConnection = (HttpURLConnection) url.openConnection();
urlConnection.setRequestMethod("GET");
int responseCode = urlConnection.getResponseCode();
Expand Down

0 comments on commit 9f30e0e

Please sign in to comment.