Computing method for ridesharing paths, computing apparatus and recording medium using the same
First Claim
1. A computing apparatus for finding ridesharing paths in a target trajectory, comprising:
- a storage, recording a plurality of first points of the target trajectory and a plurality of second points of a plurality of candidate trajectories; and
a processor, coupled to the storage, and configured to;
determine a sequence of first blocks for the target trajectory according to a plurality of first points of the target trajectory, and sequentially classify each of the first points into only one of the first blocks, wherein each first block has a same predetermined size;
determine a sequence of second blocks for each candidate trajectory according to a plurality of second points of each candidate trajectory, and sequentially classify each of the second points into only one of the second blocks, wherein each second block has the same predetermined size;
select at least one of the second blocks which overlaps with at least one of the first blocks, and obtain the second points classified in the selected at least one second blocks;
calculate the ridesharing paths in the target trajectory according to the obtained second points classified in the selected at least one second block; and
display the calculated ridesharing paths on a display of the computing apparatus.
1 Assignment
0 Petitions
Accused Products
Abstract
A computing method for ridesharing paths, a computing apparatus and a recording medium using the same are provided. This invention finds the ridesharing paths out from the target trajectory which have ridesharing relationship with a plurality of candidate trajectories. People on the ridesharing paths can share a ride on a part of or whole target trajectory. In the computing method, a trajectory is transformed into a sequence of blocks. After target trajectory and a plurality of the candidate trajectories are transformed, it is determined whether each of the blocks of the candidate trajectories overlaps with at least one of the blocks of the target trajectory. Then, ridesharing paths are calculated according the screened candidate trajectories. This method is many-to-one method which compares a plurality of the candidate trajectories to one target trajectory at one time.
17 Citations
20 Claims
-
1. A computing apparatus for finding ridesharing paths in a target trajectory, comprising:
- a storage, recording a plurality of first points of the target trajectory and a plurality of second points of a plurality of candidate trajectories; and
a processor, coupled to the storage, and configured to;determine a sequence of first blocks for the target trajectory according to a plurality of first points of the target trajectory, and sequentially classify each of the first points into only one of the first blocks, wherein each first block has a same predetermined size; determine a sequence of second blocks for each candidate trajectory according to a plurality of second points of each candidate trajectory, and sequentially classify each of the second points into only one of the second blocks, wherein each second block has the same predetermined size; select at least one of the second blocks which overlaps with at least one of the first blocks, and obtain the second points classified in the selected at least one second blocks; calculate the ridesharing paths in the target trajectory according to the obtained second points classified in the selected at least one second block; and display the calculated ridesharing paths on a display of the computing apparatus. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10)
- a storage, recording a plurality of first points of the target trajectory and a plurality of second points of a plurality of candidate trajectories; and
-
11. A computing method for finding ridesharing paths in a target trajectory, adapted to a computing apparatus for comparing a plurality of candidate trajectories with the target trajectory, the computing method comprising:
-
determining a sequence of first blocks for the target trajectory according to a plurality of first points of the target trajectory, and sequentially classifying each of the first points into only one of the first blocks, wherein each first block has a same predetermined size; determining a sequence of second blocks for each candidate trajectory according to a plurality of second points of each candidate trajectory, and sequentially classifying each of the second points into only one of the second blocks, wherein each second block has the same predetermined size; selecting at least one of the second blocks which overlaps with at least one of the first blocks, and obtaining the second points classified in the selected at least one second blocks; calculating the ridesharing paths in the target trajectory according to the obtained second points classified in the selected at least one second block; and displaying the calculated ridesharing paths on a display of the computing apparatus. - View Dependent Claims (12, 13, 14, 15, 16, 17, 18, 19)
-
-
20. A non-transitory computer-readable recording medium, recording a program, a target trajectory and a plurality of candidate trajectories, and being located to a computing apparatus to execute following steps:
-
determining a sequence of first blocks for the target trajectory according to a plurality of first points of the target trajectory, and sequentially classifying each of the first points into only one of the first blocks, wherein each first block has a same predetermined size; determining a sequence of second blocks for each candidate trajectory according to a plurality of second points of each candidate trajectory, and sequentially classifying each of the second points into only one of the second blocks, wherein each second block has the same predetermined size; selecting at least one of the second blocks which overlaps with at least one of the first blocks, and obtaining the second points classified in the selected at least one second blocks; calculating ridesharing paths in the target trajectory according to the obtained second points classified in the selected at least one second block; and displaying the calculated ridesharing paths on a display of the computing apparatus.
-
Specification