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.
- Host: GitHub
- URL: https://github.com/philip-bui/s2-geometry-swift
- Owner: philip-bui
- License: mit
- Created: 2017-11-19T14:29:18.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2021-03-03T14:04:43.000Z (about 5 years ago)
- Last Synced: 2025-07-21T07:48:25.080Z (11 months ago)
- Topics: ios, map, s2-geometry, spatial-data, spatial-index, swift
- Language: Swift
- Homepage: http://s2geometry.io/
- Size: 145 KB
- Stars: 14
- Watchers: 2
- Forks: 12
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# S2Geometry Swift
[](https://travis-ci.org/philip-bui/s2-geometry-swift)
[](http://cocoapods.org/pods/S2GeometrySwift)
[](https://github.com/Carthage/Carthage)
[](http://cocoapods.org/pods/S2GeometrySwift)
[](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.