
    // megabus routes

//routeFunctions.push(megaGetRoutes);
function megaGetRoutes() {

    var megabus = new Operator('Megabus', 'www.megabus.com', 'megabus.gif', '3.0', 'http://www.yelp.com/biz/megabus-new-york', true, true, true);

//    var albanyDowntown = new Location('Downtown, Rensselaer, NY', 'http://maps.google.com/?q=' + encodeURIComponent('42.64380860600827,-73.73991250991821'), ALBANY_DOWNTOWN);
//    var annArborUM = new Location('U of M State Street Park and Ride, Ann Arbor, MI', 'http://maps.google.com/?q=' + encodeURIComponent('42.248733,-83.739971'), ANN_ARBOR_UM);
//    var atlanticCityBoardwalk = new Location('The Boardwalk, Atlantic City, NJ', 'http://maps.google.com/?q=' + encodeURIComponent('The Boardwalk, Atlantic City, NJ 08401'), ATLANTIC_CITY_BOARDWALK);
    var baltimoreWhiteMarsh = new Location('White Marsh Park and Ride, White Marsh, MD', 'http://maps.google.com/?q=' + encodeURIComponent('39.377534975303824,-76.46179676055908'), BALTIMORE_WHITE_MARSH);
    var bostonSouthStation = new Location('South Station, Boston, MA', 'http://maps.google.com/?q=' + encodeURIComponent('700 Atlantic Avenue, Boston, MA 02111'), BOSTON_SOUTH_STATION);
//    var buffaloTransportationCenter = new Location('Metropolitan Transportation Center, Buffalo, NY', 'http://maps.google.com/?q=' + encodeURIComponent('181 Ellicott Street, Buffalo, NY 14203'), BUFFALO_TRANSPORTATION_CENTER);
//    var buffaloAirport = new Location('Buffalo Niagara International Airport, Buffalo, NY', 'http://maps.google.com/?q=' + encodeURIComponent('42.934130184357464,-78.73029112815857'), BUFFALO_AIRPORT);
//    var champaignTerminal = new Location('Illinois Terminal, Champaign, IL', 'http://maps.google.com/?q=' + encodeURIComponent('40.11542197750036,-88.24142575263977'), CHAMPAIGN_ILLINOIS_TERMINAL);
//    var chicagoUnionStation = new Location('Union Station, Chicago, IL', 'http://maps.google.com/?q=' + encodeURIComponent('41.877525764486975,-87.63947367668152'), CHICAGO_UNION_STATION);
//    var cincinnatiCentral = new Location('Central Business District, Cincinnati, OH', 'http://maps.google.com/?q=' + encodeURIComponent('W 4th Street and Race Street, Cincinnati, OH 45202'), CINCINNATI_DOWNTOWN);
//    var clevelandTowerCity = new Location('Tower City Center, Cleveland, OH', 'http://maps.google.com/?q=' + encodeURIComponent('W 3rd Street and W Huron Road, Cleveland, OH 44113'), CLEVELAND_TOWER_CITY);
//    var columbiaWabash = new Location('Wabash Station, Columbia, MO', 'http://maps.google.com/?q=' + encodeURIComponent('38.95341017113579,-92.32595264911652'), COLUMBIA_WABASH);
//    var columbusArena = new Location('Arena District, Columbus, OH', 'http://maps.google.com/?q=' + encodeURIComponent('Nationwide Boulevard and North High Street, Columbus, Ohio 43215'), COLUMBUS_DOWNTOWN);
        // 10 min less
//    var columbusOSU = new Location('Ohio State University, Columbus, OH', 'http://maps.google.com/?q=' + encodeURIComponent('40.00079396953218,-83.01760911941528'), COLUMBUS_OSU);
//    var desMoinesDowntown = new Location('Downtown, Des Moines, IA', 'http://maps.google.com/?q=' + encodeURIComponent('Walnut Street and 4th Street, Des Moines, IA 50309'), DES_MOINES_DOWNTOWN);
//    var detroitRosaParks = new Location('Rosa Parks Transit Center, Detroit, MI', 'http://maps.google.com/?q=' + encodeURIComponent('360 Michigan Avenue, Detroit, MI 48226'), DETROIT_DOWNTOWN);
        // 15 min less
//    var detroitWSU = new Location('Wayne State University, Detroit, MI', 'http://maps.google.com/?q=' + encodeURIComponent('W Warren Avenue and Cass Avenue, Detroit, MI 48201'), DETROIT_WSU);
//    var indianapolisDowntown = new Location('Downtown, Indianapolis, IN', 'http://maps.google.com/?q=' + encodeURIComponent('200 East Washington Street, Indianapolis, IN 46204'), INDIANAPOLIS_DOWNTOWN);
//    var iowaCityUI = new Location('University of Iowa, Iowa City, IA', 'http://maps.google.com/?q=' + encodeURIComponent('East Court Street and South Dubuque Street, Iowa City, IA 52240'), IOWA_CITY_UI);
//    var kansasCityMetrocenter = new Location('3rd and Grand MetroCenter, Kansas City, MO', 'http://maps.google.com/?q=' + encodeURIComponent('39.11109898184222,-94.58092868328094'), KANSAS_CITY_DOWNTOWN);
//    var madisonDutchMill = new Location('Dutch Mill Park and Ride, Madison, WI', 'http://maps.google.com/?q=' + encodeURIComponent('43.0475810110156,-89.3044763803482'), MADISON_DUTCH_MILL);
//    var memphisMATA = new Location('MATA North End Bus Terminal, Memphis, TN', 'http://maps.google.com/?q=' + encodeURIComponent('35.1563851647634,-90.04802227020264'), MEMPHIS_MATA);
//    var milwaukeeAmtrak = new Location('Amtrak Station, Milwaukee, WI', 'http://maps.google.com/?q=' + encodeURIComponent('N 4th Street and W St. Paul Avenue, Milwaukee, WI 53203'), MILWAUKEE_AMTRAK);
        // 20 min less
//    var milwaukeeRyanRoad = new Location('Ryan Road Park and Ride, Milwaukee, WI', 'http://maps.google.com/?q=' + encodeURIComponent('42.931039171849505,-87.93381929397583'), MILWAUKEE_RYAN_ROAD);
//    var minneapolisMetrodome = new Location('The Metrodome, Minneapolis, MN', 'http://maps.google.com/?q=' + encodeURIComponent('44.97602405725884,-93.2576072216034'), MINNEAPOLIS_METRODOME);
    var newYorkPennArrive = new Location('Penn Station, New York, NY', 'http://maps.google.com/?q=' + encodeURIComponent('W 28th Street and 7th Avenue, New York, NY 10001'), NEW_YORK_PENN);
    var newYorkPennDepart = new Location('Penn Station, New York, NY', 'http://maps.google.com/?q=' + encodeURIComponent('West 31st Street and 8th Avenue, New York, NY 10001'), NEW_YORK_PENN);
//    var newYorkPortAuthority = new Location('Port Authority Bus Terminal, New York, NY', 'http://maps.google.com/?q=' + encodeURIComponent('West 40th Street and 8th Avenue, New York, NY 10018'), NEW_YORK_PORT_AUTHORITY);
//    var normalAmtrak = new Location('Amtrak Station, Normal, IL', 'http://maps.google.com/?q=' + encodeURIComponent('40.50801588152947,-88.98334622383118'), NORMAL_AMTRAK);
    var philadelphia30thStreet = new Location('30th Street Station, Philadelphia, PA', 'http://maps.google.com/?q=' + encodeURIComponent('N 30th Street and John F. Kennedy Boulevard, Philadelphia, PA 19104'), PHILADELPHIA_30TH_STREET);
        // 10 min less
//    var philadelphiaChinatown = new Location('Chinatown, Philadelphia, PA', 'http://maps.google.com/?q=' + encodeURIComponent('S 6th Street and Market Street, Philadelphia, PA 19106'), PHILADELPHIA_CHINATOWN);
//    var pittsburghConventionCenter = new Location('David L Lawrence Convention Center, Pittsburgh, PA', 'http://maps.google.com/?q=' + encodeURIComponent('40.44525694145787,-79.99580025672913'), PITTSBURGH_CONVENTION_CENTER);
//    var ridgewoodRoute17Arrive = new Location('Route 17 Park and Ride, Ridgewood, NJ', 'http://maps.google.com/?q=' + encodeURIComponent('40.991506,-74.096123'), RIDGEWOOD_ROUTE_17);
//    var ridgewoodRoute17Depart = new Location('Route 17 Park and Ride, Ridgewood, NJ', 'http://maps.google.com/?q=' + encodeURIComponent('40.991251,-74.095345'), RIDGEWOOD_ROUTE_17);
//    var rochesterHenrietta = new Location('RIT Inn and Conference Center, Rochester, NY', 'http://maps.google.com/?q=' + encodeURIComponent('43.04835721509487,-77.66006827354431'), ROCHESTER_HENRIETTA);
//    var stLouisUnion = new Location('Union Station, St. Louis, MO', 'http://maps.google.com/?q=' + encodeURIComponent('S 20th Street and Market Street, St. Louis, MO 63103'), ST_LOUIS_UNION);
//    var stateCollegePennState = new Location('Penn State University, State College, PA', 'http://maps.google.com/?q=' + encodeURIComponent('West Beaver Avenue and South Atherton Street, State College, PA 16801'), STATE_COLLEGE_PENN_STATE);
//    var syracuseRegional = new Location('Regional Transportation Center, Syracuse, NY', 'http://maps.google.com/?q=' + encodeURIComponent('43.07648994041819,-76.16931796073914'), SYRACUSE_REGIONAL);
//    var toledoSouthwyck = new Location('Southwyck Shopping Center, Toledo, OH', 'http://maps.google.com/?q=' + encodeURIComponent('Southwyck Boulevard and Cheyenne Boulevard, Toledo, OH 43614'), TOLEDO_SOUTHWYCK);
//    var torontoCoach = new Location('Toronto Coach Terminal, Toronto, ON, Canada', 'http://maps.google.com/?q=' + encodeURIComponent('43.65609157423851,-79.38469380140305'), TORONTO_COACH);
    var washingtonChinatown = new Location('Chinatown, Washington, DC', 'http://maps.google.com/?q=' + encodeURIComponent('38.9005686828197,-77.02540397644043'), WASHINGTON_CHINATOWN);

    var routes = new Array();

//    routes.push(new Route(megabus, albanyDowntown, newYorkPennArrive));
//    routes.push(new Route(megabus, albanyDowntown, ridgewoodRoute17Arrive));

//    routes.push(new Route(megabus, annArborUM, chicagoUnionStation));

    routes.push(new Route(megabus, baltimoreWhiteMarsh, newYorkPennArrive));

    routes.push(new Route(megabus, bostonSouthStation, newYorkPennArrive));

//    routes.push(new Route(megabus, buffaloTransportationCenter, newYorkPennArrive));
//    routes.push(new Route(megabus, buffaloTransportationCenter, rochesterHenrietta));
//    routes.push(new Route(megabus, buffaloTransportationCenter, syracuseRegional));
//    routes.push(new Route(megabus, buffaloTransportationCenter, torontoCoach));

//    routes.push(new Route(megabus, buffaloAirport, newYorkPennArrive));
//    routes.push(new Route(megabus, buffaloAirport, rochesterHenrietta));
//    routes.push(new Route(megabus, buffaloAirport, syracuseRegional));
//    routes.push(new Route(megabus, buffaloAirport, torontoCoach));

//    routes.push(new Route(megabus, champaignTerminal, chicagoUnionStation));
//    routes.push(new Route(megabus, champaignTerminal, memphisMATA));

//    routes.push(new Route(megabus, chicagoUnionStation, annArborUM));
//    routes.push(new Route(megabus, chicagoUnionStation, champaignTerminal));
//    routes.push(new Route(megabus, chicagoUnionStation, cincinnatiCentral));
//    routes.push(new Route(megabus, chicagoUnionStation, clevelandTowerCity));
//    routes.push(new Route(megabus, chicagoUnionStation, columbiaWabash));
//    routes.push(new Route(megabus, chicagoUnionStation, columbusArena));
//    routes.push(new Route(megabus, chicagoUnionStation, columbusOSU));
//    routes.push(new Route(megabus, chicagoUnionStation, desMoinesDowntown));
//    routes.push(new Route(megabus, chicagoUnionStation, detroitRosaParks));
//    routes.push(new Route(megabus, chicagoUnionStation, detroitWSU));
//    routes.push(new Route(megabus, chicagoUnionStation, indianapolisDowntown));
//    routes.push(new Route(megabus, chicagoUnionStation, iowaCityUI));
//    routes.push(new Route(megabus, chicagoUnionStation, kansasCityMetrocenter));
//    routes.push(new Route(megabus, chicagoUnionStation, madisonDutchMill));
//    routes.push(new Route(megabus, chicagoUnionStation, memphisMATA));
//    routes.push(new Route(megabus, chicagoUnionStation, milwaukeeAmtrak));
//    routes.push(new Route(megabus, chicagoUnionStation, milwaukeeRyanRoad));
//    routes.push(new Route(megabus, chicagoUnionStation, minneapolisMetrodome));
//    routes.push(new Route(megabus, chicagoUnionStation, normalAmtrak));
//    routes.push(new Route(megabus, chicagoUnionStation, stLouisUnion));
//    routes.push(new Route(megabus, chicagoUnionStation, toledoSouthwyck));

//    routes.push(new Route(megabus, cincinnatiCentral, chicagoUnionStation));
//    routes.push(new Route(megabus, cincinnatiCentral, columbusArena));
//    routes.push(new Route(megabus, cincinnatiCentral, columbusOSU));
//    routes.push(new Route(megabus, cincinnatiCentral, indianapolisDowntown));

//    routes.push(new Route(megabus, clevelandTowerCity, chicagoUnionStation));
//    routes.push(new Route(megabus, clevelandTowerCity, toledoSouthwyck));

//    routes.push(new Route(megabus, columbiaWabash, chicagoUnionStation));
//    routes.push(new Route(megabus, columbiaWabash, kansasCityMetrocenter));
//    routes.push(new Route(megabus, columbiaWabash, stLouisUnion));

//    routes.push(new Route(megabus, columbusArena, chicagoUnionStation));
//    routes.push(new Route(megabus, columbusOSU, chicagoUnionStation));
//    routes.push(new Route(megabus, columbusArena, cincinnatiCentral));
//    routes.push(new Route(megabus, columbusOSU, cincinnatiCentral));
//    routes.push(new Route(megabus, columbusArena, indianapolisDowntown));
//    routes.push(new Route(megabus, columbusOSU, indianapolisDowntown));

//    routes.push(new Route(megabus, desMoinesDowntown, chicagoUnionStation));
//    routes.push(new Route(megabus, desMoinesDowntown, iowaCityUI));

//    routes.push(new Route(megabus, detroitRosaParks, chicagoUnionStation));
//    routes.push(new Route(megabus, detroitWSU, chicagoUnionStation));

//    routes.push(new Route(megabus, indianapolisDowntown, chicagoUnionStation));
//    routes.push(new Route(megabus, indianapolisDowntown, cincinnatiCentral));
//    routes.push(new Route(megabus, indianapolisDowntown, columbusArena));
//    routes.push(new Route(megabus, indianapolisDowntown, columbusOSU));

//    routes.push(new Route(megabus, iowaCityUI, chicagoUnionStation));
//    routes.push(new Route(megabus, iowaCityUI, desMoinesDowntown));

//    routes.push(new Route(megabus, kansasCityMetrocenter, chicagoUnionStation));
//    routes.push(new Route(megabus, kansasCityMetrocenter, columbiaWabash));
//    routes.push(new Route(megabus, kansasCityMetrocenter, stLouisUnion));

//    routes.push(new Route(megabus, madisonDutchMill, chicagoUnionStation));
//    routes.push(new Route(megabus, madisonDutchMill, minneapolisMetrodome));

//    routes.push(new Route(megabus, memphisMATA, champaignTerminal));
//    routes.push(new Route(megabus, memphisMATA, chicagoUnionStation));

//    routes.push(new Route(megabus, milwaukeeAmtrak, chicagoUnionStation));
//    routes.push(new Route(megabus, milwaukeeRyanRoad, chicagoUnionStation));
//    routes.push(new Route(megabus, milwaukeeAmtrak, minneapolisMetrodome));
//    routes.push(new Route(megabus, milwaukeeRyanRoad, minneapolisMetrodome));

//    routes.push(new Route(megabus, minneapolisMetrodome, chicagoUnionStation));
//    routes.push(new Route(megabus, minneapolisMetrodome, madisonDutchMill));
//    routes.push(new Route(megabus, minneapolisMetrodome, milwaukeeAmtrak));
//    routes.push(new Route(megabus, minneapolisMetrodome, milwaukeeRyanRoad));

//    routes.push(new Route(megabus, newYorkPennDepart, albanyDowntown));
    routes.push(new Route(megabus, newYorkPennDepart, baltimoreWhiteMarsh));
    routes.push(new Route(megabus, newYorkPennDepart, bostonSouthStation));
//    routes.push(new Route(megabus, newYorkPennDepart, buffaloTransportationCenter));
//    routes.push(new Route(megabus, newYorkPennDepart, buffaloAirport));
    routes.push(new Route(megabus, newYorkPennDepart, philadelphia30thStreet));
//    routes.push(new Route(megabus, newYorkPennDepart, philadelphiaChinatown));
//    routes.push(new Route(megabus, newYorkPennDepart, pittsburghConventionCenter));
//    routes.push(new Route(megabus, newYorkPennDepart, rochesterHenrietta));
//    routes.push(new Route(megabus, newYorkPennDepart, stateCollegePennState));
//    routes.push(new Route(megabus, newYorkPennDepart, syracuseRegional));
//    routes.push(new Route(megabus, newYorkPennDepart, torontoCoach));
    routes.push(new Route(megabus, newYorkPennDepart, washingtonChinatown));

//    routes.push(new Route(megabus, normalAmtrak, chicagoUnionStation));
//    routes.push(new Route(megabus, normalAmtrak, stLouisUnion));

    routes.push(new Route(megabus, philadelphia30thStreet, newYorkPennArrive));
//    routes.push(new Route(megabus, philadelphiaChinatown, newYorkPennArrive));
    routes.push(new Route(megabus, philadelphia30thStreet, washingtonChinatown));
//    routes.push(new Route(megabus, philadelphiaChinatown, washingtonChinatown));

//    routes.push(new Route(megabus, pittsburghConventionCenter, newYorkPennArrive));
//    routes.push(new Route(megabus, pittsburghConventionCenter, stateCollegePennState));

//    routes.push(new Route(megabus, ridgewoodRoute17Depart, albanyDowntown));

//    routes.push(new Route(megabus, rochesterHenrietta, buffaloTransportationCenter));
//    routes.push(new Route(megabus, rochesterHenrietta, buffaloAirport));
//    routes.push(new Route(megabus, rochesterHenrietta, newYorkPennArrive));
//    routes.push(new Route(megabus, rochesterHenrietta, syracuseRegional));
//    routes.push(new Route(megabus, rochesterHenrietta, torontoCoach));

//    routes.push(new Route(megabus, stLouisUnion, chicagoUnionStation));
//    routes.push(new Route(megabus, stLouisUnion, columbiaWabash));
//    routes.push(new Route(megabus, stLouisUnion, kansasCityMetrocenter));
//    routes.push(new Route(megabus, stLouisUnion, normalAmtrak));

//    routes.push(new Route(megabus, stateCollegePennState, newYorkPennArrive));
//    routes.push(new Route(megabus, stateCollegePennState, pittsburghConventionCenter));

//    routes.push(new Route(megabus, syracuseRegional, buffaloTransportationCenter));
//    routes.push(new Route(megabus, syracuseRegional, buffaloAirport));
//    routes.push(new Route(megabus, syracuseRegional, newYorkPennArrive));
//    routes.push(new Route(megabus, syracuseRegional, rochesterHenrietta));
//    routes.push(new Route(megabus, syracuseRegional, torontoCoach));

//    routes.push(new Route(megabus, toledoSouthwyck, chicagoUnionStation));
//    routes.push(new Route(megabus, toledoSouthwyck, clevelandTowerCity));

//    routes.push(new Route(megabus, torontoCoach, buffaloTransportationCenter));
//    routes.push(new Route(megabus, torontoCoach, buffaloAirport));
//    routes.push(new Route(megabus, torontoCoach, newYorkPennArrive));
//    routes.push(new Route(megabus, torontoCoach, rochesterHenrietta));
//    routes.push(new Route(megabus, torontoCoach, syracuseRegional));

    routes.push(new Route(megabus, washingtonChinatown, newYorkPennArrive));
    routes.push(new Route(megabus, washingtonChinatown, philadelphia30thStreet));
//    routes.push(new Route(megabus, washingtonChinatown, philadelphiaChinatown));

    return routes;
}



