The rapid growth of spatiotemporal data makes trajectory modeling critical for extracting patterns from large-scale, dynamic mobility datasets. However, many existing methods face challenges with scalability and computational inefficiency. To address these challenges, we propose VecLSTM—a vectorized Long Short-Term Memory (LSTM) framework designed to improve both predictive accuracy and processing performance. VecLSTM introduces a novel dynamic vectorization layer that converts raw GPS trajectories into structured vector embeddings, enabling efficient storage, retrieval, and preprocessing.