This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Auth from '@aws-amplify/auth' | |
import Analytics from '@aws-amplify/analytics' | |
Auth.configure({ | |
region: 'us-east-1', | |
identityPoolId: 'us-east-1:xxxx...', | |
}) | |
Analytics.configure({ | |
AWSPinpoint: { | |
appId: 'appIdKey', | |
region: 'us-east-1' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var JsonNetDecycle = (function () { | |
function JsonNetDecycle() { } | |
JsonNetDecycle.decycle = function decycle(obj) { | |
var catalog = []; | |
var newObj = JsonNetDecycle.getDecycledCopy(obj, catalog); | |
return newObj; | |
} | |
JsonNetDecycle.getDecycledCopy = function getDecycledCopy(obj, catalog) { | |
var i; | |
var name; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function geocodeItem(item) { | |
var itemId = item.ID; | |
var city = item.venue_address_city; | |
city = city.replace(' ', '+').replace(',', ''); | |
if (item.lat == '0.000000' || item.lng == "0.000000") { | |
jQuery.ajax({ | |
url: "https://maps.googleapis.com/maps/api/geocode/json?address=" + city, | |
method: "GET" | |
}).done(function(response) { | |
var latlng = response.results[0].geometry.location; |