Swiftpack.co - googlemaps/google-maps-ios-utils as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
Google Maps SDK for iOS Utility Library
.package(url: "https://github.com/googlemaps/google-maps-ios-utils.git", from: "v4.0.0")

Run unit tests pod Carthage compatible GitHub contributors Apache-2.0

Google Maps SDK for iOS Utility Library


This open-source library contains classes that are useful for a wide range of applications using the Google Maps SDK for iOS.


  • iOS 11.0+



In your Podfile:


target 'TARGET_NAME' do
    pod 'Google-Maps-iOS-Utils', '~> 4.0.0'

Replace TARGET_NAME and then, in the Podfile directory, type:

$ pod install


In your Cartfile:

github "googlemaps/google-maps-ios-utils" ~> 4.0.0

See the Carthage doc for further installation instructions.

Swift Package Manager

Note: This feature is only available with Swift 5.3 (Xcode 12) or later.

Add the following to your dependencies value of your Package.swift file.

dependencies: [
    url: "https://github.com/googlemaps/google-maps-ios-utils.git",
    .upToNextMinor(from: "4.0.0")

In addition to this, you will also have to include the GoogleMaps dependency using one of the available installation options (CocoaPods, Carthage, or manual)

Samples and Example Usage

e.g. Displaying KML data

import GoogleMapsUtils

func renderKml() {
    // Parse KML
    let path: String = // Path to your KML file...
    let kmlUrl = URL(fileURLWithPath: path)
    let kmlParser = GMUKmlParser(url: kmlUrl)

    // Render parsed KML
    let renderer = GMUGeometryRenderer(
        map: mapView,
        geometries: kmlParser.placemarks,
        styles: kmlParser.styles,
        styleMaps: kmlParser.styleMaps

You can see more example usages in our sample projects.


Encounter an issue while using this library?

If you find a bug or have a feature request, please file an issue. Or, if you'd like to contribute, please refer to our contributing guide and our code of conduct.

You can also reach us on our Discord channel.

For more information, check out the detailed guide on the Google Developers site.


Stars: 594
Last commit: 1 week ago

Ad: Job Offers

iOS Software Engineer @ Perry Street Software
Perry Street Software is Jack’d and SCRUFF. We are two of the world’s largest gay, bi, trans and queer social dating apps on iOS and Android. Our brands reach more than 20 million members worldwide so members can connect, meet and express themselves on a platform that prioritizes privacy and security. We invest heavily into SwiftUI and using Swift Packages to modularize the codebase.

Submit a free job ad (while I'm testing this). The analytics numbers for this website are here.

Release Notes

1 week ago

4.0.0 (2021-10-08)

  • feat!: Bump minimum to iOS 11 (#387) (faa691e), closes #387


  • iOS 10 is no longer supported

Change-Id: Ia2264657e70c9ea165f0a51d092b649312114f38

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics