I would like to know what is difference between com.google.android.geo.API_KEY
& com.google.android.maps.v2.API_KEY
meta tags. They are both used for setting Google Maps API Key. But cannot seem to find the difference and which is preferable to use ?
Asked
Active
Viewed 1.3k times
12

Henry
- 17,490
- 7
- 63
- 98

Sameer Tanuj
- 193
- 1
- 2
- 6
-
possible duplicate of https://stackoverflow.com/questions/36112984/is-the-map-api-key-and-google-places-api-the-same – Nikhil Borad Dec 28 '17 at 08:52
1 Answers
10
From the official documentation:
Note: As shown above, com.google.android.geo.API_KEY is the recommended metadata name for the API key. A key with this name can be used to authenticate to multiple Google Maps-based APIs on the Android platform, including the Google Maps Android API. For backwards compatibility, the API also supports the name com.google.android.maps.v2.API_KEY. This legacy name allows authentication to the Android Maps API v2 only. An application can specify only one of the API key metadata names. If both are specified, the API throws an exception.

Henry
- 17,490
- 7
- 63
- 98
-
2What this line supposed to mean? `This legacy name allows authentication to the Android Maps API v2 only.` – Sameer Tanuj Jan 03 '18 at 08:48