Tips

1. Nearby

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

Parameters Description
mode tips  
act nearby  
output return type (js, json, xml)  
x current position - longitude  
y current position - latitude  
dist radius (in km) optional (default is 1)
start start index optional (default is 0)
limit total result returned optional (default is 20)
country country (sg, id, my) optional (default is sg)

Request example :

http://www.streetdirectory.com/api/?mode=tips&act=nearby&output=xml&x=103.83050972046&y=1.304787132947&dist=1&start=0&limit=2&country=sg

Response :

Attributes Description
total total nearby tips found
id data ID
uid user ID
tx comment
tm timestamp
t type
tot total
d distance from specified xy coordinate specified in the request parameter
cid company ID
a address text
x current position - longitude
y current position - latitude
tel phone number
pn place name
biz total business
lid link ID
img image url
nm user name
tm_org datetime created tip

js

set_Data([
    {
        "total":2
    },
    {
        "id":"4212_11259",
        "uid":"830083712",
        "tx":"chicken chop in here is delicious and the price is not expensive for a big chicken chop :D",
        "tm":"one week ago",
        "t":"1",
        "tot":"1",
        "d":"3,169",
        "a":"6 Jalan Bukit Merah 150006",
        "lid":"172934",
        "x":"103.80817786330",
        "y":"1.2870164221101",
        "cat":"50",
        "pn":"ABC Brickworks Food Centre",
        "biz":"2",
        "img":"http:\/\/profile.ak.fbcdn.net\/hprofile-ak-snc4\/hs1319.snc4\/161100_830083712_387478_q.jpg",
        "nm":"Darwin Kesuma",
        "tm_org":"21 Dec 2010 20:36:53"
    },
    {
        "id":"126039_18880",
        "uid":"622649790",
        "tx":"Good Facility",
        "tm":"4 weeks ago",
        "t":"2",
        "tot":"1",
        "d":"2,172",
        "cid":"126039",
        "a":"275 Outram Road 169064",
        "x":"103.83458849466",
        "y":"1.2855838554586",
        "tel":"63271533",
        "pn":"Asta Spa Pte Ltd",
        "lid":"18880",
        "img":"http:\/\/profile.ak.fbcdn.net\/hprofile-ak-snc4\/hs304.ash1\/23135_622649790_4714_q.jpg",
        "nm":"Oo Rosdiyanto",
        "tm_org":"3 Dec 2010 16:05:54"
    }
]);

json

[
    {
        "total":2
    },
    {
        "id":"4212_11259",
        "uid":"830083712",
        "tx":"chicken chop in here is delicious and the price is not expensive for a big chicken chop :D",
        "tm":"one week ago",
        "t":"1",
        "tot":"1",
        "d":"3,169",
        "a":"6 Jalan Bukit Merah 150006",
        "lid":"172934",
        "x":"103.80817786330",
        "y":"1.2870164221101",
        "cat":"50",
        "pn":"ABC Brickworks Food Centre",
        "biz":"2",
        "img":"http:\/\/profile.ak.fbcdn.net\/hprofile-ak-snc4\/hs1319.snc4\/161100_830083712_387478_q.jpg",
        "nm":"Darwin Kesuma",
        "tm_org":"21 Dec 2010 20:36:53"
    },
    {
        "id":"126039_18880",
        "uid":"622649790",
        "tx":"Good Facility",
        "tm":"4 weeks ago",
        "t":"2",
        "tot":"1",
        "d":"2,172",
        "cid":"126039",
        "a":"275 Outram Road 169064",
        "x":"103.83458849466",
        "y":"1.2855838554586",
        "tel":"63271533",
        "pn":"Asta Spa Pte Ltd",
        "lid":"18880",
        "img":"http:\/\/profile.ak.fbcdn.net\/hprofile-ak-snc4\/hs304.ash1\/23135_622649790_4714_q.jpg",
        "nm":"Oo Rosdiyanto",
        "tm_org":"3 Dec 2010 16:05:54"
    }
]

xml

