Journey

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

Parameters Description
mode journey  
output Return type (js, json, xml)  
country Country (sg)  
startlon Start longitude position This four parameter must be send together
endlon End longitude position
startlat Start latitude position
endlat End latitude position
q Search text (place to place / long,lat to long,lat) You can use this parameter OR the four parameter above
methods Methods (driving, taxi, bustrain, all)  
vehicle Vehicle (bus, both) Required if methods is bustrain
info Show info (1 = true, 0 = false) Default false
date Date Format: mm/dd/yyyy, default now
time Time ex: 05:34 PM, default now
no_route Show routes or not (1 = not show, 0 = show) Default show routes

Request example :

http://www.streetdirectory.com/api/?mode=journey&output=xml&country=sg&q=103.82915135175699,1.307363769270172%20to%20103.84643694497719,1.2990493119206423&methods=driving&info=1&date=06/20/2011&time=02:38%20PM

Response: (methods = driving)

Attributes Description
routes Route list
route  
lines Line list
color Color code in hexadecimal
pts Point list
pt  
x Position - longitude
y Position – latitude
infos Info list
journey  
datas  
data  
title Title
desc Description
index Current info index
direction_enum Direction
x Position - longitude
y Position – latitude
unit Distance
time Time in string
time_cost Time in float
std_time Time
std_distance Distance
mslink Link ID (for country = sg)
inExpressway 1 = true, empty = false
total_data Total data
total_length Total distance
time_cost Total time in float
total_time Total time in second
carparks Carpark list
carpark  
dx Distance x in meter
dy Distance y in meter
distsq_place Distance from last position
id Carpark id
location Location
address Address
weekday_am Weekday AM carpark rate
weekday_pm Weekday PM carpark rate
saturday Saturday carpark rate
sunday_holiday Sunday/holiday carpark rate
remarks Remarks
source_provider Source Provider
place_name Place name
street_name Street name
longitude Position – longitude
latitude Position – latitude
distance Distance
erp_datas Erp data
erp_data  
erp  
x Position - longitude
y Position – latitude
name Erp name
no Erp number
lid Link ID
price Price

js

set_data({
"routes":[
    {
        "x":"103.82908455493",
        "y":"1.3074035408555"
    },
    {
        "x":"103.82873438176",
        "y":"1.3066978379736"
    },
    {
        "x":"103.82873438176",
        "y":"1.3066978379736"
    },
    {
        "x":"103.82998390954",
        "y":"1.306029066674"
    },
    {
        "x":"103.82998390954",
        "y":"1.306029066674"
    },
    {
        "x":"103.8302086518",
        "y":"1.3058934914068"
    },
    {
        "x":"103.8302086518",
        "y":"1.3058934914068"
    },
    {
        "x":"103.83050530821",
        "y":"1.3057217682847"
    },
    {
        "x":"103.83050530821",
        "y":"1.3057217682847"
    },
    {
        "x":"103.8313862818",
        "y":"1.3052246850279"
    },
    {
        "x":"103.8313862818",
        "y":"1.3052246850279"
    },
    {
        "x":"103.83170989969",
        "y":"1.3050529742256"
    },
    {
        "x":"103.83170989969",
        "y":"1.3050529742256"
    },
    {
        "x":"103.83224925168",
        "y":"1.3047909103728"
    },
    {
        "x":"103.83224925168",
        "y":"1.3047909103728"
    },
    {
        "x":"103.83430782521",
        "y":"1.3036883344273"
    },
    {
        "x":"103.83430782521",
        "y":"1.3036883344273"
    },
    {
        "x":"103.8359888365",
        "y":"1.3028026690005"
    },
    {
        "x":"103.8359888365",
        "y":"1.3028026690005"
    },
    {
        "x":"103.83640234679",
        "y":"1.3025857718622"
    },
    {
        "x":"103.83640234679",
        "y":"1.3025857718622"
    },
    {
        "x":"103.83688779189",
        "y":"1.3022874994739"
    },
    {
        "x":"103.8375170444",
        "y":"1.301962157445"
    },
    {
        "x":"103.8375170444",
        "y":"1.301962157445"
    },
    {
        "x":"103.83776875202",
        "y":"1.3018175479192"
    },
    {
        "x":"103.83776875202",
        "y":"1.3018175479192"
    },
    {
        "x":"103.8378766273",
        "y":"1.3017542801934"
    },
    {
        "x":"103.83819124937",
        "y":"1.3016006543694"
    },
    {
        "x":"103.8384429404",
        "y":"1.3014922262892",
    },
    {
        "x":"103.83903620265",
        "y":"1.3012573208303"
    },
    {
        "x":"103.83993505428",
        "y":"1.3009682841507"
    },
    {
        "x":"103.83993505428",
        "y":"1.3009682841507"
    },
    {
        "x":"103.84009684857",
        "y":"1.3009140865983"
    },
    {
        "x":"103.84009684857",
        "y":"1.3009140865983"
    },
    {
        "x":"103.84036650572",
        "y":"1.3008237573071"
    },
    {
        "x":"103.84070807283",
        "y":"1.3007063250043"
    },
    {
        "x":"103.84070807283",
        "y":"1.3007063250043"
    },
    {
        "x":"103.84123839584",
        "y":"1.3005347074164"
    },
    {
        "x":"103.84123839584",
        "y":"1.3005347074164"
    },
    {
        "x":"103.84196645371",
        "y":"1.300326999321"
    },
    {
        "x":"103.84196645371",
        "y":"1.300326999321"
    },
    {
        "x":"103.84244284533",
        "y":"1.3001734472527"
    },
    {
        "x":"103.84300014236",
        "y":"1.2999747052954"
    },
    {
        "x":"103.84300014236",
        "y":"1.2999747052954"
    },
    {
        "x":"103.84352147413",
        "y":"1.299812128214"
    },
    {
        "x":"103.84352147413",
        "y":"1.299812128214"
    },
    {
        "x":"103.8447708763",
        "y":"1.299414705371"
    },
    {
        "x":"103.8447708763",
        "y":"1.299414705371"
    },
    {
        "x":"103.84581354409",
        "y":"1.2990805044726"
    }
],
"infos":[
    {
        "title":"Claymore Road",
        "desc":"Starting from Claymore Road",
        "index":1,
        "direction_enum":"straight",
        "x":"103.82873438176",
        "y":"1.3066978379736",
        "unit":"90  m",
        "time":"6.48 sec",
        "time_cost":0.0018,
        "std_time":0.108,
        "std_distance":87.2066498,
        "mslink":"9283",
        "inExpressway":false
    },
    {
        "title":"Orchard Road",
        "desc":"ERP Gantry 13 ahead: Orchard Road - ERP 13, Orchard Cordon.. Price 0.50",
        "index":2,
        "direction_enum":"straight",
        "x":"103.83260753745",
        "y":"1.3046682414927",
        "unit":"700  m",
        "time":"36 sec",
        "time_cost":0.01,
        "std_time":0.6,
        "std_distance":703.8838197,
        "mslink":"9071",
        "inExpressway":false
    },
    {
        "title":"Orchard Road",
        "desc":"Turn right to Destination",
        "index":3,
        "direction_enum":"turn_right",
        "x":"103.84581354409",
        "y":"1.2990805044726",
        "unit":"1.38  km",
        "time":"1.18 min",
        "time_cost":0.019714285714286,
        "std_time":1.1828571428571,
        "std_distance":1383.1704062,
        "mslink":"7454",
        "inExpressway":false
    }
],
"total_data":{
    "total_length":"2.17 km",
    "time_cost":0.031514285714286,
    "total_time":"2 min"
},
"carparks":[
    {
        "dx":"75.62103556",
        "dy":"23.55257679",
        "distsq_place":"99.17361235",
        "day_start":"sun",
        "day_end":"sun",
        "time_start":"08:30:00",
        "time_end":"22:00:00",
        "charges":"0.5",
        "place_id":"30227",
        "place_name":"Car Park Handy Road",
        "streetname":"No Address",
        "longitude":"103.84711647021",
        "latitude":"1.2992626668379",
        "distance":"0.01 km"
    },
    {
        "dx":"75.62103556",
        "dy":"23.55257679",
        "distsq_place":"99.17361235",
        "day_start":"pub",
        "day_end":"pub",
        "time_start":"08:30:00",
        "time_end":"22:00:00",
        "charges":"0.5",
        "place_id":"30227",
        "place_name":"Car Park Handy Road",
        "streetname":"No Address",
        "longitude":"103.84711647021",
        "latitude":"1.2992626668379",
        "distance":"0.01 km"
    },
    {
        "dx":"75.62103556",
        "dy":"23.55257679",
        "distsq_place":"99.17361235",
        "day_start":"mon",
        "day_end":"sat",
        "time_start":"08:30:00",
        "time_end":"17:00:00",
        "charges":"1",
        "place_id":"30227",
        "place_name":"Car Park Handy Road",
        "streetname":"No Address",
        "longitude":"103.84711647021",
        "latitude":"1.2992626668379",
        "distance":"0.01 km"
    },
    {
        "dx":"75.62103556",
        "dy":"23.55257679",
        "distsq_place":"99.17361235",
        "day_start":"mon",
        "day_end":"sat",
        "time_start":"17:00:00",
        "time_end":"22:00:00",
        "charges":"0.5",
        "place_id":"30227",
        "place_name":"Car Park Handy Road",
        "streetname":"No Address",
        "longitude":"103.84711647021",
        "latitude":"1.2992626668379",
        "distance":"0.01 km"
    },
    {
        "dx":"90.99256444",
        "dy":"42.90167679",
        "distsq_place":"133.89424123",
        "day_start":null,
        "day_end":null,
        "time_start":null,
        "time_end":null,
        "charges":null,
        "place_id":"53960",
        "place_name":"Car Park Atrium @ Orchard",
        "streetname":"Orchard Road",
        "longitude":"103.84561900000",
        "latitude":"1.2994370000000",
        "distance":"0.01 km"
    }
],
"erp_datas":[
    [
        {
            "x":"103.83260753745",
            "y":"1.3046682414927",
            "name":"Orchard Road - ERP 13, Orchard Cordon",
            "no":"13",
            "lid":"3702",
            "price":"0.50"
        }
    ]
],
"start_end":[
    {
        "x":"103.82915135175699",
        "y":"1.307363769270172 ",
        "title":"Taxi Stand - Orchard Road at Orchard Towers",
        "desc":"Orchard Road. 238875",
        "postal":"238875",
        "aid":"314078",
        "pid":"54305"
    },
    {
        "x":" 103.84643694497719",
        "y":"1.2990493119206423",
        "title":"",
        "desc":"Orchard Road. 238832",
        "postal":"238832",
        "aid":"169653",
        "pid":"1"
    }
]
});

