Bravo Mart

View Categories

Google Maps Integration

< 1 min read

1. Generate API Key #

  1. Visit: Google Cloud Console
  2. Create a project or select your existing one.
  3. Go to APIs & Services > Credentials.
  4. Click Create Credentials > API Key.
  5. Enable required APIs:

Required APIs: #

  • Maps SDK for Android
  • Maps SDK for iOS
  • Maps JavaScript API
  • Places API (New)
  • Routes API (New)
  • Distance Matrix API
  • Geocoding API
  • Direction API
  • Geolocation API

⚠️ Must enable billing on your Google Cloud project.

Add Key to Your Project #

Android Setup #

File: android/app/src/main/AndroidManifest.xml

<meta-data
  android:name="com.google.android.geo.API_KEY"
  android:value="YOUR_ANDROID_MAP_API_KEY" />

iOS Setup #

File: ios/Runner/AppDelegate.swift

import GoogleMaps

GMSServices.provideAPIKey("YOUR_IOS_MAP_API_KEY")

Also ensure ios/Podfile has:

platform :ios, '12.0'

Leave a Reply