Bus

1. Listing

http://www.streetdirectory.com/api/

Parameters Description
mode bus  
act bus_no_list  
output return type (js, json, xml)  
bus_stop bus stop number  

Request example :

http://www.streetdirectory.com/api/?mode=bus&act=bus_no_list&output=xml&bus_stop=11531

Response:

Attributes Description
data bus stop

js

set_Data([
    33,
    64,
    "195",
    "195A"
]);

json

[
    33,
    64,
    "195",
    "195A"
]

xml

<dataset>
    <data>33</data>
    <data>64</data>
    <data>195</data>
    <data>195A</data>
</dataset>

2. Arrival Time

http://www.streetdirectory.com/api/

Parameters Description
mode bus  
act show_next  
output return type (js, json, xml)  
bus_stop bus stop number  
bus_no bus number  

Request example :

http://www.streetdirectory.com/api/?mode=bus&act=show_next&output=xml&bus_stop=11531&bus_no=195

Response:

Attributes Description
nx next
sub subsequent

js

set_Data({
    "nx":"retry",
    "sub":"retry"
});

json

{
    "nx":"retry",
    "sub":"retry"
}

xml

<dataset>
    <nx>retry</nx>
    <sub>retry</sub>
</dataset>

3. Bus Direction

http://www.streetdirectory.com/api/

Parameters Description
mode bus  
act direction  
output return type (js, json, xml)  
x1 from position - longitude  
y1 from position - latitude  
x2 to position - longitude  
y2 to position - latitude  
type type (bus, mrt, both)  

Request example :

http://www.streetdirectory.com/api/?mode=bus&act=direction&output=xml&x1=361947.3158550734&y1=146312.44707112352&x2=375226.93607239187&y2=146262.91265756465&type=both

Response:

Attributes Description
total total direction found
title title
desc1 description
desc2 description
x position longitude
y position latitude
routes routes

js

