MCPcopy Create free account
hub / github.com/AMAP-ML/Thinking-with-Map / extract_solution

Function extract_solution

api_evaluation/api_test.py:48–53  ·  view source on GitHub ↗
(solution_str)

Source from the content-addressed store, hash-verified

46 return None
47
48def extract_solution(solution_str):
49 result = find_coords_json(solution_str)
50 if result:
51 return result["lat"], result["lon"], result["city"], result["country"]
52 else:
53 return None, None, None, None
54
55
56def compute_distance_score(solution_str, ground_truth):

Callers 1

compute_distance_scoreFunction · 0.70

Calls 1

find_coords_jsonFunction · 0.70

Tested by

no test coverage detected