Location based on voyage11's source code for IOS 8