Integrating Google Maps with Unity
Here, I will briefly discuss how to set up the Google Static Map API so that it can be called from a Unity based App. The first thing you need to do is to go to Google’s Maps Static API, at the below link.
Start Here:
Overview | Maps Static API | Google Developers
Scroll down and click get started with Google Maps Platform, which will take you to the following page:
Now click Get Started. If you don’t already have a Google Cloud account you will need to create an account and give them a credit card to back your account. The account creation process is fairly straightforward and easy to follow. Once the account is created, a project will be started with the Maps Static API. You will be given an API key that is essential for your app.
If you already have an account, you can click on the Create Project link as seen below from your dashboard:
Now fill in the details below and hit the Create button:
Make sure Maps Static API is enabled for your project. This can be done from the APIs tab on the right of the screen below if it wasn’t initially configured:
Also, if you happen to forget or lose your API key you can go to the credentials tab on the right and copy it again. You can also use the credentials tab to generate an API key if needed.
Once your account is created, a project is setup with Maps Static API, and you have an API key, you are ready to call the API from your app. Note there is a cost to using this measured at a couple dollars per 1000 requests, so don’t go crazy with your new map.
I’ll cover how to make an API request in another post.