From the course: Code Clinic: Swift

Unlock the full course today

Join today to access over 22,500 courses taught by industry experts or purchase this course individually.

Intro: Where am I?

Intro: Where am I? - Swift Tutorial

From the course: Code Clinic: Swift

Start my 1-month free trial

Intro: Where am I?

(robotic whirs and clicks) - [Instructor] Hello and welcome to the second problem of the Code Clinic series. This problem is titled Where Am I? and demonstrates how to create geolocation applications. Every modern computer has the ability to find its location. HTML5 has the geolocation API. Google Maps returns a location and accuracy radius for mobile phones based on WiFi and cell towers. Some libraries map the computer's IP address to a longitude and latitude. Some methods are more accurate than others. On-board GPS is going to be more accurate than trying to guess WiFi addresses, but each method can provide some indication of where the computer is located. In this Code Clinic challenge, we're challenging our authors to create a geolocation app to show the location of the computer running their code. Their solution should reveal the longitude and latitude of the current location as well as an indicator of how accurate that location is expressed as a radius from the revealed longitude…

Contents