Before we get on to implementing Geolocation with Google Maps, we need to do some setup work that is pretty simple. As you may already know, Google Maps provides an API that you can tap into to implement their maps into your application, making it easy for you to display information relative to a user's input or even better—their current location. However, for several reasons we need to use an API key from Google to authorize our application and keep track of the requests made from your application. In this section we'll cover the setup work and hopefully move you along quickly.
First of all, you need to know that there are several APIs related to Maps, including JavaScript v3, Places, iOS SDK, Android API, Earth API, and more. For our purposes we'll be using the JavaScript API v3; note that we will be using using version 3 of the API. If you would like more information on the several APIs you can visit the following page: