Service API
Address
POI
Route
Map
Indoor
Dynamic Information
Campaign
Demography
Traffic
User Data
Risk
Analysis
- Spatial Analysis
- Add Service Area
- Add Buffered Line To User Region
- Add Buffered Route To User Region
- Add Route To User Line
LocationBox API
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
Key
: LocationBox user key. (Register for user key) Cmd
: LocationBox service name. (BrandList)Typ
: Response format. (XML or JSON)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>Domino´s Pizza</description>
<brandid>57</brandid>
</brand>
...
<brand>
<name>TEKNOSA</name>
<description>Teknosa</description>
<brandid>493</brandid>
</brand>
</brands>
</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": "Domino´s Pizza", "brandid": 57 },
{ "name": "GLORIAJEANS", "description": "Gloria Jean´s Coffee", "brandid": 25 },
{ "name": "HACIOGLU", "description": "Hacýoðlu", "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 codeerrdesc
: Error definitionError 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.