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.

The Google Geolocation API

The Google Geolocation API - C++ Tutorial

From the course: Code Clinic: C++

Start my 1-month free trial

The Google Geolocation API

- [Instructor] Within the geolocation request header file on lines 15, 16, and 17, I define the URL for the geolocation API request. Notice that I've left lines 16 empty with a comment that says your API key. And that's because before you start developing with Google's geolocation API, you need to get an API key. Since so many different apps and websites use Google Maps, a key is needed to help identify who is making requests, charge them accordingly for the usage and manage the number of requests being made. Fortunately, it's easy to get a key if you already have a Google account. To get a unique key for my application, I've logged into my account and gone to cloud.google.com/maps-platform. Then I'll click the get started button. Select the places API. And click continue. Create or select the project I'll be using the API for and click next. Now, to be able to get a geolocation API key, you'll need to provide…

Contents