Lite report

Service version: 1

Purpose

Create a simple and quick version of the Area Analytics report by sending a POST request.

Request data

HTTPS method: POST

For ease of viewing and identification:

  • Constants and parameters enclosed in curly brackets { } must be replaced with their values.
  • See the Request parameters section with the required and optional parameters tables for their values. The generic request format is as follows.

Format

post
URL request format
https://{baseURL}/areaanalytics/reports/lite?key={Your_API_Key}

Example

post
URL request example
https://api.tomtom.com/areaanalytics/reports/lite?key={Your-API-Key}

Request parameters

Required parameters

Description

baseURL
string

The base URL for calling TomTom services.


Value: api.tomtom.com

key
string

Authorization key for access to the API.


Value: Your valid API key.

Request POST body

Same as in analysis-creation, see Request POST body example.

Request POST body limitations

The request body has the same structure but with the following constraints:

Required fields

Description

endDate
string

The end date must be within 31 days from startDate.

dataTypes
array

A list containing only one data types to analyze.

features
array

A list containing only one region definition.

Required POST headers

Header

Value

Content-Type

application/json

Region definition format

A region should be defined as a GeoJSON Feature Object. The feature can contain only the following type of geometry: Polygon. You may define the feature properties name and timezone for the region. Otherwise, they will be generated automatically.

Response data

Same as in analysis-results, see Results overview.

Errors

If the supplied parameters are invalid or an internal error occurs, the API returns an error response in the requested format.

Response codes

Code

Meaning & possible causes

200

OK

400

Bad Request

401

Unauthorized

403

Forbidden

404

Not Found