A Google spokesman admitted that it had misplaced the border — adding it corrected its mistake after viewing an official State Department map.

“It is our goal to provide the most accurate, up-to-date maps possible,” wrote Charlie Hale, Geo Policy Analyst for Google, in a blog post. “Maps are created using a variety of data sources, and there are inevitably going to be errors in that data. We work hard to correct any errors as soon as we discover them.”

Costa Rica, which has no army, was pleased. But Nicaraguan authorities protested Google’s correction — saying the tech giant had it right the first time.