json

{
"routes":[
    {
        "x":"103.82908455493",
        "y":"1.3074035408555"
    },
    {
        "x":"103.82873438176",
        "y":"1.3066978379736"
    },
    {
        "x":"103.82873438176",
        "y":"1.3066978379736"
    },
    {
        "x":"103.82998390954",
        "y":"1.306029066674"
    },
    {
        "x":"103.82998390954",
        "y":"1.306029066674"
    },
    {
        "x":"103.8302086518",
        "y":"1.3058934914068"
    },
    {
        "x":"103.8302086518",
        "y":"1.3058934914068"
    },
    {
        "x":"103.83050530821",
        "y":"1.3057217682847"
    },
    {
        "x":"103.83050530821",
        "y":"1.3057217682847"
    },
    {
        "x":"103.8313862818",
        "y":"1.3052246850279"
    },
    {
        "x":"103.8313862818",
        "y":"1.3052246850279"
    },
    {
        "x":"103.83170989969",
        "y":"1.3050529742256"
    },
    {
        "x":"103.83170989969",
        "y":"1.3050529742256"
    },
    {
        "x":"103.83224925168",
        "y":"1.3047909103728"
    },
    {
        "x":"103.83224925168",
        "y":"1.3047909103728"
    },
    {
        "x":"103.83430782521",
        "y":"1.3036883344273"
    },
    {
        "x":"103.83430782521",
        "y":"1.3036883344273"
    },
    {
        "x":"103.8359888365",
        "y":"1.3028026690005"
    },
    {
        "x":"103.8359888365",
        "y":"1.3028026690005"
    },
    {
        "x":"103.83640234679",
        "y":"1.3025857718622"
    },
    {
        "x":"103.83640234679",
        "y":"1.3025857718622"
    },
    {
        "x":"103.83688779189",
        "y":"1.3022874994739"
    },
    {
        "x":"103.8375170444",
        "y":"1.301962157445"
    },
    {
        "x":"103.8375170444",
        "y":"1.301962157445"
    },
    {
        "x":"103.83776875202",
        "y":"1.3018175479192"
    },
    {
        "x":"103.83776875202",
        "y":"1.3018175479192"
    },
    {
        "x":"103.8378766273",
        "y":"1.3017542801934"
    },
    {
        "x":"103.83819124937",
        "y":"1.3016006543694"
    },
    {
        "x":"103.8384429404",
        "y":"1.3014922262892",
    },
    {
        "x":"103.83903620265",
        "y":"1.3012573208303"
    },
    {
        "x":"103.83993505428",
        "y":"1.3009682841507"
    },
    {
        "x":"103.83993505428",
        "y":"1.3009682841507"
    },
    {
        "x":"103.84009684857",
        "y":"1.3009140865983"
    },
    {
        "x":"103.84009684857",
        "y":"1.3009140865983"
    },
    {
        "x":"103.84036650572",
        "y":"1.3008237573071"
    },
    {
        "x":"103.84070807283",
        "y":"1.3007063250043"
    },
    {
        "x":"103.84070807283",
        "y":"1.3007063250043"
    },
    {
        "x":"103.84123839584",
        "y":"1.3005347074164"
    },
    {
        "x":"103.84123839584",
        "y":"1.3005347074164"
    },
    {
        "x":"103.84196645371",
        "y":"1.300326999321"
    },
    {
        "x":"103.84196645371",
        "y":"1.300326999321"
    },
    {
        "x":"103.84244284533",
        "y":"1.3001734472527"
    },
    {
        "x":"103.84300014236",
        "y":"1.2999747052954"
    },
    {
        "x":"103.84300014236",
        "y":"1.2999747052954"
    },
    {
        "x":"103.84352147413",
        "y":"1.299812128214"
    },
    {
        "x":"103.84352147413",
        "y":"1.299812128214"
    },
    {
        "x":"103.8447708763",
        "y":"1.299414705371"
    },
    {
        "x":"103.8447708763",
        "y":"1.299414705371"
    },
    {
        "x":"103.84581354409",
        "y":"1.2990805044726"
    }
],
"infos":[
    {
        "title":"Claymore Road",
        "desc":"Starting from Claymore Road",
        "index":1,
        "direction_enum":"straight",
        "x":"103.82873438176",
        "y":"1.3066978379736",
        "unit":"90  m",
        "time":"6.48 sec",
        "time_cost":0.0018,
        "std_time":0.108,
        "std_distance":87.2066498,
        "mslink":"9283",
        "inExpressway":false
    },
    {
        "title":"Orchard Road",
        "desc":"ERP Gantry 13 ahead: Orchard Road - ERP 13, Orchard Cordon.. Price 0.50",
        "index":2,
        "direction_enum":"straight",
        "x":"103.83260753745",
        "y":"1.3046682414927",
        "unit":"700  m",
        "time":"36 sec",
        "time_cost":0.01,
        "std_time":0.6,
        "std_distance":703.8838197,
        "mslink":"9071",
        "inExpressway":false
    },
    {
        "title":"Orchard Road",
        "desc":"Turn right to Destination",
        "index":3,
        "direction_enum":"turn_right",
        "x":"103.84581354409",
        "y":"1.2990805044726",
        "unit":"1.38  km",
        "time":"1.18 min",
        "time_cost":0.019714285714286,
        "std_time":1.1828571428571,
        "std_distance":1383.1704062,
        "mslink":"7454",
        "inExpressway":false
    }
],
"total_data":{
    "total_length":"2.17 km",
    "time_cost":0.031514285714286,
    "total_time":"2 min"
},
"carparks":[
    {
        "dx":"75.62103556",
        "dy":"23.55257679",
        "distsq_place":"99.17361235",
        "day_start":"sun",
        "day_end":"sun",
        "time_start":"08:30:00",
        "time_end":"22:00:00",
        "charges":"0.5",
        "place_id":"30227",
        "place_name":"Car Park Handy Road",
        "streetname":"No Address",
        "longitude":"103.84711647021",
        "latitude":"1.2992626668379",
        "distance":"0.01 km"
    },
    {
        "dx":"75.62103556",
        "dy":"23.55257679",
        "distsq_place":"99.17361235",
        "day_start":"pub",
        "day_end":"pub",
        "time_start":"08:30:00",
        "time_end":"22:00:00",
        "charges":"0.5",
        "place_id":"30227",
        "place_name":"Car Park Handy Road",
        "streetname":"No Address",
        "longitude":"103.84711647021",
        "latitude":"1.2992626668379",
        "distance":"0.01 km"
    },
    {
        "dx":"75.62103556",
        "dy":"23.55257679",
        "distsq_place":"99.17361235",
        "day_start":"mon",
        "day_end":"sat",
        "time_start":"08:30:00",
        "time_end":"17:00:00",
        "charges":"1",
        "place_id":"30227",
        "place_name":"Car Park Handy Road",
        "streetname":"No Address",
        "longitude":"103.84711647021",
        "latitude":"1.2992626668379",
        "distance":"0.01 km"
    },
    {
        "dx":"75.62103556",
        "dy":"23.55257679",
        "distsq_place":"99.17361235",
        "day_start":"mon",
        "day_end":"sat",
        "time_start":"17:00:00",
        "time_end":"22:00:00",
        "charges":"0.5",
        "place_id":"30227",
        "place_name":"Car Park Handy Road",
        "streetname":"No Address",
        "longitude":"103.84711647021",
        "latitude":"1.2992626668379",
        "distance":"0.01 km"
    },
    {
        "dx":"90.99256444",
        "dy":"42.90167679",
        "distsq_place":"133.89424123",
        "day_start":null,
        "day_end":null,
        "time_start":null,
        "time_end":null,
        "charges":null,
        "place_id":"53960",
        "place_name":"Car Park Atrium @ Orchard",
        "streetname":"Orchard Road",
        "longitude":"103.84561900000",
        "latitude":"1.2994370000000",
        "distance":"0.01 km"
    }
],
"erp_datas":[
    [
        {
            "x":"103.83260753745",
            "y":"1.3046682414927",
            "name":"Orchard Road - ERP 13, Orchard Cordon",
            "no":"13",
            "lid":"3702",
            "price":"0.50"
        }
    ]
],
"start_end":[
    {
        "x":"103.82915135175699",
        "y":"1.307363769270172 ",
        "title":"Taxi Stand - Orchard Road at Orchard Towers",
        "desc":"Orchard Road. 238875",
        "postal":"238875",
        "aid":"314078",
        "pid":"54305"
    },
    {
        "x":" 103.84643694497719",
        "y":"1.2990493119206423",
        "title":"",
        "desc":"Orchard Road. 238832",
        "postal":"238832",
        "aid":"169653",
        "pid":"1"
    }
]
}

