From dd23de57d9d8cbe0b25aaa4d5e7c4dbf4806f760 Mon Sep 17 00:00:00 2001 From: Chuck Scott Date: Thu, 29 Nov 2018 15:57:02 -0500 Subject: [PATCH] Removed some console.log debug output used for work on location mapping. --- views/admin/events/edit.html | 20 +------------------- 1 file changed, 1 insertion(+), 19 deletions(-) diff --git a/views/admin/events/edit.html b/views/admin/events/edit.html index 3f2770b..17921cd 100755 --- a/views/admin/events/edit.html +++ b/views/admin/events/edit.html @@ -1283,15 +1283,6 @@ var addrCountry = $('#country_' + locID).val(); var addrZip = $('#zip_' + locID).val(); -console.log({ - format: 'json', - street: addrStreet, - city: addrCity, - state: addrState, - country: addrCountry, - postalcode: addrZip -}); - var location = $.getJSON( nominatimAPI, { format: 'json', street: addrStreet, @@ -1305,17 +1296,8 @@ console.log({ alert('Sorry, we had a communications failure. 2'); }) .done(function( data ) { -console.log(data); - if( !data[0] || !data[0].lat || !data[0].lon || data[0].type == 'unclassified') { -console.log({ - format: 'json', - street: addrStreet, - // city: addrCity, - state: addrState, - country: addrCountry, - postalcode: addrZip -}); + if( !data[0] || !data[0].lat || !data[0].lon || data[0].type == 'unclassified') { // Not found, try again without city name // Nominatim doesn't always find with the US ZIP preferred city name -- 2.17.1