Apple has not offered iPhone owners an option to opt out of location data collection at this time. Third party apps can be prevented from using Location Services by navigating to Settings -> General -> Location Services -> OFF. Apple collects location information from your iPhone even if Location Services is switched off in Settings.