Data Lens Developer's Guide

The Query Definition

The following is the full query definition that we use in this visualization. If you want, you can copy and paste the code and use it in your own project, following the descriptions in the previous chapter.

For further details about constructing query definitions, see Define Query.

{
  "query": {
    "metrics": [
      "Lat",
      "Lon",
      "Magnitude",
      "Depth",
      "Region"
    ],
    "namespace": {
      "tx": {
        "source": [
          {
            "$input": "x"
          }
        ]
      },
      "ty": {
        "source": [
          {
            "$input": "y"
          }
        ]
      },
      "tz": {
        "source": [
          {
            "$input": "z"
          }
        ]
      },
      "buffer": {
        "source": [
          {
            "default": 0,
            "$input": "buffer"
          }
        ]
      },
      "px": {
        "source": [
          "Lon",
          "tz"
        ],
        "apply": [
          {
            "type": "transform",
            "fn": "lon_to_x"
          }
        ]
      },
      "py": {
        "source": [
          "Lat",
          "tz"
        ],
        "apply": [
          {
            "type": "transform",
            "fn": "lat_to_y"
          }
        ]
      },
      "pixels": {
        "source": [
          "px",
          "py"
        ]
      }
    },
    "filters": [
      {
        "pixels": {
          "$pixel_within_tile": [
            "tx",
            "ty",
            "buffer"
          ]
        }
      }
    ],
    "dataset": "<dataset_id>"
  }
}

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.