Stay organized with collections Save and categorize content based on your preferences.
Select platform: Android iOSThis page describes how to set up the utility library for the Maps SDK for iOS.
To try these utilities, you can either:
Follow these steps to add the utility library to your Xcode workspace:
Use Swift Package Managerhttps://github.com/googlemaps/google-maps-ios-utils
and select Next.Podfile
in your project directory. This file defines your project's dependencies.Google-Maps-iOS-Utils
pod. Here is an example which includes the dependencies you need for the Maps SDK for iOS and the utility library:
source 'https://github.com/CocoaPods/Specs.git' platform :ios, '16.0' target 'YOUR_APPLICATION_TARGET_NAME_HERE' do use_frameworks! pod 'GoogleMaps', '10.0.0' pod 'Google-Maps-iOS-Utils', '6.1.2' # x-release-please-version end
pod install
..xcworkspace
file to launch Xcode. From this time onwards, you must use the .xcworkspace
file to open the project.Note: The marker clustering utility is dependent on the quadtree, but you can use the quadtree without marker clustering. If you want only the quadtree utility, you can change pod 'Google-Maps-iOS-Utils'
to 'Google-Maps-iOS-Utils/QuadTree'
in your pod file.
See
Set up an Xcode Projectfor instructions on generating an API key and adding it to your Xcode project.
Build and run the projectAfter you add the API key, build and run the project.
Use a utility in your appSee the documentation on each utility for more information on using it in your app:
Install and run the demo appThe utility library includes a demo app that you can install and then try out each utility.
Install the demo app:
Use files from GitHubcd google-maps-ios-utils-master/samples/SwiftDemoApp
cd google-maps-ios-utils-master/samples/ObjCDemoApp
pod install
.xcworkspace
file to launch Xcode. From this time onwards, you must use the .xcworkspace
file to open the project.In
Get an API key, you generate an API key for your app. Now add that key to the Xcode project for the demo app.
Note: If your API key uses an Application restriction, ensure that you add the bundle identifier of your app to the key. For example, if you are running the demo app, the bundle identifier iscom.google.gmsutils.DemoApp
. See Get an API key for more information on restricting a key. Swift
Add your API key to your AppDelegate.swift
as follows:
import GoogleMaps
// Change this key to a valid key registered with the demo app bundle id. let mapsAPIKey = ""
Add your API key to your AppDelegate.m
as follows:
@import GoogleMaps;
// Change this key to a valid key registered with the demo app bundle id. static NSString *const kMapsAPIKey = @"";
After you add the API key, build and run the project:
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-07-23 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-07-23 UTC."],[[["This documentation guides you on setting up and utilizing the Google Maps SDK for iOS Utility Library, offering tools like marker clustering, quadtrees, and data rendering."],["You can integrate the library into your Xcode project using Swift Package Manager or CocoaPods, then access utilities for enhanced map functionalities."],["A demo app is available for exploring these utilities; you can install it via GitHub or CocoaPods and add your API key for testing."],["Before running the demo app or your own project, ensure you have a valid API key and potentially adjust bundle identifiers for application restrictions."],["Detailed instructions and code examples are provided for both Swift and Objective-C to facilitate seamless integration and usage of the library."]]],["To integrate the Maps SDK for iOS Utility Library, you can add it to an existing Xcode project via Swift Package Manager or CocoaPods. This involves adding the library's repository URL or pod dependency, selecting the desired version, and running the installation. Alternatively, you can install and run a demo app by downloading the code from GitHub, installing the dependencies with `pod install`, and adding your API key. Finally you can build and run the project.\n"]]
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4