xml

<dataset>
    <routes>
        <route>
            <lines>
                <color/>
                <pts>
                    <pt>
                        <x>103.82908455493</x>
                        <y>1.3074035408555</y>
                    </pt>
                    <pt>
                        <x>103.82873438176</x>
                        <y>1.3066978379736</y>
                    </pt>
                    <pt>
                        <x>103.82873438176</x>
                        <y>1.3066978379736</y>
                    </pt>
                    <pt>
                        <x>103.82998390954</x>
                        <y>1.306029066674</y>
                    </pt>
                    <pt>
                        <x>103.82998390954</x>
                        <y>1.306029066674</y>
                    </pt>
                    <pt>
                        <x>103.8302086518</x>
                        <y>1.3058934914068</y>
                    </pt>
                    <pt>
                        <x>103.8302086518</x>
                        <y>1.3058934914068</y>
                    </pt>
                    <pt>
                        <x>103.83050530821</x>
                        <y>1.3057217682847</y>
                    </pt>
                    <pt>
                        <x>103.83050530821</x>
                        <y>1.3057217682847</y>
                    </pt>
                    <pt>
                        <x>103.8313862818</x>
                        <y>1.3052246850279</y>
                    </pt>
                    <pt>
                        <x>103.8313862818</x>
                        <y>1.3052246850279</y>
                    </pt>
                    <pt>
                        <x>103.83170989969</x>
                        <y>1.3050529742256</y>
                    </pt>
                    <pt>
                        <x>103.83170989969</x>
                        <y>1.3050529742256</y>
                    </pt>
                    <pt>
                        <x>103.83224925168</x>
                        <y>1.3047909103728</y>
                    </pt>
                    <pt>
                        <x>103.83224925168</x>
                        <y>1.3047909103728</y>
                    </pt>
                    <pt>
                        <x>103.83430782521</x>
                        <y>1.3036883344273</y>
                    </pt>
                    <pt>
                        <x>103.83430782521</x>
                        <y>1.3036883344273</y>
                    </pt>
                    <pt>
                        <x>103.8359888365</x>
                        <y>1.3028026690005</y>
                    </pt>
                    <pt>
                        <x>103.8359888365</x>
                        <y>1.3028026690005</y>
                    </pt>
                    <pt>
                        <x>103.83640234679</x>
                        <y>1.3025857718622</y>
                    </pt>
                    <pt>
                        <x>103.83640234679</x>
                        <y>1.3025857718622</y>
                    </pt>
                    <pt>
                        <x>103.83688779189</x>
                        <y>1.3022874994739</y>
                    </pt>
                    <pt>
                        <x>103.8375170444</x>
                        <y>1.301962157445</y>
                    </pt>
                    <pt>
                        <x>103.8375170444</x>
                        <y>1.301962157445</y>
                    </pt>
                    <pt>
                        <x>103.83776875202</x>
                        <y>1.3018175479192</y>
                    </pt>
                    <pt>
                        <x>103.83776875202</x>
                        <y>1.3018175479192</y>
                    </pt>
                    <pt>
                        <x>103.8378766273</x>
                        <y>1.3017542801934</y>
                    </pt>
                    <pt>
                        <x>103.83819124937</x>
                        <y>1.3016006543694</y>
                    </pt>
                    <pt>
                        <x>103.8384429404</x>
                        <y>1.3014922262892</y>
                    </pt>
                    <pt>
                        <x>103.83903620265</x>
                        <y>1.3012573208303</y>
                    </pt>
                    <pt>
                        <x>103.83993505428</x>
                        <y>1.3009682841507</y>
                    </pt>
                    <pt>
                        <x>103.83993505428</x>
                        <y>1.3009682841507</y>
                    </pt>
                    <pt>
                        <x>103.84009684857</x>
                        <y>1.3009140865983</y>
                    </pt>
                    <pt>
                        <x>103.84009684857</x>
                        <y>1.3009140865983</y>
                    </pt>
                    <pt>
                        <x>103.84036650572</x>
                        <y>1.3008237573071</y>
                    </pt>
                    <pt>
                        <x>103.84070807283</x>
                        <y>1.3007063250043</y>
                    </pt>
                    <pt>
                        <x>103.84070807283</x>
                        <y>1.3007063250043</y>
                    </pt>
                    <pt>
                        <x>103.84123839584</x>
                        <y>1.3005347074164</y>
                    </pt>
                    <pt>
                        <x>103.84123839584</x>
                        <y>1.3005347074164</y>
                    </pt>
                    <pt>
                        <x>103.84196645371</x>
                        <y>1.300326999321</y>
                    </pt>
                    <pt>
                        <x>103.84196645371</x>
                        <y>1.300326999321</y>
                    </pt>
                    <pt>
                        <x>103.84244284533</x>
                        <y>1.3001734472527</y>
                    </pt>
                    <pt>
                        <x>103.84300014236</x>
                        <y>1.2999747052954</y>
                    </pt>
                    <pt>
                        <x>103.84300014236</x>
                        <y>1.2999747052954</y>
                    </pt>
                    <pt>
                        <x>103.84352147413</x>
                        <y>1.299812128214</y>
                    </pt>
                    <pt>
                        <x>103.84352147413</x>
                        <y>1.299812128214</y>
                    </pt>
                    <pt>
                        <x>103.8447708763</x>
                        <y>1.299414705371</y>
                    </pt>
                    <pt>
                        <x>103.8447708763</x>
                        <y>1.299414705371</y>
                    </pt>
                    <pt>
                        <x>103.84581354409</x>
                        <y>1.2990805044726</y>
                    </pt>
                </pts>
            </lines>
        </route>
    </routes>
    <infos>
        <journey>
            <datas>
                <data>
                    <title>Claymore Road</title>
                    <desc>Starting from Claymore Road</desc>
                    <index>1</index>
                    <direction_enum>straight</direction_enum>
                    <x>103.82873438176</x>
                    <y>1.3066978379736</y>
                    <unit>90  m</unit>
                    <time>6.48 sec</time>
                    <time_cost>0.0018</time_cost>
                    <std_time>0.108</std_time>
                    <std_distance>87.2066498</std_distance>
                    <mslink>9283</mslink>
                    <inExpressway/>
                </data>
                <data>
                    <title>Orchard Road</title>
                    <desc>ERP Gantry 13 ahead: Orchard Road - ERP 13, Orchard Cordon.. Price 0.50</desc>
                    <index>2</index>
                    <direction_enum>straight</direction_enum>
                    <x>103.83260753745</x>
                    <y>1.3046682414927</y>
                    <unit>700  m</unit>
                    <time>36 sec</time>
                    <time_cost>0.01</time_cost>
                    <std_time>0.6</std_time>
                    <std_distance>703.8838197</std_distance>
                    <mslink>9071</mslink>
                    <inExpressway/>
                </data>
                <data>
                    <title>Orchard Road</title>
                    <desc>Turn right to Destination</desc>
                    <index>3</index>
                    <direction_enum>turn_right</direction_enum>
                    <x>103.84581354409</x>
                    <y>1.2990805044726</y>
                    <unit>1.38  km</unit>
                    <time>1.18 min</time>
                    <time_cost>0.019714285714286</time_cost>
                    <std_time>1.1828571428571</std_time>
                    <std_distance>1383.1704062</std_distance>
                    <mslink>7454</mslink>
                    <inExpressway/>
                </data>
            </datas>
        </journey>
    </infos>
    <total_data>
        <total_length>2.17 km</total_length>
        <time_cost>0.031514285714286</time_cost>
        <total_time>2 min</total_time>
    </total_data>
    <carparks>
        <carpark>
            <dx>75.62103556</dx>
            <dy>23.55257679</dy>
            <distsq_place>99.17361235</distsq_place>
            <day_start>sun</day_start>
            <day_end>sun</day_end>
            <time_start>08:30:00</time_start>
            <time_end>22:00:00</time_end>
            <charges>0.5</charges>
            <place_id>30227</place_id>
            <place_name>Car Park Handy Road</place_name>
            <streetname>No Address</streetname>
            <longitude>103.84711647021</longitude>
            <latitude>1.2992626668379</latitude>
            <distance>0.01 km</distance>
        </carpark>
        <carpark>
            <dx>75.62103556</dx>
            <dy>23.55257679</dy>
            <distsq_place>99.17361235</distsq_place>
            <day_start>pub</day_start>
            <day_end>pub</day_end>
            <time_start>08:30:00</time_start>
            <time_end>22:00:00</time_end>
            <charges>0.5</charges>
            <place_id>30227</place_id>
            <place_name>Car Park Handy Road</place_name>
            <streetname>No Address</streetname>
            <longitude>103.84711647021</longitude>
            <latitude>1.2992626668379</latitude>
            <distance>0.01 km</distance>
        </carpark>
        <carpark>
            <dx>75.62103556</dx>
            <dy>23.55257679</dy>
            <distsq_place>99.17361235</distsq_place>
            <day_start>mon</day_start>
            <day_end>sat</day_end>
            <time_start>08:30:00</time_start>
            <time_end>17:00:00</time_end>
            <charges>1</charges>
            <place_id>30227</place_id>
            <place_name>Car Park Handy Road</place_name>
            <streetname>No Address</streetname>
            <longitude>103.84711647021</longitude>
            <latitude>1.2992626668379</latitude>
            <distance>0.01 km</distance>
        </carpark>
        <carpark>
            <dx>75.62103556</dx>
            <dy>23.55257679</dy>
            <distsq_place>99.17361235</distsq_place>
            <day_start>mon</day_start>
            <day_end>sat</day_end>
            <time_start>17:00:00</time_start>
            <time_end>22:00:00</time_end>
            <charges>0.5</charges>
            <place_id>30227</place_id>
            <place_name>Car Park Handy Road</place_name>
            <streetname>No Address</streetname>
            <longitude>103.84711647021</longitude>
            <latitude>1.2992626668379</latitude>
            <distance>0.01 km</distance>
        </carpark>
        <carpark>
            <dx>90.99256444</dx>
            <dy>42.90167679</dy>
            <distsq_place>133.89424123</distsq_place>
            <day_start/>
            <day_end/>
            <time_start/>
            <time_end/>
            <charges/>
            <place_id>53960</place_id>
            <place_name>Car Park Atrium @ Orchard</place_name>
            <streetname>Orchard Road</streetname>
            <longitude>103.84561900000</longitude>
            <latitude>1.2994370000000</latitude>
            <distance>0.01 km</distance>
        </carpark>
    </carparks>
    <erp_datas>
        <erp_data>
            <erp>
                <x>103.83260753745</x>
                <y>1.3046682414927</y>
                <name>Orchard Road - ERP 13, Orchard Cordon</name>
                <no>13</no>
                <lid>3702</lid>
                <price>0.50</price>
            </erp>
        </erp_data>
    </erp_datas>
