API

LocationBox API

POI Category List

POI Category List Service gives categories that group of POI is inserted in.

A Category List request must look like this:

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


Request Parameters


Cmd: LocationBox service name. (CategoryList)
Typ: Response format. (XML or JSON)

Response Parameters


XML Response

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

Below is an example for a Category List request which is expected to return a response in XML format .

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

The response will be as following:

<response>
<transactionid>LBS_26539</transactionid>
<status>0</status>
<errno />
<errdesc />
<categories>
<category>AKARYAKIT</category>
<category>BANKA</category>
<category>ECZANE</category>
<category>HASTANE</category>
<category>IBADET</category>
<category>KULTUR</category>
<category>MARKET</category>
<category>OTEL</category>
<category>OTOMOTIV</category>
<category>POLIS</category>
<category>SINEMA</category>
<category>YEMEK</category>
</categories>
</response>

JSON Response

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

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

The response will be as following:

{ "transactionid": "LBS_26560", "status": 0, "categories": [ "AKARYAKIT", "BANKA", "ECZANE", "HASTANE", "IBADET", "KULTUR", "MARKET", "OTEL", "OTOMOTIV", "POLIS", "SINEMA", "YEMEK" ] }

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.