From the course: Code Clinic: C++

Unlock the full course today

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

Intro: Where am I?

Intro: Where am I? - C++ Tutorial

From the course: Code Clinic: C++

Start my 1-month free trial

Intro: Where am I?

(machines powering up) - [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 that 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 location of the computer running their code. Their solution should reveal the longitude and the latitude of the current location as well as an indicator of how accurate that…

Contents