</dataset>

Response: (methods = taxi)

Attributes Description
routes Route list
route  
lines Line list
color Color code in hexadecimal
pts Point list
pt  
x Position - longitude
y Position – latitude
start_end Start and end position
sub  
x Position - longitude
y Position – latitude
title Title
desc Description
postal Postal code
aid Address ID
pid Place ID
infos Info list
journey  
datas  
data  
title Title
desc Description
index Current info index
direction_enum Direction
x Position - longitude
y Position – latitude
unit Distance
time Time in string
time_cost Time in float
std_time Time
std_distance Distance
mslink Link ID (for country = sg)
inExpressway 1 = true, empty = false
vehicletype Vehicle type
taxi_time Total data
total_length Total distance
time_cost Total time in float
total_time Total time in second
taxi_fare Total fare
fare  
label Label name
value Price
unit Currency
erp_datas Erp data
erp_data  
erp  
x Position - longitude
y Position – latitude
name Erp name
no Erp number
lid Link ID
price Price

js

set_data({
"routes":[
    {
        "x":"103.82908455493",
        "y":"1.3074035408555"
    },
    {
        "x":"103.82873438176",
        "y":"1.3066978379736"
    },
    {
        "x":"103.82873438176",
        "y":"1.3066978379736"
    },
    {
        "x":"103.82998390954",
        "y":"1.306029066674"
    },
    {
        "x":"103.82998390954",
        "y":"1.306029066674"
    },
    {
        "x":"103.8302086518",
        "y":"1.3058934914068"
    },
    {
        "x":"103.8302086518",
        "y":"1.3058934914068"
    },
    {
        "x":"103.83050530821",
        "y":"1.3057217682847"
    },
    {
        "x":"103.83050530821",
        "y":"1.3057217682847"
    },
    {
        "x":"103.8313862818",
        "y":"1.3052246850279"
    },
    {
        "x":"103.8313862818",
        "y":"1.3052246850279"
    },
    {
        "x":"103.83170989969",
        "y":"1.3050529742256"
    },
    {
        "x":"103.83170989969",
        "y":"1.3050529742256"
    },
    {
        "x":"103.83224925168",
        "y":"1.3047909103728"
    },
    {
        "x":"103.83224925168",
        "y":"1.3047909103728"
    },
    {
        "x":"103.83430782521",
        "y":"1.3036883344273"
    },
    {
        "x":"103.83430782521",
        "y":"1.3036883344273"
    },
    {
        "x":"103.8359888365",
        "y":"1.3028026690005"
    },
    {
        "x":"103.8359888365",
        "y":"1.3028026690005"
    },
    {
        "x":"103.83640234679",
        "y":"1.3025857718622"
    },
    {
        "x":"103.83640234679",
        "y":"1.3025857718622"
    },
    {
        "x":"103.83688779189",
        "y":"1.3022874994739"
    },
    {
        "x":"103.8375170444",
        "y":"1.301962157445"
    },
    {
        "x":"103.8375170444",
        "y":"1.301962157445"
    },
    {
        "x":"103.83776875202",
        "y":"1.3018175479192"
    },
    {
        "x":"103.83776875202",
        "y":"1.3018175479192"
    },
    {
        "x":"103.8378766273",
        "y":"1.3017542801934"
    },
    {
        "x":"103.83819124937",
        "y":"1.3016006543694"
    },
    {
        "x":"103.8384429404",
        "y":"1.3014922262892"
    },
    {
        "x":"103.83903620265",
        "y":"1.3012573208303"
    },
    {
        "x":"103.83993505428",
        "y":"1.3009682841507"
    },
    {
        "x":"103.83993505428",
        "y":"1.3009682841507"
    },
    {
        "x":"103.84009684857",
        "y":"1.3009140865983"
    },
    {
        "x":"103.84009684857",
        "y":"1.3009140865983"
    },
    {
        "x":"103.84036650572",
        "y":"1.3008237573071"
    },
    {
        "x":"103.84070807283",
        "y":"1.3007063250043"
    },
    {
        "x":"103.84070807283",
        "y":"1.3007063250043"
    },
    {
        "x":"103.84123839584",
        "y":"1.3005347074164"
    },
    {
        "x":"103.84123839584",
        "y":"1.3005347074164"
    },
    {
        "x":"103.84196645371",
        "y":"1.300326999321"
    },
    {
        "x":"103.84196645371",
        "y":"1.300326999321"
    },
    {
        "x":"103.84244284533",
        "y":"1.3001734472527"
    },
    {
        "x":"103.84300014236",
        "y":"1.2999747052954"
    },
    {
        "x":"103.84300014236",
        "y":"1.2999747052954"
    },
    {
        "x":"103.84352147413",
        "y":"1.299812128214"
    },
    {
        "x":"103.84352147413",
        "y":"1.299812128214"
    },
    {
        "x":"103.8447708763",
        "y":"1.299414705371"
    },
    {
        "x":"103.8447708763",
        "y":"1.299414705371"
    },
    {
        "x":"103.84581354409",
        "y":"1.2990805044726"
    }
],
"infos":{
    "journey":[
        {
            "title":"Claymore Road",
            "desc":"Starting from Claymore Road",
            "index":1,
            "direction_enum":"straight",
            "x":"103.82873438176",
            "y":"1.3066978379736",
            "unit":"90  m",
            "time":"6.48 sec",
            "time_cost":0.0018,
            "std_time":0.108,
            "std_distance":87.2066498,
            "mslink":"9283",
            "inExpressway":false,
            "vehicletype":"taxi"
        },
        {
            "title":"Orchard Road",
            "desc":"ERP Gantry 13 ahead: Orchard Road - ERP 13, Orchard Cordon.. Price 0.50",
            "index":2,
            "direction_enum":"straight",
            "x":"103.83260753745",
            "y":"1.3046682414927",
            "unit":"700  m",
            "time":"36 sec",
            "time_cost":0.01,
            "std_time":0.6,
            "std_distance":703.8838197,
            "mslink":"9071",
            "inExpressway":false,
            "vehicletype":"taxi"
        },
        {
            "title":"Orchard Road",
            "desc":"Turn right to Destination",
            "index":3,
            "direction_enum":"turn_right",
            "x":"103.84581354409",
            "y":"1.2990805044726",
            "unit":"1.38  km",
            "time":"1.18 min",
            "time_cost":0.019714285714286,
            "std_time":1.1828571428571,
            "std_distance":1383.1704062,
            "mslink":"7454",
            "inExpressway":false,
            "vehicletype":"taxi"
        }
    ],
    "taxi_time":{
        "total_length":"2.17 km",
        "time_cost":0.039392857142857,
        "total_time":"2 min"
    },
    "taxi_fare":[
        {
            "label":"Total Fare",
            "value":"4.20",
            "unit":"$"
        },
        {
            "label":"Metered Fare",
            "value":"1.40",
            "unit":"$"
        },
        {
            "label":"Flagdown Fare",
            "value":"2.80",
            "unit":"$"
        }
    ]
},
"erp_datas":[
    {
        "x":"103.83260753745",
        "y":"1.3046682414927",
        "name":"Orchard Road - ERP 13, Orchard Cordon",
        "no":"13",
        "lid":"3702",
        "price":"0.50"
    }
],
"start_end":[
    {
        "x":"103.82915135175699",
        "y":"1.307363769270172 ",
        "title":"Taxi Stand - Orchard Road at Orchard Towers",
        "desc":"Orchard Road. 238875",
        "postal":"238875",
        "aid":"314078",
        "pid":"54305"
    },
    {
        "x":" 103.84643694497719",
        "y":"1.2990493119206423",
        "title":"",
        "desc":"Orchard Road. 238832",
        "postal":"238832",
        "aid":"169653",
        "pid":"1"
    }
]
});

