Now we need to create a project in Google Cloud.
Go to console.cloud.google.com and login into your account.
Create a new project.
So from here create a new project project name Uber Cloud and here select no organization or any other
projects and you are viewing Google Maps compose app in organization organization.
We need to view our project.
So from here select Uber Clone.
And now we are viewing the project Uber.
Let's add the APIs and services.
So click on this.
And by the way in order to get all products all APIs free, you need to uh like authenticate your your
account by enabling and adding the payment, uh, payment methods, your and your credit card.
By the way, there is no fees, no hidden fees, no, uh, dollars to pay on Google Cloud Console if
you don't, exceed a specific code.
So in this course and in these videos, we're not exceed their quotas.
And we're not gonna pay anything from here.
Go to library and make sure you select the project.
Your project Uber clone.
Clone.
You can search for APIs and services.
This for maps.
You can select or discover 32 APIs.
And those are very important and very interesting things you can learn.
Okay.
We're gonna learn about a few of them.
Also, you can discover machine learning APIs, Google Workspace, YouTube drive, social advertising,
mobile, Google Enterprise APIs, and others.
Okay, those are very interesting APIs.
But in this course and in this section, we're gonna implement Google Maps Places API.
And we're gonna include that directions API also.
Okay, so from here maps SDK click enable.
If you didn't verify your account, there is a new window to use the the default payment gateways and
default payment methods.
So after getting verified and adding your account and billing account billing payment method, you'll
get your API key.
Copy your API key, go to Google Maps, select restriction type Android apps package name.
Here we need the package name.
You can get it from the main activity, so copy it.
Paste it.
Here we get the h1 s h a1 a certificate.
As we done before go to Gradle, select the signing report, click enter and here inside the Logcat
you'll get the SHA1 certificate.
Scroll up and here get the SH one fingerprint paste it restrict key.
And here we go.
We restrict our project to this Google Cloud project.
Enable APIs preview APIs.
And here you can select places SDK and maps SDK.
Okay click done.
And here we go.
We can get the places SDK autocomplete map on your project and others okay.
But we are interested in getting the Android.
So here maps SDK for Android click on it.
And we've added before this Google Cloud or Google Map.
Now let's run this application Alt+.
Enter to import the function, select the app, the app and then run the project.
We have a crash.
Maybe we missed the the internet permissions I think.
So I need to get the API key and the permissions.
So go to the manifest.
Inside this manifest we need to declare the permissions, so uses permission internet.
Also, we need to specify here before the activity and inside the application we need to specify the
Google Maps API key.
So meta data Android name.
Com dot Google dot Android dot g o dot API underscore key.
And here we need to specify the value.
Let's go back to the Google Maps.
We need the APIs and services or the keys and credentials so you can get them.
Click show key.
Copy this key and paste it here okay then close it.
Run again.
And this is very important because this is the API key for Google Maps.
So this will connect and authenticate this project to the Google Cloud Platform okay let's run.
And here we go.
The map appears and everything is working fine.