1 Introduction

With the dramatic advances of positioning and communicating technologies and devices, more and more trajectory data from various moving objects can be collected, recorded and applied. Since both spatial and temporal information are inherent in trajectories, they can be called spatio-temporal big data. Among them, taxi trajectory data are the most applicable and accessible. Due to the highly intensive and nearly-full-time driving activities of taxis, the collected taxi trajectory data can quickly provide a complete picture of traffic dynamic on road networks in both space and time as long as enough taxis are involved. Furthermore, compared to other data sources, such as smart card data, mobile phone data or private car trajectory data, taxi trajectory data can protect the privacy of passengers or data providers to a great extent and meanwhile keep valuable information within data undamaged.

Raw taxi trajectory data are usually recorded discretely. In most cases, each record consists of taxi identification, sampling time, instantaneous location and loading status (i.e. carrying passengers or not) and other information. By this means, it is possible to classify the driving motivations of taxis by discovering the instants when their loading statuses are switched between “loaded” and “unloaded” along the timeline. For example, if two successive records of one taxi have different loading statuses, it means the beginning or the ending of a passenger’s trip occurs between the two records. Eventually, it is possible to extract either complete trips of passengers with designated origins and destinations or cruising trajectories of unloaded taxis, and both of them can be employed as data sources to support traffic study or other objectives.

To date, many efforts have been devoted to explore the merit of taxi trajectory data and try to apply to various aspects, such as developing trajectory data mining methods (Dodge et al., 2009; Izakian et al., 2016; Liu & Karimi, 2006; Pfoser & Theodoridis, 2003; Zhou et al., 2017), inferring residents travel characteristics and patterns (Hu et al., 2014; Kang et al., 2015; Liu et al., 2012; Torrens et al., 2012), discovering spatio-temporal features of traffic flow (Ge et al., 2010; Liu & Ban, 2012; Wang et al., 2017; Wei et al., 2012; Zheng et al., 2011), and predicting travel time (Chen & Rakha, 2014; Jiang & Li, 2013; Xu et al., 2018b). Understandably, there is always a tradeoff between data volume or coverage and the difficulty of data accessing. Limited data volumes refer to limited coverages, and they require less complicated techniques to process and access. However, from a practical perspective, the data volumes or coverages increase significantly, and in turn more efficient and complicated data processing and accessing methods are needed. For instance, the whole dataset employed in this paper includes more than 3 billion disordered records from about 13,000 taxis for thirty days covering a road network of 2500 km2.

Before focusing on data analysis and application, it is a great challenge for data users to process large volumes of raw data. It is not straightforward to retrieve needed information from such a large number of records with respect to specific spatial and temporal query conditions. Most data users resort to commercial database management systems (DBMS) such as Oracle, MySQL or SQL Server because they usually have enough capacity to deal with large volumes of data and do not require programming skills of users. However, these DBMSs are inadequate to index big spatio-temporal data and handle queries with combined spatial and temporal conditions, and it is often time-consuming to complete data insertion (including building index structures) and evaluate queries. Other data users employ distributed or parallel big-data computational frameworks, such as Hadoop (Dittrich et al. 2012), Spark (Zahara et al. 2016) or Storm (Toshniwal et al. 2014), to process data. These frameworks usually require high-level programming skills and costly computational resources, which are not equipped or afforded by most data users. Moreover, because they are initially designed for big data in general, it is hard to tailor them for specific applications based on taxi trajectory data.

Behind the DBMSs mentioned above and big-data computational frameworks, data index structures are key to the acceleration of accessing large volumes of data. Since taxi trajectory data are also a kind of spatio-temporal data, we have examined spatio-temporal data index structures in the literature. A detailed review is given in the third section. Based on them, we design a scalable index structure for taxi trajectory data and develop a software system named XStar, to implement the proposed index structure and a set of functions to support its applications. XStar, as a standalone system, can read raw data, process them, conduct various analysis, visualize and export results in different ways. More important, all functions are developed from the bottom up. There is no need for users to install other commercial GIS software. Our motivation is to facilitate manipulating taxi trajectory data for general users with no requirements of either programming skills or powerful computational devices. The target platform of running the software is a single personal computer, such as a laptop with memory as less as 8GB.

