function _getVenueIcon(venue) {
    if (venue.categories && venue.categories.length > 0) {
        return venue.categories[0].icon.prefix + 'bg_88' + venue.categories[0].icon.suffix;
        if (typeof(venue.categories[0].icon) == 'string') {
            return venue.categories[0].icon;
        }
        else{
            return venue.categories[0].icon.prefix + venue.categories[0].icon.sizes[0]  + venue.categories[0].icon.name;
        }
    }
    else{
        return 'https://foursquare.com/img/categories/none.png';
    }
}
//get the icons depending in categorie

get the icons depending in categorie
get the icons depending in categorie
function _getVenueIcon(venue) {
    if (venue.categories && venue.categories.length > 0) {
        return venue.categories[0].icon.prefix + 'bg_88' + venue.categories[0].icon.suffix;
        if (typeof(venue.categories[0].icon) == 'string') {
            return venue.categories[0].icon;
        }
        else{
            return venue.categories[0].icon.prefix + venue.categories[0].icon.sizes[0]  + venue.categories[0].icon.name;
        }
    }
    else{
        return 'https://foursquare.com/img/categories/none.png';
    }
}
function _getVenueIcon ( venue ) { if ( venue . categories && venue . categories . length > 0 ) { return venue . categories [ 0 ] . icon . prefix + 'bg_88' + venue . categories [ 0 ] . icon . suffix ; if ( typeof ( venue . categories [ 0 ] . icon ) == 'string' ) { return venue . categories [ 0 ] . icon ; } else { return venue . categories [ 0 ] . icon . prefix + venue . categories [ 0 ] . icon . sizes [ 0 ] + venue . categories [ 0 ] . icon . name ; } } else { return 'https://foursquare.com/img/categories/none.png' ; } }
get the icons depending in categorie
get the icons depending in categorie