0% found this document useful (0 votes)
19 views

Google Map - Usecase, Process & Billing - Key Generation

The document discusses generating a Google Map API key for use in the Nuclei-SDK. It provides steps to [1] create a project and enable billing, [2] enable the necessary Geocoding, Places, and Maps APIs, and [3] generate an API key. It recommends creating separate keys for Android and iOS. The document also estimates the billing cost of various map API calls used in the Nuclei cabs category.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
19 views

Google Map - Usecase, Process & Billing - Key Generation

The document discusses generating a Google Map API key for use in the Nuclei-SDK. It provides steps to [1] create a project and enable billing, [2] enable the necessary Geocoding, Places, and Maps APIs, and [3] generate an API key. It recommends creating separate keys for Android and iOS. The document also estimates the billing cost of various map API calls used in the Nuclei cabs category.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Generating Google Map Key for Nuclei-SDK

Use case:

The following APIs are used in the Cabs, Flights, Hotels, and Bus categories. The APIs
are used in the following cases:

a. When the user views, accesses and adjusts their location on the map on the
landing page. (Cabs category)
b. On the landing page, an API shows the different cabs available in the vicinity and
updates it every 20 seconds. (Cabs category)
c. When a user enters characters to search places, the API helps to autocomplete
the listing in source/destination. (Applicable to all the above-mentioned
categories)
d. When the user selects a particular place from the listing. (Applicable to all the
above-mentioned categories)

(Note: Without the google API key, the cabs category will not function).
Process of generating API Key:

1. Creating Project; video


a. In the Google Cloud Console, on the project selector page, click Create
Project to begin creating a new Cloud project.
Go to the project selector page
b. Make sure that billing is enabled for your project that is created above.
Confirm that billing is enabled for your project.

2. Enabling APi’s needed for Nuclei: video


a. See the Google Maps Platform APIs and SDKs that you can enable by
going to the Maps API Library page in the Cloud Console:
Go to the Maps API Library page
b. Nuclei-sdk need below API’s and SDK
i. Geocoding API
ii. Places API
iii. Maps SDK for Android
iv. Maps SDK for iOS

3. Generate a Key: video


a. Go to the Google Maps Platform > Credentials page.
Go to the Credentials page
b. On the Credentials page, click Create credentials > API key.
The API key created dialog displays your newly created API key.
c. Click Close.
The new API key is listed on the Credentials page under API keys.

Once the above steps are completed, a key is generated and can be used in the
application

Note: It is recommended to create a separate key for android and IOS and restrict the
key, watch the video attached in step 3 to know more on restrict the key
Billing of Google API

Map-API’s used at Nuclei-SDK

a. User lands on cabs category → ReverseGeolocationRequest (Geocoding API)


Every time user adjusts the location on map (avg 10)

b. Everytime user enters more than 2 character in places search and the listing
appears→ AutoCompleteRequest (Autocomplete api)

c. Every time user selects one of location in displayed listing


PlaceIdRequest (Geocoding API)

Assumptions:

a. User changes location 10 times (including pick and drop).


b. The direction api, for updating cab markers on map, is called every 20 seconds.
c. User keep the app in foreground for 20 min
d. 1 Dollar = Rs.82

$ ( 10* 17/1000 + T* 60/20 * 5/1000)


$ (170 + 15T) / 1000
$(170 + 15T) /1000

1 ride cost ( T = 20)


$(170 + 15 * 20) /1000
$ (170 + 300)/1000
$0.470 ~ Rs. 38.7 per ride

Google provides Free quota: $200 / month which means approximately ~ 425 rides
free / month

You might also like