An open API service indexing awesome lists of open source software.

https://github.com/philip-bui/s2-geometry-swift

Swift port of S2 Geometry.
https://github.com/philip-bui/s2-geometry-swift

ios map s2-geometry spatial-data spatial-index swift

Last synced: 7 months ago
JSON representation

Swift port of S2 Geometry.

Awesome Lists containing this project

README

          

# S2Geometry Swift

[![CI Status](http://img.shields.io/travis/philip-bui/s2-geometry-swift.svg?style=flat)](https://travis-ci.org/philip-bui/s2-geometry-swift)
[![Version](https://img.shields.io/cocoapods/v/S2GeometrySwift.svg?style=flat)](http://cocoapods.org/pods/S2GeometrySwift)
[![Carthage Compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage)
[![Platform](https://img.shields.io/cocoapods/p/S2GeometrySwift.svg?style=flat)](http://cocoapods.org/pods/S2GeometrySwift)
[![License](https://img.shields.io/cocoapods/l/S2GeometrySwift.svg?style=flat)](https://github.com/philip-bui/s2-geometry-swift/blob/master/LICENSE)

## Requirements

- iOS 8.0+ / macOS 10.9+ / tvOS 9.0+ / watchOS 2.0+
- xCode 10.3+
- Swift 4.2+

## Installation

### CocoaPods

[CocoaPods](https://cocoapods.org) is a dependency manager for Cocoa projects. For usage and installation instructions, visit their website. To integrate S2Geometry into your Xcode project using CocoaPods, specify it in your `Podfile`:

```ruby
pod 'S2GeometrySwift'
```

### Carthage

[Carthage](https://github.com/Carthage/Carthage) is a decentralized dependency manager that builds your dependencies and provides you with binary frameworks. To integrate S2GeometrySwift into your Xcode project using Carthage, specify it in your `Cartfile`:

```ogdl
github "philip-bui/s2-geometry-swift"
```

### Swift Package Manager

The [Swift Package Manager](https://swift.org/package-manager/) is a tool for automating the distribution of Swift code and is integrated into the `swift` compiler. It is in early development, but S2Geometry does support its use on supported platforms.

Once you have your Swift package set up, adding S2Geometry as a dependency is as easy as adding it to the `dependencies` value of your `Package.swift`.

```swift
dependencies: [
.package(url: "https://github.com/philip-bui/s2-geometry-swift.git", from: "1.0.3"))
]
```

## Special Thanks

- [Google](http://s2geometry.io/) - Creator of S2Geometry.
- [Contributors](https://github.com/philip-bui/s2-geometry-swift/graphs/contributors) - Everyone committed to keeping S2Geometry Swift up to date.

## License

S2GeometrySwift is available under the MIT license. [See LICENSE](https://github.com/philip-bui/s2-geometry-swift/blob/master/LICENSE) for details.