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
Demographic Info Service gives information like education level, amount of vehicle,... based on criterias which you can find below.
Demographic Info request must look like this:
http://www.locationbox.com.tr/locationbox/services?Key=key&Cmd=GetDemographicInfo&Typ=output_format
&IlId=ilid&IlceId=ilceid&MahalleId=mahalleid&InfoType=type
Key
: LocationBox user key. (Register for user key) Cmd
: LocationBox service name. (GetDemographicInfo)Typ
: Response format. (XML or JSON)IlId
: (Optional) (See list.) IlceId
: (Optional) (See list.) MahalleId
: (Optional) (See list.)InfoType
: Demographic info type.Info Type Values
OKUMAYAZMA -- Literacy
EGITIM -- Education
NUFUS -- Population
ARAC -- Vehicle Type
YASGRUPLARI -- Age Groups
KONUT -- Residence
Demographic Info response returns in XML format when the Typ
parameter is set as "XML".
Below is an example for a Demographic Info request which is expected to return a response in XML format .
http://www.locationbox.com.tr/locationbox/services?Key=key&Cmd=GetDemographicInfo&Typ=XML
&IlId=34&InfoType=OKUMAYAZMA
The response will be as following:
<response>
<transactionid>LBS_37486216</transactionid>
<status>0</status>
<errno />
<errdesc />
<demographic>
<okumayazma_bilen>
<erkek>1684113</erkek>
<kadýn>1595389</kadýn>
</okumayazma_bilen>
<okumayazma_bilmeyen>
<erkek>21443</erkek>
<kadýn>113401</kadýn>
</okumayazma_bilmeyen>
<okumayazma_bilinmeyen>
<erkek>102624</erkek>
<kadýn>82286</kadýn>
</okumayazma_bilinmeyen>
</demographic>
</response>
Demographic Info response returns in JSON format when the Typ
parameter is set as "JSON".
Below is an example for a Demograhpic Info request which is expected to return a response in JSON format .
http://www.locationbox.com.tr/locationbox/services?Key=key&Cmd=GetDemographicInfo&Typ=JSON
&IlId=34&InfoType=OKUMAYAZMA
The response will be as following:
{
{
"transactionid": "LBS_9440",
"status": 0,
"demographic": {
"okumayazma_bilen": { "erkek": 1684113, "kadin": 1595389 },
"okumayazma_bilmeyen": { "erkek": 21443, "kadin": 113401 },
"okumayazma_bilinmeyen": { "erkek": 102624, "kadin": 82286 }
}}
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.