set_Data({
    "0":
    {
        "total":5
    },
    "1":
    {
        "title":"Commonwealth Avenue West-.Aft ITE West (clementi) (B28011)<\/b>",
        "desc1":"No Address<br>SINGAPORE ",
        "x":"361944.0013",
        "y":"146402.0037"
    },
    "2":
    {
        "title":"Bus Stop B28019 (81m)",
        "desc1":"Take Bus 183.",
        "desc2":"Walk (est 3.53mins) towards Bus Stop @ Commonwealth Ave West, aft Toh Tuck Ave (B28019).",
        "x":"361926.254710446",
        "y":"146471.72427513"
    },
    "3":
    {
        "title":"4 Stops later alight at B17179",
        "desc1":"Commonwealth Ave West, clementi Stn (B17179)",
        "x":"362640.654739801",
        "y":"145409.624231488"
    },
    "4":
    {
        "title":"Clementi Mrt",
        "desc1":"Clementi Mrt » Aljunied Mrt <Br>(Total: 23.69mins & 15 stops)",
        "desc2":"a. Clementi Mrt to Aljunied (Towards Joo Koon)<Br>",
        "x":"362634.310378015",
        "y":"145366.971908011"
    },
    "5":
    {
        "title":"Kallang Way 3<\/b>",
        "desc1":"No Address<br>SINGAPORE ",
        "x":"375236.7196",
        "y":"146245.6287"
    },
    "routes":
    {
        "route1":"361926.254710446,146471.72427513,361965.204712047,146430.874273451,362003.204713608,146390.024271773,362059.254715911,146324.474269079,362166.583611,146165.801774,362205.561452,146110.542985,362285.354725202,146006.224256002,362285.354725202,146006.224256002,362327.154726919,145934.974253075,362383.204729223,145850.424249601,362404.104730081,145820.024248351,362448.754731916,145751.624245541,362473.454732931,145717.424244136,362473.454732931,145717.424244136,362542.804735781,145611.974239803,362596.954738006,145509.374235587,362640.654739801,145409.624231488",
        "route3":"362634.310378015,145366.971908011,362649.917240182,145320.762118462,362683.315679054,145251.182037478,362725.063727645,145189.023831798,362776.089120366,145137.998439077,362838.247326045,145092.539452834,362903.188734964,145058.213279548,362999.816197345,145032.975211036,363059.975850781,145027.598043915,363151.82155768,145035.01991922,363396.743442744,145062.851951614,363567.446574758,145079.55117105,363692.69072053,145095.322656073,363768.638782834,145102.29528022,363819.790335127,145101.816796965,363875.769798844,145095.993455748,363934.829402354,145079.55117105,363988.637998315,145057.285545135,364117.593081739,144984.922260912,364117.593081739,144984.922260912,364225.210273661,144921.83632082,364295.718089058,144876.377334577,364479.409502856,144760.410532937,364622.280602477,144669.492560451,364744.741545009,144598.984745054,364803.188813035,144579.502322378,364846.250767411,144572.942024638,365136.245467346,144544.248414679,365162.222030913,144538.682008201,365239.223987202,144524.765992004,365295.815786402,144519.199585525,365378.38414917,144508.994506981,365378.38414917,144508.994506981,365559.292359729,144493.223021958,365645.571660149,144479.307005761,365720.718147612,144459.824583085,365767.104868268,144440.34216041,365807.925182445,144416.221065669,365947.085344413,144301.181998442,366112.222069949,144158.310898821,366165.102931497,144112.851912578,366231.899809241,144046.982769247,366295.670395791,143993.174173286,366295.670395791,143993.174173286,366402.801411802,143898.646806217,366448.989661912,143862.363621036,366510.220133178,143809.482759488,366748.64787735,143597.959313296,366991.714293587,143385.508132692,367014.907653915,143358.603834711,367049.233827201,143311.289379642,367077.065859594,143266.758127812,367110.464298467,143199.961250067,367177.925821761,143104.616922844,367177.925821761,143104.616922844,367197.6713333,143063.584291339,367238.491647477,143003.281554486,367308.999462875,142932.773739089,367341.470167334,142901.230769043,367444.44868719,142816.806937449,367483.413532541,142792.685842707,367536.294394089,142764.853810314,367579.897911506,142749.082325291,367606.449885804,142745.412927985,368156.948716467,142657.236618392,368198.821386098,142644.583736446,368362.90575618,142567.246380319,368362.90575618,142567.246380319,368461.245603971,142514.365518771,368528.970216129,142490.24442403,368579.067874437,142481.894814312,368656.997565139,142475.40067342,368791.192886392,142468.132651252,368871.30421457,142438.291296895,369045.718284237,142365.928012672,369175.604179136,142297.983390529,369448.355019531,142195.224880658,369448.355019531,142195.224880658,369652.456590418,142124.71706526,370259.517988185,141819.044730716,370851.88948848,141579.57540081,370968.911722636,141531.894775276,370968.911722636,141531.894775276,371500.977409015,141157.353161239,371570.297478198,141125.844038883,371658.218391585,141121.836164677,371658.218391585,141121.836164677,371790.861334691,141308.596948548,372005.123366712,141623.688172109,372112.254382723,141793.837432832,372200.47992532,141919.873922256,372218.56997711,141963.291277377,372238.290872147,142266.474268173,372323.403965793,142954.11163059,372348.452794947,142928.135067023,372433.647430755,143079.409624959,372509.269324409,143236.95523674,372622.702164891,143457.519093232,372698.324058546,143627.668353955,372795.620782071,143829.892916576,372795.620782071,143829.892916576,372838.296565075,143911.533544931,373003.43329061,144084.092145772,373334.634476094,144373.545282665,373444.107136843,144475.596068109,373523.892296371,144556.30896205,373523.892296371,144556.30896205,373590.689174116,144610.117558011,373635.220425945,144612.90076125,373763.332394181,144667.469391706,373920.878005962,144749.393109832,374053.216319857,144825.015003486,374204.460107166,144862.825950313,374257.73021715,144877.30506899,374308.755609871,144899.570694905,374371.841549963,144936.68007143,374437.710693295,144982.139057672,374437.710693295,144982.139057672,374502.652102213,145021.103903024,374562.027104653,145058.213279548,374649.234139487,145110.166406683,374677.06617188,145128.721094946,374790.249770281,145204.795316821,375014.761498256,145356.943760573,375055.581812433,145382.920324141,375100.113064263,145407.041418882,375150.210722572,145425.596107144,375183.609161444,145436.728920102,375246.695101536,145449.717201885,375510.171674863,145497.959391368,375550.99198904,145499.814860194,375593.667772043,145507.236735499,375627.066210916,145510.947673151,375651.187305657,145516.51407963,375723.55058988,145529.50236141"
    }
});

json