The rest of this paper is organized as follows. In the next section, we introduce the characteristics and applications of taxi trajectory data. A literature review on existing indexing structures for spatio-temporal data is given and their applicability for taxi trajectory data is discussed in the third section. The software is introduced in the fourth section, which includes methodology, instructions for downloading and installing it, functions, and applications based on a real taxi trajectory dataset. The last section concludes the paper.

2 Taxi trajectory data

2.1 Data features

Raw taxi trajectory data physically consist of sampled positioning records of taxis. Records are generated, transferred, and saved at a fixed or variable sampling frequency. Each record usually includes taxi identifier, sampling time, location and loading status. Table 1 gives part of sample records, where location is expressed as a pair of coordinates, and loading status can be one of two values: loaded and unloaded. Records in this table are not sorted by either taxi identifier or sampling time.

Table 1 Example records in raw taxi trajectory data

If sorting records by taxi identifiers and sampling time as the primary key and the secondary key, respectively, and plotting their locations on road networks, we may visualize the trajectories of taxis. For example, positioning records of one taxi from sampling time t1 to t22 are illustrated in Fig. 1, where successive records are connected with dashed lines. Different symbols are used to reflect loading statuses of the taxi.

Fig. 1
figure 1

Some temporally continuous positioning records of one taxi

A trajectory of one taxi consists of trips of taxi passengers and cruises for searching passengers alternately. As shown in Fig. 1, From t1 to t6, the taxi cruises and then carries passengers to a specified destination on t7. The passengers get off on t15, and other passengers of this taxi start their trip on t18.

According to the above examples, related variables are defined in the following way. Let Dk = [{ti, li, si}| 1 ≤ i ≤ n] denote a set of n positioning records of taxi k, where ti, li and si are the ith sampling time, location and loading status, respectively. si equals loaded or unloaded. Dk is ordered by time, i.e., ti < ti + 1. We define a trip or a cruise as a set of [{ti, li}| p ≤ i ≤ q], where p, q ∈ [1, n]. The set is a trip, if sp − 1 = unloaded, sj ∣ p ≤ j ≤ q − 1 = loaded, and sq = unloaded, and otherwise, the set is a cruise. For example, in Fig. 1, the set of records from t7 to t15 is a complete trip, and it is a complete cruise from t15 to t18. It is noted that the last record in a trip or a cruise is always the first record belonging to a cruise or a trip. That means the trajectory of a taxi could also be a list of {Trip, Cruise, Trip, Cruise, ……} or {Cruise, Trip, Cruise, Trip, ……}.

2.2 Data applications

2.2.1 Overview

The taxi trajectory data discussed in this paper are records of taxi movement occurring during a historical period, such as yesterday, last week, etc. Accordingly, applications to them focus on queries on the past instead of the present (e.g., real-time traffic situation) or future (e.g., travel time estimation). Queries on the past target taxis with specific identifiers or aggregate measures meeting conditions without taxi identifiers. As aforementioned, we employ taxi trajectory data to discover underlying traffic dynamics or patterns rather than keep track of individual taxis. Furthermore, queries on individual taxis may violate the privacy of taxi drivers, and thus they should not be conducted unless there are specific application purposes. Therefore, aggregate queries are mostly adopted in practical applications.

Each aggregate query has explicit spatial and temporal query conditions. For example, in the query “How many trips have happened from district A to district B during rush hours yesterday?”, “from district A to district B” and “rush hours yesterday” are spatial and temporal conditions, respectively. A temporal condition could be either an instant (e.g. 10 am) or an interval (e.g. 10 am-1 pm) according to the temporal length it refers to, while a spatial condition maybe the whole study area, one or a group of spatial analysis units, paths constrained by underlying road networks, points on road segments, etc. The combination of temporal and spatial conditions may be used to suit various query objectives. Some of them are introduced in the following parts, and typical query examples are given in Table 2. A combination of these queries may satisfy most application purposes. Most of these queries can be evaluated with XStar.

Table 2 Typical queries on taxi trajectory data

2.2.2 Origin-destination analysis

Origin-destination analysis targets trips of taxi passengers. Each trip has an origin and a destination. The origin-destination analysis is used to reveal the intensity of connectivity between locations. The result of an origin-destination analysis is often a matrix, in which origins and destinations are enumerated as labels of rows and columns, respectively. Each element of the matrix is the number of trips between a specific pair of origin and destination.