json

{
"routes":[
    {
        "x":"103.82908455493",
        "y":"1.3074035408555"
    },
    {
        "x":"103.82873438176",
        "y":"1.3066978379736"
    },
    {
        "x":"103.82873438176",
        "y":"1.3066978379736"
    },
    {
        "x":"103.82998390954",
        "y":"1.306029066674"
    },
    {
        "x":"103.82998390954",
        "y":"1.306029066674"
    },
    {
        "x":"103.8302086518",
        "y":"1.3058934914068"
    },
    {
        "x":"103.8302086518",
        "y":"1.3058934914068"
    },
    {
        "x":"103.83050530821",
        "y":"1.3057217682847"
    },
    {
        "x":"103.83050530821",
        "y":"1.3057217682847"
    },
    {
        "x":"103.8313862818",
        "y":"1.3052246850279"
    },
    {
        "x":"103.8313862818",
        "y":"1.3052246850279"
    },
    {
        "x":"103.83170989969",
        "y":"1.3050529742256"
    },
    {
        "x":"103.83170989969",
        "y":"1.3050529742256"
    },
    {
        "x":"103.83224925168",
        "y":"1.3047909103728"
    },
    {
        "x":"103.83224925168",
        "y":"1.3047909103728"
    },
    {
        "x":"103.83430782521",
        "y":"1.3036883344273"
    },
    {
        "x":"103.83430782521",
        "y":"1.3036883344273"
    },
    {
        "x":"103.8359888365",
        "y":"1.3028026690005"
    },
    {
        "x":"103.8359888365",
        "y":"1.3028026690005"
    },
    {
        "x":"103.83640234679",
        "y":"1.3025857718622"
    },
    {
        "x":"103.83640234679",
        "y":"1.3025857718622"
    },
    {
        "x":"103.83688779189",
        "y":"1.3022874994739"
    },
    {
        "x":"103.8375170444",
        "y":"1.301962157445"
    },
    {
        "x":"103.8375170444",
        "y":"1.301962157445"
    },
    {
        "x":"103.83776875202",
        "y":"1.3018175479192"
    },
    {
        "x":"103.83776875202",
        "y":"1.3018175479192"
    },
    {
        "x":"103.8378766273",
        "y":"1.3017542801934"
    },
    {
        "x":"103.83819124937",
        "y":"1.3016006543694"
    },
    {
        "x":"103.8384429404",
        "y":"1.3014922262892"
    },
    {
        "x":"103.83903620265",
        "y":"1.3012573208303"
    },
    {
        "x":"103.83993505428",
        "y":"1.3009682841507"
    },
    {
        "x":"103.83993505428",
        "y":"1.3009682841507"
    },
    {
        "x":"103.84009684857",
        "y":"1.3009140865983"
    },
    {
        "x":"103.84009684857",
        "y":"1.3009140865983"
    },
    {
        "x":"103.84036650572",
        "y":"1.3008237573071"
    },
    {
        "x":"103.84070807283",
        "y":"1.3007063250043"
    },
    {
        "x":"103.84070807283",
        "y":"1.3007063250043"
    },
    {
        "x":"103.84123839584",
        "y":"1.3005347074164"
    },
    {
        "x":"103.84123839584",
        "y":"1.3005347074164"
    },
    {
        "x":"103.84196645371",
        "y":"1.300326999321"
    },
    {
        "x":"103.84196645371",
        "y":"1.300326999321"
    },
    {
        "x":"103.84244284533",
        "y":"1.3001734472527"
    },
    {
        "x":"103.84300014236",
        "y":"1.2999747052954"
    },
    {
        "x":"103.84300014236",
        "y":"1.2999747052954"
    },
    {
        "x":"103.84352147413",
        "y":"1.299812128214"
    },
    {
        "x":"103.84352147413",
        "y":"1.299812128214"
    },
    {
        "x":"103.8447708763",
        "y":"1.299414705371"
    },
    {
        "x":"103.8447708763",
        "y":"1.299414705371"
    },
    {
        "x":"103.84581354409",
        "y":"1.2990805044726"
    }
],
"infos":{
    "journey":[
        {
            "title":"Claymore Road",
            "desc":"Starting from Claymore Road",
            "index":1,
            "direction_enum":"straight",
            "x":"103.82873438176",
            "y":"1.3066978379736",
            "unit":"90  m",
            "time":"6.48 sec",
            "time_cost":0.0018,
            "std_time":0.108,
            "std_distance":87.2066498,
            "mslink":"9283",
            "inExpressway":false,
            "vehicletype":"taxi"
        },
        {
            "title":"Orchard Road",
            "desc":"ERP Gantry 13 ahead: Orchard Road - ERP 13, Orchard Cordon.. Price 0.50",
            "index":2,
            "direction_enum":"straight",
            "x":"103.83260753745",
            "y":"1.3046682414927",
            "unit":"700  m",
            "time":"36 sec",
            "time_cost":0.01,
            "std_time":0.6,
            "std_distance":703.8838197,
            "mslink":"9071",
            "inExpressway":false,
            "vehicletype":"taxi"
        },
        {
            "title":"Orchard Road",
            "desc":"Turn right to Destination",
            "index":3,
            "direction_enum":"turn_right",
            "x":"103.84581354409",
            "y":"1.2990805044726",
            "unit":"1.38  km",
            "time":"1.18 min",
            "time_cost":0.019714285714286,
            "std_time":1.1828571428571,
            "std_distance":1383.1704062,
            "mslink":"7454",
            "inExpressway":false,
            "vehicletype":"taxi"
        }
    ],
    "taxi_time":{
        "total_length":"2.17 km",
        "time_cost":0.039392857142857,
        "total_time":"2 min"
    },
    "taxi_fare":[
        {
            "label":"Total Fare",
            "value":"4.20",
            "unit":"$"
        },
        {
            "label":"Metered Fare",
            "value":"1.40",
            "unit":"$"
        },
        {
            "label":"Flagdown Fare",
            "value":"2.80",
            "unit":"$"
        }
    ]
},
"erp_datas":[
    {
        "x":"103.83260753745",
        "y":"1.3046682414927",
        "name":"Orchard Road - ERP 13, Orchard Cordon",
        "no":"13",
        "lid":"3702",
        "price":"0.50"
    }
],
"start_end":[
    {
        "x":"103.82915135175699",
        "y":"1.307363769270172 ",
        "title":"Taxi Stand - Orchard Road at Orchard Towers",
        "desc":"Orchard Road. 238875",
        "postal":"238875",
        "aid":"314078",
        "pid":"54305"
    },
    {
        "x":" 103.84643694497719",
        "y":"1.2990493119206423",
        "title":"",
        "desc":"Orchard Road. 238832",
        "postal":"238832",
        "aid":"169653",
        "pid":"1"
    }
]
}

