The only difference is distance. Offshoring can happen anywhere around the world, while nearshoring happens when the client company contracts the development partner in a neighbouring country. So, to use the USA as an example, employing a company in Mexico will be nearshoring, while doing so in Europe will be offshoring.