{
    "0":
    {
        "total":5
    },
    "1":
    {
        "title":"Commonwealth Avenue West-.Aft ITE West (clementi) (B28011)<\/b>",
        "desc1":"No Address<br>SINGAPORE ",
        "x":"361944.0013",
        "y":"146402.0037"
    },
    "2":
    {
        "title":"Bus Stop B28019 (81m)",
        "desc1":"Take Bus 183.",
        "desc2":"Walk (est 3.53mins) towards Bus Stop @ Commonwealth Ave West, aft Toh Tuck Ave (B28019).",
        "x":"361926.254710446",
        "y":"146471.72427513"
    },
    "3":
    {
        "title":"4 Stops later alight at B17179",
        "desc1":"Commonwealth Ave West, clementi Stn (B17179)",
        "x":"362640.654739801",
        "y":"145409.624231488"
    },
    "4":
    {
        "title":"Clementi Mrt",
        "desc1":"Clementi Mrt » Aljunied Mrt <Br>(Total: 23.69mins & 15 stops)",
        "desc2":"a. Clementi Mrt to Aljunied (Towards Joo Koon)<Br>",
        "x":"362634.310378015",
        "y":"145366.971908011"
    },
    "5":
    {
        "title":"Kallang Way 3<\/b>",
        "desc1":"No Address<br>SINGAPORE ",
        "x":"375236.7196",
        "y":"146245.6287"
    },
    "routes":
    {
        "route1":"361926.254710446,146471.72427513,361965.204712047,146430.874273451,362003.204713608,146390.024271773,362059.254715911,146324.474269079,362166.583611,146165.801774,362205.561452,146110.542985,362285.354725202,146006.224256002,362285.354725202,146006.224256002,362327.154726919,145934.974253075,362383.204729223,145850.424249601,362404.104730081,145820.024248351,362448.754731916,145751.624245541,362473.454732931,145717.424244136,362473.454732931,145717.424244136,362542.804735781,145611.974239803,362596.954738006,145509.374235587,362640.654739801,145409.624231488",
        "route3":"362634.310378015,145366.971908011,362649.917240182,145320.762118462,362683.315679054,145251.182037478,362725.063727645,145189.023831798,362776.089120366,145137.998439077,362838.247326045,145092.539452834,362903.188734964,145058.213279548,362999.816197345,145032.975211036,363059.975850781,145027.598043915,363151.82155768,145035.01991922,363396.743442744,145062.851951614,363567.446574758,145079.55117105,363692.69072053,145095.322656073,363768.638782834,145102.29528022,363819.790335127,145101.816796965,363875.769798844,145095.993455748,363934.829402354,145079.55117105,363988.637998315,145057.285545135,364117.593081739,144984.922260912,364117.593081739,144984.922260912,364225.210273661,144921.83632082,364295.718089058,144876.377334577,364479.409502856,144760.410532937,364622.280602477,144669.492560451,364744.741545009,144598.984745054,364803.188813035,144579.502322378,364846.250767411,144572.942024638,365136.245467346,144544.248414679,365162.222030913,144538.682008201,365239.223987202,144524.765992004,365295.815786402,144519.199585525,365378.38414917,144508.994506981,365378.38414917,144508.994506981,365559.292359729,144493.223021958,365645.571660149,144479.307005761,365720.718147612,144459.824583085,365767.104868268,144440.34216041,365807.925182445,144416.221065669,365947.085344413,144301.181998442,366112.222069949,144158.310898821,366165.102931497,144112.851912578,366231.899809241,144046.982769247,366295.670395791,143993.174173286,366295.670395791,143993.174173286,366402.801411802,143898.646806217,366448.989661912,143862.363621036,366510.220133178,143809.482759488,366748.64787735,143597.959313296,366991.714293587,143385.508132692,367014.907653915,143358.603834711,367049.233827201,143311.289379642,367077.065859594,143266.758127812,367110.464298467,143199.961250067,367177.925821761,143104.616922844,367177.925821761,143104.616922844,367197.6713333,143063.584291339,367238.491647477,143003.281554486,367308.999462875,142932.773739089,367341.470167334,142901.230769043,367444.44868719,142816.806937449,367483.413532541,142792.685842707,367536.294394089,142764.853810314,367579.897911506,142749.082325291,367606.449885804,142745.412927985,368156.948716467,142657.236618392,368198.821386098,142644.583736446,368362.90575618,142567.246380319,368362.90575618,142567.246380319,368461.245603971,142514.365518771,368528.970216129,142490.24442403,368579.067874437,142481.894814312,368656.997565139,142475.40067342,368791.192886392,142468.132651252,368871.30421457,142438.291296895,369045.718284237,142365.928012672,369175.604179136,142297.983390529,369448.355019531,142195.224880658,369448.355019531,142195.224880658,369652.456590418,142124.71706526,370259.517988185,141819.044730716,370851.88948848,141579.57540081,370968.911722636,141531.894775276,370968.911722636,141531.894775276,371500.977409015,141157.353161239,371570.297478198,141125.844038883,371658.218391585,141121.836164677,371658.218391585,141121.836164677,371790.861334691,141308.596948548,372005.123366712,141623.688172109,372112.254382723,141793.837432832,372200.47992532,141919.873922256,372218.56997711,141963.291277377,372238.290872147,142266.474268173,372323.403965793,142954.11163059,372348.452794947,142928.135067023,372433.647430755,143079.409624959,372509.269324409,143236.95523674,372622.702164891,143457.519093232,372698.324058546,143627.668353955,372795.620782071,143829.892916576,372795.620782071,143829.892916576,372838.296565075,143911.533544931,373003.43329061,144084.092145772,373334.634476094,144373.545282665,373444.107136843,144475.596068109,373523.892296371,144556.30896205,373523.892296371,144556.30896205,373590.689174116,144610.117558011,373635.220425945,144612.90076125,373763.332394181,144667.469391706,373920.878005962,144749.393109832,374053.216319857,144825.015003486,374204.460107166,144862.825950313,374257.73021715,144877.30506899,374308.755609871,144899.570694905,374371.841549963,144936.68007143,374437.710693295,144982.139057672,374437.710693295,144982.139057672,374502.652102213,145021.103903024,374562.027104653,145058.213279548,374649.234139487,145110.166406683,374677.06617188,145128.721094946,374790.249770281,145204.795316821,375014.761498256,145356.943760573,375055.581812433,145382.920324141,375100.113064263,145407.041418882,375150.210722572,145425.596107144,375183.609161444,145436.728920102,375246.695101536,145449.717201885,375510.171674863,145497.959391368,375550.99198904,145499.814860194,375593.667772043,145507.236735499,375627.066210916,145510.947673151,375651.187305657,145516.51407963,375723.55058988,145529.50236141"
    }
}