xml

<dataset>
    <routes>
        <route>
            <lines>
                <color/>
                <pts>
                    <pt>
                        <x>103.82908455493</x>
                        <y>1.3074035408555</y>
                    </pt>
                    <pt>
                        <x>103.82873438176</x>
                        <y>1.3066978379736</y>
                    </pt>
                    <pt>
                        <x>103.82873438176</x>
                        <y>1.3066978379736</y>
                    </pt>
                    <pt>
                        <x>103.82998390954</x>
                        <y>1.306029066674</y>
                    </pt>
                    <pt>
                        <x>103.82998390954</x>
                        <y>1.306029066674</y>
                    </pt>
                    <pt>
                        <x>103.8302086518</x>
                        <y>1.3058934914068</y>
                    </pt>
                    <pt>
                        <x>103.8302086518</x>
                        <y>1.3058934914068</y>
                    </pt>
                    <pt>
                        <x>103.83050530821</x>
                        <y>1.3057217682847</y>
                    </pt>
                    <pt>
                        <x>103.83050530821</x>
                        <y>1.3057217682847</y>
                    </pt>
                    <pt>
                        <x>103.8313862818</x>
                        <y>1.3052246850279</y>
                    </pt>
                    <pt>
                        <x>103.8313862818</x>
                        <y>1.3052246850279</y>
                    </pt>
                    <pt>
                        <x>103.83170989969</x>
                        <y>1.3050529742256</y>
                    </pt>
                    <pt>
                        <x>103.83170989969</x>
                        <y>1.3050529742256</y>
                    </pt>
                    <pt>
                        <x>103.83224925168</x>
                        <y>1.3047909103728</y>
                    </pt>
                    <pt>
                        <x>103.83224925168</x>
                        <y>1.3047909103728</y>
                    </pt>
                    <pt>
                        <x>103.83430782521</x>
                        <y>1.3036883344273</y>
                    </pt>
                    <pt>
                        <x>103.83430782521</x>
                        <y>1.3036883344273</y>
                    </pt>
                    <pt>
                        <x>103.8359888365</x>
                        <y>1.3028026690005</y>
                    </pt>
                    <pt>
                        <x>103.8359888365</x>
                        <y>1.3028026690005</y>
                    </pt>
                    <pt>
                        <x>103.83640234679</x>
                        <y>1.3025857718622</y>
                    </pt>
                    <pt>
                        <x>103.83640234679</x>
                        <y>1.3025857718622</y>
                    </pt>
                    <pt>
                        <x>103.83688779189</x>
                        <y>1.3022874994739</y>
                    </pt>
                    <pt>
                        <x>103.8375170444</x>
                        <y>1.301962157445</y>
                    </pt>
                    <pt>
                        <x>103.8375170444</x>
                        <y>1.301962157445</y>
                    </pt>
                    <pt>
                        <x>103.83776875202</x>
                        <y>1.3018175479192</y>
                    </pt>
                    <pt>
                        <x>103.83776875202</x>
                        <y>1.3018175479192</y>
                    </pt>
                    <pt>
                        <x>103.8378766273</x>
                        <y>1.3017542801934</y>
                    </pt>
                    <pt>
                        <x>103.83819124937</x>
                        <y>1.3016006543694</y>
                    </pt>
                    <pt>
                        <x>103.8384429404</x>
                        <y>1.3014922262892</y>
                    </pt>
                    <pt>
                        <x>103.83903620265</x>
                        <y>1.3012573208303</y>
                    </pt>
                    <pt>
                        <x>103.83993505428</x>
                        <y>1.3009682841507</y>
                    </pt>
                    <pt>
                        <x>103.83993505428</x>
                        <y>1.3009682841507</y>
                    </pt>
                    <pt>
                        <x>103.84009684857</x>
                        <y>1.3009140865983</y>
                    </pt>
                    <pt>
                        <x>103.84009684857</x>
                        <y>1.3009140865983</y>
                    </pt>
                    <pt>
                        <x>103.84036650572</x>
                        <y>1.3008237573071</y>
                    </pt>
                    <pt>
                        <x>103.84070807283</x>
                        <y>1.3007063250043</y>
                    </pt>
                    <pt>
                        <x>103.84070807283</x>
                        <y>1.3007063250043</y>
                    </pt>
                    <pt>
                        <x>103.84123839584</x>
                        <y>1.3005347074164</y>
                    </pt>
                    <pt>
                        <x>103.84123839584</x>
                        <y>1.3005347074164</y>
                    </pt>
                    <pt>
                        <x>103.84196645371</x>
                        <y>1.300326999321</y>
                    </pt>
                    <pt>
                        <x>103.84196645371</x>
                        <y>1.300326999321</y>
                    </pt>
                    <pt>
                        <x>103.84244284533</x>
                        <y>1.3001734472527</y>
                    </pt>
                    <pt>
                        <x>103.84300014236</x>
                        <y>1.2999747052954</y>
                    </pt>
                    <pt>
                        <x>103.84300014236</x>
                        <y>1.2999747052954</y>
                    </pt>
                    <pt>
                        <x>103.84352147413</x>
                        <y>1.299812128214</y>
                    </pt>
                    <pt>
                        <x>103.84352147413</x>
                        <y>1.299812128214</y>
                    </pt>
                    <pt>
                        <x>103.8447708763</x>
                        <y>1.299414705371</y>
                    </pt>
                    <pt>
                        <x>103.8447708763</x>
                        <y>1.299414705371</y>
                    </pt>
                    <pt>
                        <x>103.84581354409</x>
                        <y>1.2990805044726</y>
                    </pt>
                </pts>
            </lines>
        </route>
    </routes>
    <start_end>
        <sub>
            <x>103.82915135175699</x>
            <y>1.307363769270172 </y>
            <title>Taxi Stand - Orchard Road at Orchard Towers</title>
            <desc>Orchard Road. 238875</desc>
            <postal>238875</postal>
            <aid>314078</aid>
            <pid>54305</pid>
        </sub>
        <sub>
            <x> 103.84643694497719</x>
            <y>1.2990493119206423</y>
            <title/>
            <desc>Orchard Road. 238832</desc>
            <postal>238832</postal>
            <aid>169653</aid>
            <pid>1</pid>
        </sub>
    </start_end>
    <infos>
        <journey>
            <datas>
                <data>
                    <title>Claymore Road</title>
                    <desc>Starting from Claymore Road</desc>
                    <index>1</index>
                    <direction_enum>straight</direction_enum>
                    <x>103.82873438176</x>
                    <y>1.3066978379736</y>
                    <unit>90  m</unit>
                    <time>6.48 sec</time>
                    <time_cost>0.0018</time_cost>
                    <std_time>0.108</std_time>
                    <std_distance>87.2066498</std_distance>
                    <mslink>9283</mslink>
                    <inExpressway/>
                    <vehicletype>taxi</vehicletype>
                </data>
                <data>
                    <title>Orchard Road</title>
                    <desc>ERP Gantry 13 ahead: Orchard Road - ERP 13, Orchard Cordon.. Price 0.50</desc>
                    <index>2</index>
                    <direction_enum>straight</direction_enum>
                    <x>103.83260753745</x>
                    <y>1.3046682414927</y>
                    <unit>700  m</unit>
                    <time>36 sec</time>
                    <time_cost>0.01</time_cost>
                    <std_time>0.6</std_time>
                    <std_distance>703.8838197</std_distance>
                    <mslink>9071</mslink>
                    <inExpressway/>
                    <vehicletype>taxi</vehicletype>
                </data>
                <data>
                    <title>Orchard Road</title>
                    <desc>Turn right to Destination</desc>
                    <index>3</index>
                    <direction_enum>turn_right</direction_enum>
                    <x>103.84581354409</x>
                    <y>1.2990805044726</y>
                    <unit>1.38  km</unit>
                    <time>1.18 min</time>
                    <time_cost>0.019714285714286</time_cost>
                    <std_time>1.1828571428571</std_time>
                    <std_distance>1383.1704062</std_distance>
                    <mslink>7454</mslink>
                    <inExpressway/>
                    <vehicletype>taxi</vehicletype>
                </data>
            </datas>
        </journey>
        <taxi_time>
            <total_length>2.17 km</total_length>
            <time_cost>0.039392857142857</time_cost>
            <total_time>2 min</total_time>
        </taxi_time>
        <taxi_fare>
            <fare>
                <label>Total Fare</label>
                <value>4.20</value>
                <unit>$</unit>
            </fare>
            <fare>
                <label>Metered Fare</label>
                <value>1.40</value>
                <unit>$</unit>
            </fare>
            <fare>
                <label>Flagdown Fare</label>
                <value>2.80</value>
                <unit>$</unit>
            </fare>
        </taxi_fare>
    </infos>
    <erp_datas>
        <erp_data>
            <erp>
                <x>103.83260753745</x>
                <y>1.3046682414927</y>
                <name>Orchard Road - ERP 13, Orchard Cordon</name>
                <no>13</no>
                <lid>3702</lid>
                <price>0.50</price>
            </erp>
        </erp_data>
    </erp_datas>