<dataset total="2">    
    <data>
        <id>4212_11259</id>
        <uid>830083712</uid>        
        <tx>        
            chicken chop in here is delicious and the price is not expensive for a big chicken chop :D
        </tx>
        <tm>one week ago</tm>
        <t>1</t>
        <tot>1</tot>
        <d>3,169</d>        
        <a>6 Jalan Bukit Merah 150006</a>
        <lid>172934</lid>
        <x>103.80817786330</x>
        <y>1.2870164221101</y>
        <cat>50</cat>        
        <pn>ABC Brickworks Food Centre</pn>
        <biz>2</biz>        
        <img>
            http://profile.ak.fbcdn.net/hprofileaksnc4/hs1319.snc4/161100_830083712_387478_q.jpg
        </img>
        <nm>Darwin Kesuma</nm>        
        <tm_org>21 Dec 2010 20:36:53</tm_org>
    </data>    
    <data>
        <id>126039_18880</id>
        <uid>622649790</uid>        
        <tx>Good Facility</tx>
        <tm>4 weeks ago</tm>
        <t>2</t>
        <tot>1</tot>
        <d>2,172</d>        
        <cid>126039</cid>
        <a>275 Outram Road 169064</a>
        <x>103.83458849466</x>
        <y>1.2855838554586</y>
        <tel>63271533</tel>        
        <pn>Asta Spa Pte Ltd</pn>
        <lid>18880</lid>        
        <img>
            http://profile.ak.fbcdn.net/hprofileaksnc4/hs304.ash1/23135_622649790_4714_q.jpg
        </img>
        <nm>Oo Rosdiyanto</nm>        
        <tm_org>3 Dec 2010 16:05:54</tm_org>
    </data>
</dataset>

2. Tips By Location

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

Parameters Description
mode tips  
act location  
output return type (js, json, xml)  
country country (sg, id, my) optional (default is sg)
start start index optional (default is 0)
limit total result returned optional (default is 20)
data_id data ID  
type type  

Request example :

http://www.streetdirectory.com/api/?mode=tips&act=location&output=xml&country=sg&start=0&limit=2&data_id=9797_22985&type=1

Response :

Attributes Description
total total tips return
nm user name
img image url
text comment
time date time comment created

js

set_Data([
    {
        "total":2
    },
    {
        "nm":"Jasie Tandiama",
        "img":"http:\/\/profile.ak.fbcdn.net\/hprofile-ak-snc4\/hs451.snc4\/49549_1162735255_3129667_q.jpg",
        "text":null,
        "time":"2010-11-03 12:39:58"
    },
    {
        "nm":"Huang Huiyi",
        "img":"http:\/\/profile.ak.fbcdn.net\/hprofile-ak-snc4\/hs225.ash2\/49061_1406287938_788_q.jpg",
        "text":"The mall has an underpass to Shaw House and ION Orchard.  Like shopping at Marks and Spencer & some reading at Borders.",
        "time":"2010-11-02 21:18:46"
    }
]);

json

[
    {
        "total":2
    },
    {
        "nm":"Jasie Tandiama",
        "img":"http:\/\/profile.ak.fbcdn.net\/hprofile-ak-snc4\/hs451.snc4\/49549_1162735255_3129667_q.jpg",
        "text":null,
        "time":"2010-11-03 12:39:58"
    },
    {
        "nm":"Huang Huiyi",
        "img":"http:\/\/profile.ak.fbcdn.net\/hprofile-ak-snc4\/hs225.ash2\/49061_1406287938_788_q.jpg",
        "text":"The mall has an underpass to Shaw House and ION Orchard.  Like shopping at Marks and Spencer & some reading at Borders.",
        "time":"2010-11-02 21:18:46"
    }
]

xml

<dataset total="2">
    <data>
        <nm>Jasie Tandiama</nm>
        <img>
            http://profile.ak.fbcdn.net/hprofileaksnc4/hs451.snc4/49549_1162735255_3129667_q.jpg
        </img>
        <text>
            Wheelock Place is a midsized shopping mall with some international brand names like Marks & Spencer with its range of quality clothes and food occupies two floors of this building. There are also a few international and local restaurants and caf offerings, The second biggest US bookstore chain, Borders, stocks a wide range of books at the ground level, is popular amongst book enthusiasts.
        </text>
        <time>20101103 12:39:58</time>
    </data>
    <data>
        <nm>Huang Huiyi</nm>
        <img>
            http://profile.ak.fbcdn.net/hprofileaksnc4/hs225.ash2/49061_1406287938_788_q.jpg
        </img>
        <text>
            The mall has an underpass to Shaw House and ION Orchard.  Like shopping at Marks and Spencer & some reading at Borders.
        </text>
        <time>20101102 21:18:46</time>
    </data>
</dataset>

3. Tips By Latest

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

Parameters Description
mode tips  
act latest  
output return type (js, json, xml)  
country country (sg, id, my) optional (default is sg)
start start index optional (default is 0)
limit total result returned optional (default is 20)

Request example :

http://www.streetdirectory.com/api/?mode=tips&act=latest&output=xml&country=sg&start=0&limit=2

Response :

Attributes Description
total total latest tips found
nm user name
img image url
url user profile url
dtid data id
t type
tx comment
tm date time comment created
tm_st timestamp
ad address text
lid link id
x current position - longitude
y current position - latitude
cat category id
biz company ID

js

