You are an API parameter validator. Generate parameters strictly according to…
- User
System: You are an API parameter validator. Generate parameters strictly according to the API specification. Only use parameters defined in required_parameters and optional_parameters. Return an empty dict if no parameters are required and optional parameters are not needed. User: Review API details: http://apis.map.qq.com/ws/distance/v1/matrix (GET) Required: [{'name': 'key', 'type': 'string', 'description': 'api-key', 'default': '6LDBZ-BF4HK-G2ZJA-ABCNH-3A44S-7OFZI'}, {'name': 'mode', 'type': 'string', 'description': '计算方式:driving(驾车)、walking(步行)。默认:driving', 'default': 'driving'}, {'name': 'from', 'type': 'string', 'description': '起点坐标,格式:lat,lng;lat,lng...(经度与纬度用英文逗号分隔,坐标间用英文分号分隔)', 'default': '39.12,116.83;30.21,115.43'}, {'name': 'to', 'type': 'string', 'description': '终点坐标,格式:lat,lng;lat,lng...(经度与纬度用英文逗号分隔,坐标间用英文分号分隔)', 'default': ''}] Optional: [{'name': 'output', 'type': 'string', 'description': '返回格式', 'default': ''}, {'name': 'callback', 'type': 'string', 'description': 'JSONP方式回调函数', 'default': ''}] Past tests: Initial Attempt 1: Parameters: {'key': '6LDBZ-BF4HK-G2ZJA-ABCNH-3A44S-7OFZI', 'mode': 'driving', 'from': '39.12,116.83;30.21,115.43', 'to': '31.23,121.47;32.05,118.78', 'output': 'json', 'callback': 'myCallbackFunction'} Result: Failed Analysis: Failed - possible issues: Message from API: Success
Initial Attempt 2: Parameters: {'key': '6LDBZ-BF4HK-G2ZJA-ABCNH-3A44S-7OFZI', 'mode': 'walking', 'from': '34.05,118.25;40.71,74.00', 'to': '37.77,122.42;34.05,118.24', 'output': 'json', 'callback': 'newCallbackFunction'} Result: Failed Analysis: Failed - possible issues: Message from API: Success
Recent Attempt 3: Parameters: {'key': '6LDBZ-BF4HK-G2ZJA-ABCNH-3A44S-7OFZI', 'mode': 'driving', 'from': '34.05,-118.25;40.73,-73.93', 'to': '51.51,0.13;48.85,2.35', 'output': 'json', 'callback': 'newUniqueCallback'} Result: Failed Analysis: Failed - possible issues: Message from API: 参数错误,坐标错误
Recent Attempt 4: Parameters: {'key': '6LDBZ-BF4HK-G2ZJA-ABCNH-3A44S-7OFZI', 'mode': 'walking', 'from': '34.05,118.25;40.71,-74.00', 'to': '37.77,-122.42;34.05,118.24', 'output': 'json', 'callback': 'newCallback'} Result: Failed Analysis: Failed - possible issues: Message from API: Success
Recent Attempt 5: Parameters: {'key': '6LDBZ-BF4HK-G2ZJA-ABCNH-3A44S-7OFZI', 'mode': 'walking', 'from': '48.85,2.35;51.51,-0.13', 'to': '34.05,-118.25;40.73,-73.93', 'output': 'json', 'callback': 'uniqueNewCallbackFunction'} Result: Failed Analysis: Failed - possible issues: Message from API: 参数错误,坐标错误
Used parameters: - {'callback': 'newUniqueCallback', 'from': '34.05,-118.25;40.73,-73.93', 'key': '6LDBZ-BF4HK-G2ZJA-ABCNH-3A44S-7OFZI', 'mode': 'driving', 'output': 'json', 'to': '51.51,0.13;48.85,2.35'}
- {'callback': 'myCallbackFunction', 'from': '39.12,116.83;30.21,115.43', 'key': '6LDBZ-BF4HK-G2ZJA-ABCNH-3A44S-7OFZI', 'mode': 'driving', 'output': 'json', 'to': '31.23,121.47;32.05,118.78'}
- Assistantjson
{ "key": "6LDBZ-BF4HK-G2ZJA-ABCNH-3A44S-7OFZI", "mode": "driving", "from": "23.1291,113.2644;29.5630,106.5516", "to": "30.2741,120.1551;34.3416,108.9402", "output": "json", "callback": "uniqueCallback456" }