Calculates distances and travel times between multiple locations for route planning or optimization. Computes a complete distance matrix, supports different travel modes, and returns both distance and time estimates.
When the user requests route planning, optimization, or distance calculations between multiple points, use this skill to compute the most efficient path. The core task is to generate a complete distance and time matrix between all specified locations and then determine the optimal visiting order (solving a Traveling Salesman Problem - TSP) when a starting point is defined.
recommendation.md). List each attraction separately, even if they are close.google_map-maps_geocode or google_map-maps_search_places to obtain precise latitude/longitude coordinates and formatted addresses for (starting point + all destinations).google_map-maps_distance_matrix with all gathered coordinates as both origins and destinations.mode parameter based on the request (e.g., "walking", "driving"). Default to "walking" if unspecified.distance.value (meters) and duration.value (seconds) for every origin-destination pair. Organize this data into clear numerical arrays for calculation.google_map-maps_directions to get turn-by-turn navigation instructions.summary, distance.text, duration.text, and key steps from steps[n].instructions.format.json template).road_plan: An array for each leg with from, to, distance, estimated_time, and directions.total_distance: The sum of all leg distances.total_time: The sum of all leg durations.filesystem-write_file.filesystem-read_file.