[](https://travis-ci.org/googlemaps/google-maps-ios-utils)
[](https://cocoapods.org/pods/Google-Maps-iOS-Utils)


Google Maps SDK for iOS Utility Library
=======================================
## Description
This open-source library contains classes that are useful for a wide
range of applications using the [Google Maps SDK for iOS][sdk].
- **Marker clustering** — handles the display of a large number of points
- **Marker customization** - [display custom markers][customizing-markers]
- **Quadtree data structure** - indexes 2D geometry points and performs
2D range queries
- **Geometry libraries** - [KML and GeoJSON rendering][geometry-rendering]
- **Heatmaps** - [Heatmap rendering][heatmap-rendering]

## Requirements
* iOS 9.0+
* CocoaPods
## Installation
### [CocoaPods](https://guides.cocoapods.org/using/using-cocoapods.html)
In your `Podfile`:
```ruby
use_frameworks!
target 'TARGET_NAME' do
pod 'Google-Maps-iOS-Utils', '~> 3.1.1'
end
```
Replace `TARGET_NAME` and then, in the `Podfile` directory, type:
```bash
$ pod install
```
### [Carthage](https://github.com/Carthage/Carthage)
Coming soon! See [#249].
## Samples and Example Usage
e.g. Displaying KML data
```swift
import GoogleMapsUtils
func renderKml() {
// Parse KML
let path: String = // Path to your KML file...
let kmlUrl = URL(fileURLWithPath: path)
let kmlParser = GMUKmlParser(url: kmlUrl)
kmlParser.parse()
// Render parsed KML
let renderer = GMUGeometryRenderer(
map: mapView,
geometries: kmlParser.placemarks,
styles: kmlParser.styles,
styleMaps: kmlParser.styleMaps
)
renderer.render()
}
```
You can see more example usages in our [sample][samples] projects.
## Support
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][contributing] 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][devsite-guide].
[#249]: https://github.com/googlemaps/google-maps-ios-utils/issues/249
[Discord channel]: https://discord.gg/9fwRNWg
[contributing]: CONTRIBUTING.md
[code of conduct]: CODE_OF_CONDUCT.md
[devsite-guide]: https://developers.google.com/maps/documentation/ios-sdk/utility/
[sdk]: https://developers.google.com/maps/documentation/ios-sdk
[issue]: https://github.com/googlemaps/google-maps-ios-utils/issues
[customizing-markers]: CustomMarkers.md
[geometry-rendering]: GeometryRendering.md
[heatmap-rendering]: HeatmapRendering.md
[samples]: https://github.com/googlemaps/google-maps-ios-utils/tree/master/samples