xml

<dataset total="5">
    <data>
        <title>
            <b>Commonwealth Avenue West.Aft ITE West (clementi) (B28011)</b>
        </title>
        <desc1>No Address<br>SINGAPORE </desc1>
        <x>361944.0013</x>
        <y>146402.0037</y>
    </data>
    <data>
        <title>Bus Stop B28019 (81m)</title>
        <desc1>Take Bus 183.</desc1>
        <desc2>
            Walk (est 3.53mins) towards Bus Stop @ Commonwealth Ave West, aft Toh Tuck Ave (B28019).
        </desc2>
        <x>361926.254710446</x>
        <y>146471.72427513</y>
    </data>
    <data>
        <title>4 Stops later alight at B17179</title>
        <desc1>Commonwealth Ave West, clementi Stn (B17179)</desc1>
        <x>362640.654739801</x>
        <y>145409.624231488</y>
    </data>
    <data>
        <title>Clementi Mrt</title>
        <desc1>
            Clementi Mrt &raquo; Aljunied Mrt <Br>(Total: 23.69mins & 15 stops)
        </desc1>
        <desc2>a. Clementi Mrt to Aljunied (Towards Joo Koon)<Br></desc2>
        <x>362634.310378015</x>
        <y>145366.971908011</y>
    </data>
    <data>
        <title><b>Kallang Way 3</b></title>
        <desc1>No Address<br>SINGAPORE </desc1>
        <x>375236.7196</x>
        <y>146245.6287</y>
    </data>
    <routes>
        <route1>
            361926.254710446,146471.72427513,361965.204712047,146430.874273451,362003.204713608,146390.024271773,362059.254715911,146324.474269079,362166.583611,146165.801774,362205.561452,146110.542985,362285.354725202,146006.224256002,362285.354725202,146006.224256002,362327.154726919,145934.974253075,362383.204729223,145850.424249601,362404.104730081,145820.024248351,362448.754731916,145751.624245541,362473.454732931,145717.424244136,362473.454732931,145717.424244136,362542.804735781,145611.974239803,362596.954738006,145509.374235587,362640.654739801,145409.624231488
        </route1>
        <route3>
            362634.310378015,145366.971908011,362649.917240182,145320.762118462,362683.315679054,145251.182037478,362725.063727645,145189.023831798,362776.089120366,145137.998439077,362838.247326045,145092.539452834,362903.188734964,145058.213279548,362999.816197345,145032.975211036,363059.975850781,145027.598043915,363151.82155768,145035.01991922,363396.743442744,145062.851951614,363567.446574758,145079.55117105,363692.69072053,145095.322656073,363768.638782834,145102.29528022,363819.790335127,145101.816796965,363875.769798844,145095.993455748,363934.829402354,145079.55117105,363988.637998315,145057.285545135,364117.593081739,144984.922260912,364117.593081739,144984.922260912,364225.210273661,144921.83632082,364295.718089058,144876.377334577,364479.409502856,144760.410532937,364622.280602477,144669.492560451,364744.741545009,144598.984745054,364803.188813035,144579.502322378,364846.250767411,144572.942024638,365136.245467346,144544.248414679,365162.222030913,144538.682008201,365239.223987202,144524.765992004,365295.815786402,144519.199585525,365378.38414917,144508.994506981,365378.38414917,144508.994506981,365559.292359729,144493.223021958,365645.571660149,144479.307005761,365720.718147612,144459.824583085,365767.104868268,144440.34216041,365807.925182445,144416.221065669,365947.085344413,144301.181998442,366112.222069949,144158.310898821,366165.102931497,144112.851912578,366231.899809241,144046.982769247,366295.670395791,143993.174173286,366295.670395791,143993.174173286,366402.801411802,143898.646806217,366448.989661912,143862.363621036,366510.220133178,143809.482759488,366748.64787735,143597.959313296,366991.714293587,143385.508132692,367014.907653915,143358.603834711,367049.233827201,143311.289379642,367077.065859594,143266.758127812,367110.464298467,143199.961250067,367177.925821761,143104.616922844,367177.925821761,143104.616922844,367197.6713333,143063.584291339,367238.491647477,143003.281554486,367308.999462875,142932.773739089,367341.470167334,142901.230769043,367444.44868719,142816.806937449,367483.413532541,142792.685842707,367536.294394089,142764.853810314,367579.897911506,142749.082325291,367606.449885804,142745.412927985,368156.948716467,142657.236618392,368198.821386098,142644.583736446,368362.90575618,142567.246380319,368362.90575618,142567.246380319,368461.245603971,142514.365518771,368528.970216129,142490.24442403,368579.067874437,142481.894814312,368656.997565139,142475.40067342,368791.192886392,142468.132651252,368871.30421457,142438.291296895,369045.718284237,142365.928012672,369175.604179136,142297.983390529,369448.355019531,142195.224880658,369448.355019531,142195.224880658,369652.456590418,142124.71706526,370259.517988185,141819.044730716,370851.88948848,141579.57540081,370968.911722636,141531.894775276,370968.911722636,141531.894775276,371500.977409015,141157.353161239,371570.297478198,141125.844038883,371658.218391585,141121.836164677,371658.218391585,141121.836164677,371790.861334691,141308.596948548,372005.123366712,141623.688172109,372112.254382723,141793.837432832,372200.47992532,141919.873922256,372218.56997711,141963.291277377,372238.290872147,142266.474268173,372323.403965793,142954.11163059,372348.452794947,142928.135067023,372433.647430755,143079.409624959,372509.269324409,143236.95523674,372622.702164891,143457.519093232,372698.324058546,143627.668353955,372795.620782071,143829.892916576,372795.620782071,143829.892916576,372838.296565075,143911.533544931,373003.43329061,144084.092145772,373334.634476094,144373.545282665,373444.107136843,144475.596068109,373523.892296371,144556.30896205,373523.892296371,144556.30896205,373590.689174116,144610.117558011,373635.220425945,144612.90076125,373763.332394181,144667.469391706,373920.878005962,144749.393109832,374053.216319857,144825.015003486,374204.460107166,144862.825950313,374257.73021715,144877.30506899,374308.755609871,144899.570694905,374371.841549963,144936.68007143,374437.710693295,144982.139057672,374437.710693295,144982.139057672,374502.652102213,145021.103903024,374562.027104653,145058.213279548,374649.234139487,145110.166406683,374677.06617188,145128.721094946,374790.249770281,145204.795316821,375014.761498256,145356.943760573,375055.581812433,145382.920324141,375100.113064263,145407.041418882,375150.210722572,145425.596107144,375183.609161444,145436.728920102,375246.695101536,145449.717201885,375510.171674863,145497.959391368,375550.99198904,145499.814860194,375593.667772043,145507.236735499,375627.066210916,145510.947673151,375651.187305657,145516.51407963,375723.55058988,145529.50236141
        </route3>
    </routes>
</dataset>