Apple states that shared location data is encrypted in transit via end-to-end encryption. This protects the location information as its sent between devices on Apple's network.