set_Data([
    {
        "total":500
    },
    {
        "nm":"Darwin Kesuma",
        "img":"http:\/\/profile.ak.fbcdn.net\/hprofile-ak-snc4\/hs1319.snc4\/161100_830083712_387478_q.jpg",
        "url":"http:\/\/www.streetdirectory.com\/user\/darwin-kesuma\/830083712\/",
        "dtid":"4212_11259",
        "t":"1",
        "tx":"chicken chop in here is delicious and the price is not expensive for a big chicken chop :D",
        "tm":"21 Dec 2010 20:36:53",
        "tm_st":"one week ago",
        "ad":"6 Jalan Bukit Merah (s)150006",
        "pn":"ABC Brickworks Food Centre",
        "lid":"172934",
        "x":"103.80817786330",
        "y":"1.2870164221101",
        "cat":"50",
        "biz":"2"
    },
    {
        "nm":"Oo Rosdiyanto",
        "img":"http:\/\/profile.ak.fbcdn.net\/hprofile-ak-snc4\/hs304.ash1\/23135_622649790_4714_q.jpg",
        "url":"http:\/\/www.streetdirectory.com\/user\/oo-rosdiyanto\/622649790\/",
        "dtid":"126039_18880",
        "t":"2",
        "tx":"Good Facility",
        "tm":"3 Dec 2010 16:05:54",
        "tm_st":"4 weeks ago",
        "ad":"",
        "pn":"Asta Spa Pte Ltd",
        "lid":"172934",
        "x":"103.80817786330",
        "y":"1.2870164221101",
        "cat":"50",
        "biz":"2"
    }
]);

json

[
    {
        "total":500
    },
    {
        "nm":"Darwin Kesuma",
        "img":"http:\/\/profile.ak.fbcdn.net\/hprofile-ak-snc4\/hs1319.snc4\/161100_830083712_387478_q.jpg",
        "url":"http:\/\/www.streetdirectory.com\/user\/darwin-kesuma\/830083712\/",
        "dtid":"4212_11259",
        "t":"1",
        "tx":"chicken chop in here is delicious and the price is not expensive for a big chicken chop :D",
        "tm":"21 Dec 2010 20:36:53",
        "tm_st":"one week ago",
        "ad":"6 Jalan Bukit Merah (s)150006",
        "pn":"ABC Brickworks Food Centre",
        "lid":"172934",
        "x":"103.80817786330",
        "y":"1.2870164221101",
        "cat":"50",
        "biz":"2"
    },
    {
        "nm":"Oo Rosdiyanto",
        "img":"http:\/\/profile.ak.fbcdn.net\/hprofile-ak-snc4\/hs304.ash1\/23135_622649790_4714_q.jpg",
        "url":"http:\/\/www.streetdirectory.com\/user\/oo-rosdiyanto\/622649790\/",
        "dtid":"126039_18880",
        "t":"2",
        "tx":"Good Facility",
        "tm":"3 Dec 2010 16:05:54",
        "tm_st":"4 weeks ago",
        "ad":"",
        "pn":"Asta Spa Pte Ltd",
        "lid":"172934",
        "x":"103.80817786330",
        "y":"1.2870164221101",
        "cat":"50",
        "biz":"2"
    }
]

xml

<dataset total="500">
    <data>
        <nm>Darwin Kesuma</nm>
        <img>
            http://profile.ak.fbcdn.net/hprofileaksnc4/hs1319.snc4/161100_830083712_387478_q.jpg
        </img>
        <url>
            http://www.streetdirectory.com/user/darwinkesuma/830083712/
        </url>
        <dtid>4212_11259</dtid>
        <t>1</t>
        <tx>
            chicken chop in here is delicious and the price is not expensive for a big chicken chop :D
        </tx>
        <tm>21 Dec 2010 20:36:53</tm>
        <tm_st>one week ago</tm_st>
        <ad>6 Jalan Bukit Merah (s)150006</ad>
        <pn>ABC Brickworks Food Centre</pn>
        <lid>172934</lid>
        <x>103.80817786330</x>
        <y>1.2870164221101</y>
        <cat>50</cat>
        <biz>2</biz>
    </data>
    <data>
        <nm>Oo Rosdiyanto</nm>
        <img>
            http://profile.ak.fbcdn.net/hprofileaksnc4/hs304.ash1/23135_622649790_4714_q.jpg
        </img>
        <url>
            http://www.streetdirectory.com/user/oorosdiyanto/622649790/
        </url>
        <dtid>126039_18880</dtid>
        <t>2</t>
        <tx>Good Facility</tx>
        <tm>3 Dec 2010 16:05:54</tm>
        <tm_st>4 weeks ago</tm_st>
        <ad/>
        <pn>Asta Spa Pte Ltd</pn>
        <lid>172934</lid>
        <x>103.80817786330</x>
        <y>1.2870164221101</y>
        <cat>50</cat>
        <biz>2</biz>
    </data>
</dataset>