call us now : : 347-649-4219


blocknumber = $.strPad(blocknumber, 5);

var lotnumber= 30;

lotnumber = $.strPad(lotnumber, 5);

var boroughnumber= 'Manhattan';

var source_url= 'https://data.cityofnewyork.us/resource/y6h5-jvss.json?';

var full_api_url = source_url +"violation_location_block_no="+blocknumber+'&'+"violation_location_lot_no="+lotnumber+'&'+"violation_location_borough="+boroughnumber;

$("#vionumcount").append("

" + full_api_url + "

");

$.getJSON(full_api_url, function(result){ var counter_num9 = 0; $.each(result, function(i, field){ //hearng_stats = field.hearing_status; //issueagencyt = field.issuing_agency; //hearng_stats = hearng_stats.search(/paid in full/i); //if (field.issuing_agency === undefined ) { continue; } //issueagencyt = issueagencyt.search(/TRANSPORTATION/i); // and field.issuing_agency.search(/transportation/i) === -1; //if(field.hearing_status.search(/paid in full/i) === -1 )

if(!!field.issuing_agency) { if(field.issuing_agency.search(/transportation/i) >= 0) { if(field.hearing_status.search(/paid in full/i) === -1 ){ counter_num9 = counter_num9 + 1; $("#vionumcount").append("

" + field.issuing_agency + "

"); } } } }); //$("#vionumcount[id]").append("

" + ''+ counter_num9 + '' + "

") });