我有一个字典列表,其中包含一对带有坐标的地方。每对都必须是唯一的。例如origin-London和被认为与和destination-Oslo相同。考虑到它们具有不同的键,我如何删除这些重复项。origin-Oslodestination-London
[
{
"origin": "North pole",
"destination": "London",
"origin_lat": "90",
"origin_log": "0",
"destination_lat": "51.50853",
"destination_log": "-0.12574"
},
{
"origin": "North pole",
"destination": "Oslo",
"origin_lat": "90",
"origin_log": "0",
"destination_lat": "59.91273",
"destination_log": "10.74609"
},
{
"origin": "London",
"destination": "Oslo",
"origin_lat": "51.50853",
"origin_log": "-0.12574",
"destination_lat": "59.91273",
"destination_log": "10.74609"
},
{
"origin": "Oslo",
"destination": "London",
"origin_lat": "59.91273",
"origin_log": "10.74609",
"destination_lat": "51.50853",
"destination_log": "-0.12574"
}
]