In space, origins or destinations are usually represented as small polygons, such as traffic analysis zones, etc. Spatial query condition of an origin-destination analysis may include one/many origins and one/many destinations. Especially, a one-many origin-destination analysis (i.e., one origin and many destinations) equals a destination analysis discovering the distribution of destinations of trips from the same origin. Similarly, a many-one origin-destination analysis indicates the spatial sources of travelers targeting the same destination. Temporal query conditions could be either instants or intervals. As shown in Table 2, an instant query is usually applied to ongoing trips, while an interval query is to completed trips.

2.2.3 Distribution analysis

Distribution analysis is used to present spatial distributions of locations of taxis based on their loading statuses. The whole study area is split into several spatial analysis units. With distribution analysis, the number of taxis meeting conditions in each unit is calculated. The spatial query condition of a distribution analysis may be all or some analysis units. If the objective of a distribution analysis is to demonstrate the number of loaded or unloaded taxis in each unit, the temporal condition is usually an instant, while if its objective is to summarize the number of trips starting or ending in each unit, then an interval query condition is adopted.

Based on the distribution analysis results, various density or clustering analysis can be conducted, for example, finding hot spots of passengers getting on taxis during specific periods.

2.2.4 Network-constrained analysis

The movement of taxis are mostly constrained by road networks. It is possible to align taxi trajectories with road segments through map-matching algorithms. Therefore, network-constrained analysis can be conducted. Spatial query conditions in network-constrained analysis are usually composed of network locations, network components or network paths. Accordingly, we can classify network-constrained analysis into three categories: location-based, component-based, and path-based analysis. Network locations refer to locations associated with road networks, such as street addresses. The location-based network-constrained analysis is often used to analyze profiles of traffic flows passing through one location toward different directions. A network component could be a road segment or an intersection, while a network path consists of a series of network components. Component-based or path-based network-constrained analysis focuses on summarized or average measures of traffic flow related to one component or one path. In applications, the location-based network-constrained analysis is usually accompanied by an interval query condition, while other two types of network-constrained analysis could be applied with temporal conditions, either instants or intervals.

3 Related work

The core of XStar is a data indexing approach. In this section, we review existing works on spatio-temporal data indexing. Most of them are derived from R-tree (Guttman, 1984). Initially, R-tree is only used to index two-dimensional spatial data. Many variants of the R-tree have been proposed to deal with temporal information. Some methods try to handle spatial domain as a primary key while taking temporal domain as a secondary issue. For example, Xu et al. (1990) developed RT-tree to index spatio-temporal data by combining an R-tree and a TSB-tree (Lomet, 1989) for spatial and temporal, respectively. Since the two trees are separated, it is hard to search the spatial and temporal information simultaneously. Other structures merge spatial and temporal domains into a single high-dimensional R-tree, such as 3D R-tree (Theodoridis et al., 1996) and Trails-tree (Mahmood et al., 2018). These approaches support combined spatial and temporal query conditions, but evaluating time slice queries may have to search all tree entries and hence time-consuming.

Some other R-tree-based methods adopt overlapping and multi-version structures. They build separate R-trees for different time instances to keep all spatial data at each instance. For example, MR-tree (Yang et al., 2009) performs perfectly for time slice queries. However, it is inadequate for time window queries because of duplicated tree entries. HR + -tree (Tao & Papadias, 2001). On the other hand, where parent nodes have only entries to those that belong to the parent’s timestamp, but a node may have multiple parents. Since 3D R-tree performs well for queries with long time interval and is inferior in time slice queries while overlapping B-trees (Burton et al., 1990) do well in time slice queries, MV3R-tree (Tao & Papadias, 2000) uses a 3D R-tree to process time window queries and an MVR-tree to process time slice queries. And SMO-index (Romero et al., 2012) uses a sequence of snapshots and movement logs to support both timestamp and time interval queries.

Instead of splitting time domain into instances, other methods partition spatial domain into small zones which are indexed with a B-tree and records in each zone are indexed with an R-tree, such as SEIT (Chakka et al., 2003), SEB-tree (Song & Roussopoulos, 2003), MTSB-tree (Zhou et al., 2005), et al. Most of them are used to preserve the trajectories of moving objects.

To reduce the cost of updating data, time parameterized R-tree (TPR-tree, in short) (Saltenis et al., 2000) and its descendants, such as Bottom-up Updates (Lee et al., 2003),TPR*-tree (Tao et al., 2003), HTPR*-tree (Fang et al., 2011) and Lazy Update R-tree (Kwon et al., 2002), et al., have been proposed.

