Updated

The International Court of Justice has ordered Nicaragua to compensate Costa Rica for damage Nicaragua caused with unlawful construction work near the mouth of the San Juan River, in the court's first foray into assessing costs for environmental damage.

Friday's order by the United Nations' principle judicial organ follows a December 2015 ruling that Nicaragua violated Costa Rica's sovereignty by establishing a military camp and digging channels near the river, part of a long-running border dispute in the remote region on the shores of the Caribbean Sea.

In total, Nicaragua was ordered to pay just over $378,890 for environmental damage and other costs incurred by Costa Rica.

Later Friday, the court is set to demarcate parts of the maritime and land borders between the two Central American neighbors.