export_result

The export_result function is used to export report results to a file.

Copied!
svc=report/export_result&params={"format":<uint>,
				 				 "pageOrientation":"<text>",
								 "hideGoogleLinks":<uint>,
				 				 "pageSize":"<text>",
				 				 "pageWidth":"<text>",
				 				 "coding":"<text>",
				 				 "delimiter":"<text>",
				 				 "headings":"<text>",
				 				 "compress":"<text>",
				 				 "attachMap":"<text>",
				 				 "extendBounds":<bool>,
				 				 "hideMapBasis":"<text>",
				 				 "outputFileName":"<text>",
								 "splitChart":"<text>",
								 "appendTreeAnchorRows":"<text>"}

Parameters

NameDescription
formatFile format (see below).

Optional parameters:

NameDescriptionDefault value
compress

Report file compression:

  • 0 — no;
  • 1 — yes.
1
pageOrientationPage orientation (PDF): portrait, landscape.portrait
pageSizePage format (PDF): a4, a3.a4
pageWidth

Page width (PDF):

  • 0 — fixed;
  • 1 — compact;
  • 2 — no-wrap.
0
codingEncoding (CSV): utf8, cp1251.utf8
delimiterDelimiter (CSV): semicolon, colon.colon
headings

Displaying headers:

  • 0 — no;
  • 1 — yes.
0
attachMap

Attaching the map (PDF and HTML only):

  • 0 — no;
  • 1 — yes.
0
extendBounds

Extend the map to include geofences: 

  • 0 — no;
  • 1 — yes.
0
hideMapBasis

Hiding the map layer:

  • 0 — no;
  • 1 — yes.
0
outputFileNameFile name.Online_report
hideGoogleLinks

Hide google links in coordinate cells (PDF and XLSX): 

  • 0 — no;
  • 1 — yes.
0
splitChartSplitting by day or week.<empty>
appendTreeAnchorRows

Append tree anchor rows with an empty row:

  • 0 — no;
  • 1 — yes.
0

According to the new logics for the “extendedBounds” parameter, by default the map is zoomed to fit the tracks, markers, and icons. When the option is enabled, the map is also zoomed to fit the geofences. If there are no graphic elements (neither tracks, markers, icons for the default situation, nor geofences for the activated extended bounds option), the map isn’t displayed at all.

File formats:

  • 1 — HTML;
  • 2 — PDF;
  • 4 — XLS;
  • 8 — XLSX;
  • 16 — XML;
  • 32 — CSV.

Returned result

Returns a file of demanded format.

Possible error codes:

CodeDescription
6Failed to fetch the user.
5Report file reading/writing error.
4Wrong input parameters.
Download PDF file
Download Word document

See also