I compute distances used in the gravity model of international trade that improve the existing measures along multiple lines and help remedy the border puzzle by up to 50%. I derive a trade cost aggregation that is agnostic to the underlying gravity framework while taking into account the...