Data Lens Developer's Guide

Dataset Sample

The dataset sample response body is a JSON object returned by the Data Lens REST API in response to a request for sample data from a dataset.

Table 1. Dataset Sample Response Elements
Element Data Type Description
columns Array A list of column names represented as strings. For example:
columns: [
              "lat",
              "lon",
              "avgtemp",
              "state"
]
dataset String The unique ID of the dataset
kind String Type of response: the value is datalens#dataset_sample when the request is successful
rows Array An array of lists. Each list represents one row of the data. The actual content depends on the dataset.
status String The status of the request

The code example below illustrates a typical response to a successful dataset sample request.

{
  "kind": "datalens#dataset_sample",
  "status": "OK",
  "rows": [
    [
      "country",
      "test",
      -29.69415,
      -52.39821
    ],
    [
      "Belgium",
      "One",
      50.84839,
      4.34969
    ],
    [
      "Germany",
      "Two",
      52.51607,
      13.37699
    ],
    [
      "France",
      "Three",
      48.85693,
      2.3412
    ]
  ],
  "columns": [
    "column_1",
    "column_2",
    "lat",
    "lon"
  ],
  "dataset": "87354ed28a66441385942f62e94282ea"
}

You cannot use this account to purchase a commercial plan on Developer Portal, as it is already associated to plans with different payment methods.

To purchase a commercial plan on Developer Portal, please register for or sign in with a different HERE Account.

Something took longer than expected.

The project should be available soon under your projects page.

Sorry, our services are not available in this region.

Something seems to have gone wrong. Please try again later.

We've detected that your account is set to Australian Dollars (AUD).
Unfortunately, we do not offer checkouts in AUD anymore.
You can continue using your current plan as normal, but to subscribe to one of our new plans,
please register for a new HERE account or contact us for billing questions on selfservesupport@here.com.