Why second API Key is needed and how to obtain it?

When you select some options like geolocation you will end up in asking for second API Key. It is because the main API Key you created has HTTP Referrer restrictions, but some calls are made by our servers without HTTP Referrer. Because of that we cannot do these calls with the main API Key and need the second one without security restrictions. Don’t worry that your second key will not have security enabled, we will do these calls only internally without exposing this API Key anywhere, so no one will ever see it.

To obtain the second API Key follow these steps:

  1. Go to https://console.developers.google.com/apis/credentials (sign in to the Google Account if you’re not).
  2. On top select MyCarTracks project if it’s not already selected

    Google APIs select MyCarTracks project
  3. Click Create credentials and select API key option.

    Create new API selection - MyCarTracks

  4. The new API key will be created and shown. Copy this key and paste it into MyCarTracks settings as the second API Key. Don’t restrict the key, just close the dialog.
    API Key created - MyCarTracks

Does the API key show as not valid?

If you enter the API key and our form shows you that the key is not valid try these steps:

  1. Go to the Developer console – https://console.developers.google.com/ and again select the MyCarTracks project on top in case it’s not selected.
  2. Scroll down to the table with services and search for Geocoding API. Click on it.
  3. Now on top right click on ENABLE.
  4. Now go back and search for Geolocation API. Click on it.
  5. Again, on the top right click ENABLE.
  6. Repeat the steps and enable also Places API.
  7. Make sure Geocoding, Geolocation, and Places APIs are enabled.

Was this article helpful?

Related Articles