Prerequisites
- Create an Axiom account.
- Create a dataset in Axiom where you send your data.
- Create an API token in Axiom with permissions to ingest data to the dataset you have created.
Send geospatial data to Axiom
Send your sample location data to Axiom using the API endpoint. For example, the following HTTP request sends sample robot location data with latitude, longitude, status, and satellite information.Replace
API_TOKEN with the Axiom API token you have generated. For added security, store the API token in an environment variable.Replace DATASET_NAME with the name of the Axiom dataset where you send your data.Replace AXIOM_DOMAIN with api.axiom.co if your organization uses the US region. For more information, see Regions.Set up your Hex project
- Create a new Hex project. For more information, see the Hex documentation.
- Save your Axiom API token as a secret in Hex. This example uses the secret name
AXIOM_API_TOKEN. For more information, see the Hex documentation.
Query data from Axiom
Write the Python code in your Hex notebook that retrieves data from Axiom. For example, customize the code below:Replace
AXIOM_DOMAIN with api.axiom.co if your organization uses the US region. For more information, see Regions.Replace DATASET_NAME with the name of the Axiom dataset where you send your data.