var TransportAPI=function(){var a="",b="",c="http://transportapi.com/v3",d=function(){return"app_id="+a+"&api_key="+b+"&callback=?"},e=function(a,b){return function(){$.ajax({url:a,dataType:"jsonp",timeout:1e4}).done(b).fail(function(){console.log("transportAPIcall FAIL. URL:"+a)})}};return{init:function(c,d){a=c,b=d},busStopsBBOX:function(a,b,f,g,h,i,j){var k=c+"/uk/bus/stops/bbox.json?minlon="+a+"&minlat="+b+"&maxlon="+f+"&maxlat="+g+"&page="+h+"&rpp="+i+"&"+d();return e(k,j)},trainStationsBBOX:function(a,b,f,g,h,i,j){var k=c+"/uk/train/stations/bbox.json?minlon="+a+"&minlat="+b+"&maxlon="+f+"&maxlat="+g+"&page="+h+"&rpp="+i+"&"+d();return e(k,j)},tubeStations:function(a,b){"all"==a&&(a="stations");var f=c+"/uk/tube/"+a+".json?"+d();return e(f,b)},tubePlatforms:function(a,b){var f=c+"/uk/tube/platforms/northern/"+a+".json?"+d();return e(f,b)},tubeStationsPerformance:function(a){var b=c+"/uk/tube/stations/performance.json?"+d();return e(b,a)},trainPerformance:function(a,b){var f=a.join(","),g=c+"/uk/train/stations_live_performance.json?stations="+f+"&station_detail=true&"+d();return console.log("calling trainPerformance:"+g),e(g,b)}}}();
Update project transportapi.js to 0.0.1
Update project transportapi.js to 0.0.1
