Views
No views yet

1from trajloc_tool import TrajLocTool
2
3# Initialize the tool with the pretrained checkpoint
4tool = TrajLocTool(
5 checkpoint_path="checkpoints/trajloc_full.pth",
6 gallery_manifest="gallery.json", # satellite tiles to search over
7 gallery_cache="gallery_features.pt", # features cached here after the first run
8)
9
10# Localize a trajectory using a text-based route description
11result = tool.localize_trajectory(
12 query_mode="text",
13 text="The route heads east along a tree-lined street, then turns right at the church.",
14 traj_coords=[[38.6488, -90.3108], [38.6495, -90.3089]],
15 traj_headings=[91.0, 92.5],
16 top_k=5,
17)
18print(result)1@inproceedings{gao2026trajloc,
2 title = {Trajectory-aware Cross-view Geo-localization with Sequential Observations},
3 author = {Gao, Tianyi and Lin, Jiayu and Beaulieu, Danielle and Jacobs, Nathan},
4 booktitle = {European Conference on Computer Vision},
5 year = {2026}
6}