</dataset>

Response: (methods = bustrain)

Attributes Description
routes (for js & json result only) Route list
route  
x Position - longitude
y Position – latitude
routes (for xml result) | colored_routes (for js & json result) Route list
route  
lines Line list
color Color code in hexadecimal
pts Point list
pt  
x Position - longitude
y Position – latitude
start_end Start and end position
sub  
x Position - longitude
y Position – latitude
title Title
desc Description
postal Postal code
aid Address ID
pid Place ID
infos Info list
journey  
datas  
data  
title Title
service_name Service name
distance Distance
destination Destination
available Available or not
time Time
unit Distance in km
std_time Time
std_distance Distance
fares Price
first Name
desc Description
vehicletype Vehicle type
x Position – longitude
y Position – latitude
index Current info index
roads  
road  
total_length Total distance
time_cost Total time in float
total_time Total time in second
total_fare Total fare

js

set_data({
"routes":[
    [
        {
            "x":103.831899,
            "y":1.30371868
        },
        {
            "x":103.83361,
            "y":1.30264851
        },
        {
            "x":103.835366,
            "y":1.30162328
        },
        {
            "x":103.837445,
            "y":1.3002387
        },
        {
            "x":103.838254,
            "y":1.29996214
        },
        {
            "x":103.838254,
            "y":1.29996214
        },
        {
            "x":103.839445,
            "y":1.29968709
        },
        {
            "x":103.841597,
            "y":1.29946008
        },
        {
            "x":103.844866,
            "y":1.29902532
        },
        {
            "x":103.845266,
            "y":1.29889124
        }
    ]
],
"colored_routes":[
    [
        {
            "lines":[
                {
                    "x":103.831899,
                    "y":1.30371868
                },
                {
                    "x":103.83361,
                    "y":1.30264851
                },
                {
                    "x":103.835366,
                    "y":1.30162328
                },
                {
                    "x":103.837445,
                    "y":1.3002387
                },
                {
                    "x":103.838254,
                    "y":1.29996214
                },
                {
                    "x":103.838254,
                    "y":1.29996214
                },
                {
                    "x":103.839445,
                    "y":1.29968709
                },
                {
                    "x":103.841597,
                    "y":1.29946008
                },
                {
                    "x":103.844866,
                    "y":1.29902532
                },
                {
                    "x":103.845266,
                    "y":1.29889124
                }
            ],
            "color":"#E74C4C"
        }
    ]
],
"infos":[
    [
        {
            "title":"Walk 502.86 m",
            "distance":"502.86",
            "std_time":"7.54",
            "std_distance":"502.86",
            "first":"",
            "desc":"Walk towards Orchard (NS22).",
            "vehicletype":"walking",
            "index":1
        },
        {
            "title":"North South Line at Orchard (NS22)",
            "service_name":"NS",
            "distance":"1613.09",
            "destination":"Marina Bay",
            "available":false,
            "time":"3.20 min",
            "unit":"1.61  km",
            "std_time":"3.20",
            "std_distance":"1613.09",
            "fares":"71",
            "first":"Orchard (NS22) to Dhobby Ghaut (NS24 \/ NE6 \/ CC1)",
            "desc":"Board the train towards Marina Bay, 2 stops later alight at Dhobby Ghaut (NS24 \/ NE6 \/ CC1).",
            "vehicletype":"train",
            "x":103.831899,
            "y":1.30371868,
            "index":2
        },
        {
            "title":"Walk 114.40 m",
            "distance":"114.40",
            "std_time":"1.72",
            "std_distance":"114.40",
            "first":"",
            "desc":"Walk to End.",
            "vehicletype":"walking",
            "x":103.845266,
            "y":1.29889124,
            "index":3
        }
    ]
],
"total_data":{
    "total_length":"2 km",
    "time_cost":12.46,
    "total_time":"12 min",
    "total_fare":"0.70"
},
"start_end":[
    {
        "x":"103.82915135175699",
        "y":"1.307363769270172 ",
        "title":"Taxi Stand - Orchard Road at Orchard Towers",
        "desc":"Orchard Road. 238875",
        "postal":"238875",
        "aid":"314078",
        "pid":"54305"
    },
    {
        "x":" 103.84643694497719",
        "y":"1.2990493119206423",
        "title":"",
        "desc":"Orchard Road. 238832",
        "postal":"238832",
        "aid":"169653",
        "pid":"1"
    }
]
});

json

{
"routes":[
    [
        {
            "x":103.831899,
            "y":1.30371868
        },
        {
            "x":103.83361,
            "y":1.30264851
        },
        {
            "x":103.835366,
            "y":1.30162328
        },
        {
            "x":103.837445,
            "y":1.3002387
        },
        {
            "x":103.838254,
            "y":1.29996214
        },
        {
            "x":103.838254,
            "y":1.29996214
        },
        {
            "x":103.839445,
            "y":1.29968709
        },
        {
            "x":103.841597,
            "y":1.29946008
        },
        {
            "x":103.844866,
            "y":1.29902532
        },
        {
            "x":103.845266,
            "y":1.29889124
        }
    ]
],
"colored_routes":[
    [
        {
            "lines":[
                {
                    "x":103.831899,
                    "y":1.30371868
                },
                {
                    "x":103.83361,
                    "y":1.30264851
                },
                {
                    "x":103.835366,
                    "y":1.30162328
                },
                {
                    "x":103.837445,
                    "y":1.3002387
                },
                {
                    "x":103.838254,
                    "y":1.29996214
                },
                {
                    "x":103.838254,
                    "y":1.29996214
                },
                {
                    "x":103.839445,
                    "y":1.29968709
                },
                {
                    "x":103.841597,
                    "y":1.29946008
                },
                {
                    "x":103.844866,
                    "y":1.29902532
                },
                {
                    "x":103.845266,
                    "y":1.29889124
                }
            ],
            "color":"#E74C4C"
        }
    ]
],
"infos":[
    [
        {
            "title":"Walk 502.86 m",
            "distance":"502.86",
            "std_time":"7.54",
            "std_distance":"502.86",
            "first":"",
            "desc":"Walk towards Orchard (NS22).",
            "vehicletype":"walking",
            "index":1
        },
        {
            "title":"North South Line at Orchard (NS22)",
            "service_name":"NS",
            "distance":"1613.09",
            "destination":"Marina Bay",
            "available":false,
            "time":"3.20 min",
            "unit":"1.61  km",
            "std_time":"3.20",
            "std_distance":"1613.09",
            "fares":"71",
            "first":"Orchard (NS22) to Dhobby Ghaut (NS24 \/ NE6 \/ CC1)",
            "desc":"Board the train towards Marina Bay, 2 stops later alight at Dhobby Ghaut (NS24 \/ NE6 \/ CC1).",
            "vehicletype":"train",
            "x":103.831899,
            "y":1.30371868,
            "index":2
        },
        {
            "title":"Walk 114.40 m",
            "distance":"114.40",
            "std_time":"1.72",
            "std_distance":"114.40",
            "first":"",
            "desc":"Walk to End.",
            "vehicletype":"walking",
            "x":103.845266,
            "y":1.29889124,
            "index":3
        }
    ]
],
"total_data":{
    "total_length":"2 km",
    "time_cost":12.46,
    "total_time":"12 min",
    "total_fare":"0.70"
},
"start_end":[
    {
        "x":"103.82915135175699",
        "y":"1.307363769270172 ",
        "title":"Taxi Stand - Orchard Road at Orchard Towers",
        "desc":"Orchard Road. 238875",
        "postal":"238875",
        "aid":"314078",
        "pid":"54305"
    },
    {
        "x":" 103.84643694497719",
        "y":"1.2990493119206423",
        "title":"",
        "desc":"Orchard Road. 238832",
        "postal":"238832",
        "aid":"169653",
        "pid":"1"
    }
]
}

xml

