Route planning

From cxcscmu/SkillLearnBench · View interactive version

Route planning is an AI agent skill from the GitHub repository cxcscmu/SkillLearnBench. Use a distance matrix CSV to find travel time and distance between cities for self-driving trips.

How to use this skill

Skill file

Route Planning

Calculate distance and duration from a distance matrix.

Example Usage

import pandas as pd

def get_travel_info(dist_df, origin, destination):
    row = dist_df[(dist_df['origin'] == origin) & (dist_df['destination'] == destination)]
    if not row.empty:
        return row.iloc[0]['distance'], row.iloc[0]['duration']
    return None, None
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.