Those R-tree based index structures depend on Minimum Boundary Rectangle (MBR), which may cause a lot of dead space and have heavy workloads of updates. Due to the high frequency for the requirements of updates, some index structures transform spatio-temporal data into higher-dimensional space, such as BDual tree (Yiu et al., 2008), STRIPES (Patel & Chakka, 2004) and MB-index (Elbassioni et al., 2003), or lower-dimensional space, such as B^x-tree (Jensen et al., 2004), B^y-tree (Chen et al., 2008a) and ST^2B-tree (Chen et al., 2008b). For example, in B^x-tree, the position of one spatio-temporal record in the structure is treated as a point along a space-filling curve with equal time intervals. The main drawback is that rectangular range queries in the primal space are always transformed into polygonal range queries in transformed space, which requires much more complex algorithms (Mahmood et al., 2019).

When applied to taxi trajectory big data distributed within a fixed spatial and temporal range, the above tree-based index structures become inefficient. First, it is expensive to maintain index structure, and second, the overlapping area among entries increases quickly. Thus, by evaluating all these challenges in the XStar, we design a new index structure that partly was derived from our two previous works. The first one is a mixed spatio-temporal index structure (Li & Lin, 2006), and the second one is a cube-based high-dimensional index structure (Xu et al., 2018a). Please refer to the next section for more details.

4 Software

4.1 Methodology

Based on existing works, from a practical perspective, we develop the software called XStar. Its storage and indexing structures are demonstrated in Fig. 2. Data are organized into four levels. A list of taxis’ identifiers is located at the top level. Each taxi identified with a unique number (i.e. ID) may have several trajectories, and each trajectory consists of trips and cruises, alternatively. Each trajectory, trip, or cruise has at least three properties: start time, duration, and a pointer to data at the next level. Locational records (i.e. Locationx) of each trip or cruise are sited at the bottom level. The hierarchical structure can help organize and locate locational records efficiently.

Fig. 2
figure 2

Basic storage and indexing structures in XStar

Locational records at level 4 are not duplicate of raw trajectory data, as shown in Table 1. Instead, only locations (i.e. coordinates) are recorded while taxi identifiers and sampling time are discarded, and thus these records are resampled or interpolated results from raw data based on a fixed temporal granularity given by users. Since locational records of each trip or cruise are physically saved in an ordered list sequentially, it is possible to quickly calculate the position of a locational record in the list at any temporal instant without fetching each record from the first one. Besides the basic structure, a B-Tree is created to index identifiers of taxis. An R-Tree is used to index 2-tuple temporal properties based on our previous work (Li & Lin, 2006) to facilitate evaluating queries with identifiers or temporal conditions.

The number of locational records in the software might be smaller than the number of raw sampling points if the temporal granularity is larger than the original sampling interval and vice versa. Even when the amount is huge, with the above structure, it is still very fast to locate a taxi at any time. Furthermore, since the properties of taxi identifiers and sampling time are not physically saved in locational records, we employ other measures to reduce the length of bytes for saving coordinates in the software (e.g. replacing 64-bit double numbers with 32-bit decimal numbers), and thus, storage space is saved to a great extent. It is crucial for most computers equipped only limited memory and hard disk capacity.

It is noted that there is indeed a lack of spatial indexing approaches in the above structure. Each locational record can be accessed only through the route from taxi to its trajectory and trip or cruise. The reason is given below. Because each query on taxi trajectory data must be accompanied with temporal conditions, we may reduce searching space quickly along temporal dimension, and then, with the proposed method of retrieving locational records, it is still very quick to enumerate each taxi in order to meet spatial query conditions.

we adopt the following steps to implement the above structure. First, figure out identifiers of taxis from raw data. Then, sort all raw records by taxi identifier (primary) and sampling time (secondary). Third, split records of each taxi into one or more trajectories according to the difference of sampling time between continuous records. If the difference is larger than a given threshold, then the two records belong to two trajectories, and vice versa. Fourth, regroup records in each trajectory according to their loading statuses to figure out each record group’s type (i.e. trip or cruise). Fifth, for records in each trip or cruise, generate resampled locational records with identical interval according to a given temporal granularity. Sixth, build auxiliary B-Tree and R-Tree index structures. Since the input might be very huge during the implementation, we pay attention to every detail to reduce computational time and storage costs. For example, it is usually impossible to sort more than 100 million records as a whole with a personal computer because either memory might be overflowed or the operation is extremely time-consuming. In XStar, we develop a split-and-conquer approach to the above problems. This approach makes it possible to deal with a data file as large as 80GB with a computer equipped with 8GB main memory and 200GB free storage space in hard disks. To further accelerate data processing, XStar supports parallel computations as long as the user’s computers are equipped with multiple-core processors.

