Read API

read.read_file(filepath: str) GeoJSON

Reads a GeoJSON file and returns a GeoJSON object.

This function takes the path to a GeoJSON file, loads its contents, and returns a GeoJSON object initialized with the data from the file. The returned object can then be used to extract trajectories or perform other operations on the data.

Parameters:

filepath (str) – The path to the GeoJSON file to read.

Returns:

A GeoJSON object containing the data from the file.

Return type:

GeoJSON