<dataset>
    <routes>
        <route>
            <lines>
                <color>#E74C4C</color>
                <pts>
                    <pt>
                        <x>103.831899</x>
                        <y>1.30371868</y>
                    </pt>
                    <pt>
                        <x>103.83361</x>
                        <y>1.30264851</y>
                    </pt>
                    <pt>
                        <x>103.835366</x>
                        <y>1.30162328</y>
                    </pt>
                    <pt>
                        <x>103.837445</x>
                        <y>1.3002387</y>
                    </pt>
                    <pt>
                        <x>103.838254</x>
                        <y>1.29996214</y>
                    </pt>
                    <pt>
                        <x>103.838254</x>
                        <y>1.29996214</y>
                    </pt>
                    <pt>
                        <x>103.839445</x>
                        <y>1.29968709</y>
                    </pt>
                    <pt>
                        <x>103.841597</x>
                        <y>1.29946008</y>
                    </pt>
                    <pt>
                        <x>103.844866</x>
                        <y>1.29902532</y>
                    </pt>
                    <pt>
                        <x>103.845266</x>
                        <y>1.29889124</y>
                    </pt>
                </pts>
            </lines>
        </route>
    </routes>
    <start_end>
        <sub>
            <x>103.82915135175699</x>
            <y>1.307363769270172 </y>
            <title>Taxi Stand - Orchard Road at Orchard Towers</title>
            <desc>Orchard Road. 238875</desc>
            <postal>238875</postal>
            <aid>314078</aid>
            <pid>54305</pid>
        </sub>
        <sub>
            <x>103.84643694497719</x>
            <y>1.2990493119206423</y>
            <title/>
            <desc>Orchard Road. 238832</desc>
            <postal>238832</postal>
            <aid>169653</aid>
            <pid>1</pid>
        </sub>
    </start_end>
    <infos>
        <journey>
            <datas>
                <data>
                    <title>Walk 502.86 m</title>
                    <distance>502.86</distance>
                    <std_time>7.54</std_time>
                    <std_distance>502.86</std_distance>
                    <first/>
                    <desc>Walk towards Orchard (NS22).</desc>
                    <vehicletype>walking</vehicletype>
                    <index>1</index>
                </data>
                <data>
                    <title>North South Line at Orchard (NS22)</title>
                    <service_name>NS</service_name>
                    <distance>1613.09</distance>
                    <destination>Marina Bay</destination>
                    <available/>
                    <time>3.20 min</time>
                    <unit>1.61  km</unit>
                    <std_time>3.20</std_time>
                    <std_distance>1613.09</std_distance>
                    <fares>71</fares>
                    <first>Orchard (NS22) to Dhobby Ghaut (NS24 / NE6 / CC1)</first>
                    <desc>Board the train towards Marina Bay, 2 stops later alight at Dhobby Ghaut (NS24 / NE6 / CC1).</desc>
                    <vehicletype>train</vehicletype>
                    <x>103.831899</x>
                    <y>1.30371868</y>
                    <index>2</index>
                </data>
                <data>
                    <title>Walk 114.40 m</title>
                    <distance>114.40</distance>
                    <std_time>1.72</std_time>
                    <std_distance>114.40</std_distance>
                    <first/>
                    <desc>Walk to End.</desc>
                    <vehicletype>walking</vehicletype>
                    <x>103.845266</x>
                    <y>1.29889124</y>
                    <index>3</index>
                </data>
            </datas>
        </journey>
        <roads>
            <road>
                <total_length>2 km</total_length>
                <time_cost>12.46</time_cost>
                <total_time>12 min</total_time>
                <total_fare>0.70</total_fare>
            </road>
        </roads>
    </infos>
</dataset>

Response: (methods = all)

Attributes Description
driving  
routes Route list
route  
lines Line list
color Color code in hexadecimal
pts Point list
pt  
x Position - longitude
y Position – latitude
infos Info list
journey  
datas  
data  
title Title
desc Description
index Current info index
direction_enum Direction
x Position - longitude
y Position – latitude
unit Distance
time Time in string
time_cost Time in float
std_time Time
std_distance Distance
mslink Link ID (for country = sg)
inExpressway 1 = true, empty = false
total_data Total data
total_length Total distance
time_cost Total time in float
total_time Total time in second
carparks Carpark list
carpark  
dx Distance x in meter
dy Distance y in meter
id Carpark id
location Location
address Address
weekday_am Weekday AM carpark rate
weekday_pm Weekday PM carpark rate
saturday Saturday carpark rate
sunday_holiday Sunday/holiday carpark rate
remarks Remarks
source_provider Source Provider
place_name Place name
street_name Street name
longitude Position – longitude
latitude Position – latitude
distance Distance
erp_datas Erp data
erp_data  
erp  
x Position - longitude
y Position – latitude
name Erp name
no Erp number
lid Link ID
price Price
taxi  
routes Route list
route  
lines Line list
color Color code in hexadecimal
pts Point list
pt  
x Position - longitude
y Position – latitude
infos Info list
journey  
datas  
data  
title Title
desc Description
index Current info index
direction_enum Direction
x Position - longitude
y Position – latitude
unit Distance
time Time in string
time_cost Time in float
std_time Time
std_distance Distance
mslink Link ID (for country = sg)
inExpressway 1 = true, empty = false
vehicletype Vehicle type
taxi_time Total data
total_length Total distance
time_cost Total time in float
total_time Total time in second
taxi_fare Total fare
fare  
label Label name
value Price
unit Currency
erp_datas Erp data
erp_data  
erp  
x Position - longitude
y Position – latitude
name Erp name
no Erp number
lid Link ID
price Price
bus  
routes Route list
route  
lines Line list
color Color code in hexadecimal
pts Point list
pt  
x Position - longitude
y Position – latitude
infos Info list
journey  
datas  
data  
title Title
service_name Service name
distance Distance
destination Destination
available Available or not
time Time
unit Distance in km
std_time Time
std_distance Distance
fares Price
first Name
desc Description
vehicletype Vehicle type
x Position – longitude
y Position – latitude
index Current info index
total_data  
total_length Total distance
time_cost Total time in float
total_time Total time in second
total_fare Total fare
bustrain  
routes Route list
route  
lines Line list
color Color code in hexadecimal
pts Point list
pt  
x Position - longitude
y Position – latitude
infos Info list
journey  
datas  
data  
title Title
service_name Service name
distance Distance
destination Destination
available Available or not
time Time
unit Distance in km
std_time Time
std_distance Distance
fares Price
first Name
desc Description
vehicletype Vehicle type
x Position – longitude
y Position – latitude
index Current info index
total_data  
total_length Total distance
time_cost Total time in float
total_time Total time in second
total_fare Total fare
start_end Start and end position
sub  
x Position - longitude
y Position – latitude
title Title
desc Description
postal Postal code
aid Address ID
pid Place ID

js

set_data({
"driving":{
    (*see response in driving method)
},
"taxi":{
    (*see response in taxi method)
},
"bus":{
    (*see response in bustrain method)
},
"bustrain":{
    (*see response in bustrain method)
},
"start_end":[
    {
        "x":"103.82915135175699",
        "y":"1.307363769270172",
        "title":"Taxi Stand - Orchard Road at Orchard Towers",
        "desc":"Orchard Road. 238875",
        "postal":"238875",
        "aid":"314078",
        "pid":"54305"
    },
    {
        "x":"103.84643694497719",
        "y":"1.2990493119206423",
        "title":"",
        "desc":"Orchard Road. 238832",
        "postal":"238832",
        "aid":"169653",
        "pid":"1"
    }
]
});

json

{
"driving":{
    (*see response in driving method)
},
"taxi":{
    (*see response in taxi method)
},
"bus":{
    (*see response in bustrain method)
},
"bustrain":{
    (*see response in bustrain method)
},
"start_end":[
    {
        "x":"103.82915135175699",
        "y":"1.307363769270172",
        "title":"Taxi Stand - Orchard Road at Orchard Towers",
        "desc":"Orchard Road. 238875",
        "postal":"238875",
        "aid":"314078",
        "pid":"54305"
    },
    {
        "x":"103.84643694497719",
        "y":"1.2990493119206423",
        "title":"",
        "desc":"Orchard Road. 238832",
        "postal":"238832",
        "aid":"169653",
        "pid":"1"
    }
]
}

xml

<dataset>
    <driving>
        (*see response in driving method)
    </driving>
    <taxi>
        (*see response in taxi method)
    </taxi>
    <bus>
        (*see response in bustrain method)
    </bus>
    <bustrain>
        (*see response in bustrain method)
    </bustrain>
    <start_end>
        <sub>
            <x>103.82915135175699</x>
            <y>1.307363769270172 </y>
            <title>Taxi Stand - Orchard Road at Orchard Towers</title>
            <desc>Orchard Road. 238875</desc>
            <postal>238875</postal>
            <aid>314078</aid>
            <pid>54305</pid>
        </sub>
        <sub>
            <x> 103.84643694497719</x>
            <y>1.2990493119206423</y>
            <title/>
            <desc>Orchard Road. 238832</desc>
            <postal>238832</postal>
            <aid>169653</aid>
            <pid>1</pid>
        </sub>
    </start_end>
</dataset>