4.2 Download and install

The software is a Microsoft Windows application. Users can scan the Quick Response (in short, QR) Code in Fig. 3. The code leads to a WeChat account, “Big Data Lion” which is owned and maintained by the first author of this paper. Follow it and search articles on “XStar”. Then, there is a detailed instruction on how to download, install, and use the software. Personal users can freely use XStar for non-commercial objectives. Commercial users may have to contact the first author for permissions and licenses.

Fig. 3
figure 3

QR code of WeChat account “Big Data Lion”

After downloading the software package, run “xstar.exe” to start it. Basically, XStar can be executed on any computer with Microsoft Windows operation system. There are no requirements for CPU performance, memory size, or hard disk space. In some cases, the program may automatically prompt users to download and install “.NET Framework”, which, released by Microsoft, is a runtime to support the running of XStar.

4.3 Functions and applications

4.3.1 Main portal

A 10GB taxi trajectory data file consists of more than 100 million locational records were collected from more than 13 thousand taxis running 24 h and used in this section to demonstrate the main functions and applications of XStar. The original sampling frequency is about 10 s per point. The computer used to run the XStar software is a laptop equipped with an i7 processor, 8 GB RAM, and 100 GB free hard disk storage space.

Figure 4 is the XStar’s main portal to other functions classified into eight groups. The left four steps are used to process raw taxi trajectory data. The three modules, namely A, B, and C, provide various data analysis functions. The “Tool box” includes a set of tools to support other modules. In the rest of this section, we briefly introduce the four data processing steps and the three data analysis modules.

Fig. 4
figure 4

The main interface of XStar

4.3.2 Data processing

Instead of a single operation, XStar splits raw data processing into four steps. Users are required to follow the sequence to finish processing data. Some steps are time-consuming operations, and thus saving intermediate results between steps may help users experiment with different parameters with no need to start over from the beginning.

Raw taxi trajectory data are usually saved in a text file, as shown in Fig. 5a, b, and c. Step 1 (Fig. 5a) is used to define or decode the raw data file structure to figure out the required fields, such as taxi identifier, time, location, loading status, etc. It is not a time-consuming operation. Users are required to select designated fields, and the software saves all settings in a raw-data-structure (in short, RDS) file for future steps. According to an RDS file created in the last step, step 2 (Fig. 5b) extracts taxi identifiers from the raw data file. The function explores all locational records to figure out the number of taxis and identify them in a list, saved in an object-identifier (in short, OID) file. Step 3 (Fig. 5c) sorts locational records by taxi identifiers as the primary key and sampling time as the secondary key. Sorted records are saved in a sorted-data (in short, SDT) file. The file includes all required information from the raw data file in a more compact format, and thus its size is usually much smaller than the raw one. Users can sort all locational records or part of them in one raw data file by defining a period of interests. It is especially valuable for large raw data files. Users can split the large one into several small SDT files with different periods and conduct analysis based on them respectively if their computers’ capacities are too limited to deal with the raw data as a whole. Step 4 (Fig. 5d) builds index structures based on an SDT file. A temporal granularity must be given to determine the interval between interpolated locations in the index structure. This means, for the same SDT file, users can create different index structures with different temporal granularities. The index structure is saved in an index-data (in short, IDT) file.

Fig. 5
figure 5

Four steps for processing raw taxi trajectory data

Along with the above steps, users can define other parameters, such as the number of parallel threads, thresholds of recognizing and removing wrong locational records, type of coordinate conversion, etc.

A summary of the data processing time and the resultant file size for the employed dataset is given in Table 3. It is noted that the entire processing time is less than 20 min, the SDT file size is only one-tenth of the raw data file size, and the IDT file size varies with the given temporal granularity denoted with tg. It takes users comparatively less time to create different IDT files with different temporal granularities based on the same SDT with respect to different application purposes. SDT or IDT file can be disseminated and applied in the following analytical modules independently. By this means, XStar facilitates sharing data between users and makes it possible to analyze a large data file with affordable personal computers.

Table 3 Computational time and file size for processing row data

4.3.3 Data analysis

