Skip to content

Commit

Permalink
remove api keys
Browse files Browse the repository at this point in the history
  • Loading branch information
davidtaylorjr committed Jan 14, 2017
1 parent 20b9a5d commit 07493ca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/javascript.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ function geoLocation() {


//Google Maps API to return printed location as opposed to lat/lon coordinates.
$.getJSON('https://maps.googleapis.com/maps/api/geocode/json?latlng=' + latitude + ',' + longitude + '&key=AIzaSyAZch_gAq-6Ja3fUQ8sXStIhyB_dJ0mSgU', function(city) {
$.getJSON('https://maps.googleapis.com/maps/api/geocode/json?latlng=' + latitude + ',' + longitude + '&key=YOUR-API-KEY', function(city) {

var address = city.results[2].formatted_address;

Expand All @@ -27,7 +27,7 @@ function geoLocation() {
//current conditions api from Darksky.net and variables for printing inside app.

$.ajax({
url: 'https://api.darksky.net/forecast/61f104c5d563f5c8aa29eca3beea2bde/' + latitude + ',' + longitude + "?units=us",
url: 'https://api.darksky.net/forecast/YOUR-API-KEY/' + latitude + ',' + longitude + "?units=us",
dataType: "jsonp",
success: function(data) {

Expand Down

0 comments on commit 07493ca

Please sign in to comment.