All Products
Search
Document Center

Quick start

Last Updated: Jul 09, 2021

After you activate Lindorm Ganos, you can call the Ganos API to start development. For more information about how to activate the Lindorm Ganos service, see the "Activate the Lindorm Ganos service" topic.

1. Download the sample code

ganos-sample-code

2. Sample code description

2.1 lindorm-sample module

Automatic identification system (AIS) data is used as the sample data to demonstrate how to write and query trajectory data.

  • Main: the input of the demo.

  • Writer: writes data to Lindorm Ganos. The entire procedure includes these steps: connecting to Lindorm Ganos, creating a schema for the spatio-temporal collection, reading sample data, and writing sample data to the spatio-temporal collection.

  • Reader: runs the queries that have fixed parameters. The queries include attribute queries, spatial data queries, and spatio-temporal data queries.

2.2. spark-sample module

Automatic identification system (AIS) data is used as the sample data to demonstrate how to write trajectory data and how to use Apache Spark to query trajectory data.

  • Writer: writes data to Lindorm Ganos. The entire procedure includes these steps: connecting to Lindorm Ganos, creating a schema for the spatio-temporal collection, reading sample data, and writing sample data to the spatio-temporal collection.

  • SparkDemo: reads data from Lindorm Ganos, converts the data to Spark DataFrames, and performs operations such as spatial data queries by using Spark SQL.