Module A is a group of data analysis methods for visualizing trajectories. As shown in Fig. 6, after reading and opening an SDF file, the module can give a list of taxis’ identifiers. Users can select one or several taxis by their identifiers, customize the time interval of interests, and then the trajectories meeting the above conditions will be displayed in the map panel immediately. With different taxis, their trajectories are displayed with different colors too, and the legend is located in the top-left corner. Sampling points and trajectories are labelled, and the labels can be customized. Results can be saved as ESRI Shapefiles or images.

Fig. 6
figure 6

Visualizing selected trajectories

Module B and Module C focus on instantaneous analysis and interval analysis of trajectories, i.e., temporal condition in data queries is an instant or an interval, respectively. The input of both functions is an IDT file. Analytical results can be exported as ESRI Shapefiles or images.

In Module B, after opening an IDF file, the location of each taxi at the currently selected time instant is displayed as a symbol of car in the map panel as shown in Fig. 7. The symbol is labelled with the taxi’s identifier. Different loading statuses correspond to different symbols. When users change the value of the current instant, the taxis’ locations are updated immediately. In animation mode, the current instant can change automatically, and the map panel can present the movement of taxis in a movie fashion.

Fig. 7
figure 7

Distribution of taxis at a given time instant

Instead of instantaneous locations, Module C usually targets trips or cruises happening within a given interval. It provides much more data analysis functions than Module B. Figure 8 illustrates the origin distributions of all trips meeting temporal conditions. Each red dot represents an origin of a trip. Similar analysis can be conducted to figure out the distribution of trips’ or cruises’ destinations. By sliding the two buttons in the top panel, users can easily define the time interval range.

Fig. 8
figure 8

Origin distribution of trips within a given time interval

Besides temporal conditions, Module B and Module C support queries based on the area of interests (in short, AOI). For instance, users can create an origin AOI, and then all trips or cruises departing from this AOI can be selected, as shown in Fig. 9a. If users change it to a destination AOI, then the distribution of the origins of all trips or cruises targeting this AOI is illustrated in Fig. 9b. According to these figures, it is possible to discover the pattern of traffics associated with this AOI. Users can also define multiple origin or destination AOIs. By this means, trips or cruises falling into these AOIs can be selected. For example, in Fig. 9c, there are one origin AOI and one destination AOI, and all trips, whose origins and destinations falling into the two AOI, respectively, are visualized. It is noted that they adopt different network paths.

Fig. 9
figure 9

Some examples of data analysis with XStar

The XStar can also generate aggregated results based on analysis zones in space. Any polygon GIS layer (e.g. Shapefile) can be loaded as analysis zones, or otherwise, the software can generate regular analysis zones. For example, in Fig. 9d, each analysis zone is a hexagon. The number on each hexagon is an aggregated analytical result, such as the sum of origins falling into the polygon. Analysis zones are also needed in OD analysis. As shown in Fig. 9e, there is a line between any two analysis zones. Label on the line indicates the number of trips between these two zones. In profile analysis, lines intersecting with road segments are regarded as analysis zones. Trips or cruises passing through these lines are recorded, and their total number and average speed are displayed on these lines, as shown in Fig. 9f.

In XStar, it is convenient to combine temporal conditions and spatial conditions for retrieving needed information and conducting more complicated analysis, such as meeting analysis (i.e., to find overlapping trajectories in space and time), stay point analysis (i.e., to extract locations where taxis keep static for a while), etc. Except for taxis, trajectories from other moving objects (e.g., human beings, private vehicles, ships, airplanes, etc.) may also be processed and analyzed with XStar. More functions are being developed.

5 Conclusion

This paper presents a software system named XStar developed to deal with large volumes of taxi trajectory data. To the best of our knowledge, it is currently the only software targeting taxi trajectory data processing and analysis. Its core is a scalable index and storage structure. Based on it, raw data can be saved in a more compact scheme and be accessed more efficiently. It neither requires professional programming skills nor expensive computational devices to use. Further, it facilitates users processing and analyzing trajectory data in affordable and straightforward manners. Its design consists of four data processing steps and three data analysis modules. We have introduced its main features and examined its performance based on a real taxi trajectory dataset. Generally, the XStar fulfills most types of analysis on trajectory data and can export its results into other systems. The software was released in Jan. 2019, and by May 2021 has received more than 4000 downloads. Future research is focused on developing more functions to improve the current version.