API

LocationBox API

POI Brand List

POI Brand List Service gives brands list based on criterias which you can find below.

A Brand List request must look like this:

http://www.locationbox.com.tr/locationbox/services?Key=key&Cmd=BrandList&Typ=output_format


Request Parameters


Key: LocationBox user key. (Register for user key)
Cmd: LocationBox service name. (BrandList)
Typ: Response format. (XML or JSON)

Response Parameters
XML Response

Brand List response returns in XML format when the Typ parameter is set as "XML".

http://www.locationbox.com.tr/locationbox/services?Key=key&Cmd=BrandList&Typ=XML

The response will be as following:

<response>
<transactionid>LBS_26568</transactionid>
<status>0</status>
<errno />
<errdesc />
<brands>
<brand>
<name>DOMINOSPIZZA</name>
<description>Dominos Pizza</description>
<brandid>57</brandid>
</brand>
...
<brand>
<name>TEKNOSA</name>
<description>Teknosa</description>
<brandid>493</brandid>
</brand>
</brands>
</response>

JSON Response

Brand List response returns in JSON format when the Typ parameter is set as "JSON".

http://www.locationbox.com.tr/locationbox/services?Key=key&Cmd=BrandList&Typ=JSON

The response will be as following:

{ "transactionid": "LBS_26569", "status": 0, "brands": [ { "name": "DOMINOSPIZZA", "description": "Dominos Pizza", "brandid": 57 }, { "name": "GLORIAJEANS", "description": "Gloria Jeans Coffee", "brandid": 25 }, { "name": "HACIOGLU", "description": "Hacolu", "brandid": 255 }, { "name": "KFC", "description": "Kentucky Fried Chicken", "brandid": 308 }, { "name": "MUDO", "description": "Mudo", "brandid": 854 }, { "name": "TEKNOSA", "description": "Teknosa", "brandid": 493 } ] }

transactionid: The id of response given by LocationBox Service. Every response can be tracked using transactionid when necessary.
status: Response format. (XML or JSON)

Status Codes
0 -- Success
1 -- Fail

errno: Error code
errdesc: Error definition

Error Codes
10001 Error processing your request. Please try again soon.
Cmd parameter is misspelled/not found.
10011 Error processing your request. Please check the Cmd parameter.
Cmd is not specified.
10012 Error processing your request. Please check the Key parameter.
Key is not specified.
10013 Error processing your request. Please check the Key parameter.
Key is invalid.
20012 No data found.