{"id":22192502,"url":"https://github.com/3sidedcube/cubegeojson","last_synced_at":"2025-07-03T09:04:04.835Z","repository":{"id":46862868,"uuid":"57956700","full_name":"3sidedcube/CubeGeoJSON","owner":"3sidedcube","description":"A GeoJSON library for iOS and OSX written in swift","archived":false,"fork":false,"pushed_at":"2024-11-27T12:11:09.000Z","size":98,"stargazers_count":9,"open_issues_count":1,"forks_count":1,"subscribers_count":10,"default_branch":"master","last_synced_at":"2024-11-27T13:20:00.890Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/3sidedcube.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-05-03T09:17:06.000Z","updated_at":"2024-11-27T12:07:52.000Z","dependencies_parsed_at":"2024-11-27T14:45:40.991Z","dependency_job_id":null,"html_url":"https://github.com/3sidedcube/CubeGeoJSON","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/3sidedcube%2FCubeGeoJSON","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/3sidedcube%2FCubeGeoJSON/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/3sidedcube%2FCubeGeoJSON/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/3sidedcube%2FCubeGeoJSON/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/3sidedcube","download_url":"https://codeload.github.com/3sidedcube/CubeGeoJSON/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227726308,"owners_count":17810443,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-02T12:25:38.455Z","updated_at":"2024-12-02T12:25:39.035Z","avatar_url":"https://github.com/3sidedcube.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CubeGeoJSON\n\n[![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage) [![Swift 5.5](http://img.shields.io/badge/swift-5.5-brightgreen.svg)](https://swift.org/blog/swift-5-5-released/)\n\nA GeoJSON library for iOS, macOS, and watchOS written in Swift.\n\nFeatures:\n\n- Parse all kinds of [Geometry](http://geojson.org/geojson-spec.html#geometry-objects) objects\n- Auto-Creates MKShape subclasses to represent your GeoJSON structure\n- Allows serialising back to swift dictionary objects\n- Adds useful helper methods for doing calculations with and editing GeoJSON structures\n\n## Installation\n\n### Carthage\n\n[Carthage](https://github.com/Carthage/Carthage) is a decentralized dependency manager that builds your dependencies and provides you with binary frameworks.\n\nYou can install Carthage with [Homebrew](http://brew.sh/) using the following command:\n\n```bash\n$ brew update\n$ brew install carthage\n```\n\nTo integrate CubeGeoJSON into your Xcode project using Carthage, specify it in your `Cartfile`:\n\n```\ngithub \"3sidedcube/CubeGeoJSON\" ~\u003e 2.0.0\n```\n\nThen run \n```bash\ncarthage update --use-xcframeworks\n```\nto build the framework and drag the built `GeoJSON.xcframework` into your Xcode project.\n\n### Manually\n\n- Add CubeGeoJSON as a git [submodule](http://git-scm.com/docs/git-submodule) by running the following command:\n\n```bash\n$ git submodule add https://github.com/3sidedcube/CubeGeoJSON.git\n```\n\n- Open the new `CubeGeoJSON` folder, and drag the `GeoJSON.xcodeproj` into the Project Navigator of your application's Xcode project.\n\n    \u003e It should appear nested underneath your application's blue project icon. Whether it is above or below all the other Xcode groups does not matter.\n\n- Make sure the `GeoJSON.xcodeproj` is set up with the same deployment target as your root project.\n- Add `GeoJSON.framework` as a target dependency to your project.\n\n## Usage\n\nInitialise a new Geometry object using the default `init(dictionary: [String:AnyObject)` method\n\n```swift\nimport GeoJSON\n\nlet geoJSON = [\n    \"type\": \"MultiPoint\",\n    \"coordinates\": [\n        [\n            -105.01621,\n            39.57422\n        ],\n        [\n            -80.6665134,\n            35.0539943\n        ]\n    ]\n]\n\nlet geometry = Geometry(dictionary: geoJSON)\n\nif let annotations : [MKPointAnnotation]? = geometry.shapes?.flatMap({ $0 as? MKPointAnnotation }) {\n  mapView.addAnnotations(annotations)\n}\n```\n\n## Contributing\n\n1. Fork it!\n2. Create your feature branch: `git checkout -b my-new-feature`\n3. Commit your changes: `git commit -am 'Add some feature'`\n4. Push to the branch: `git push origin my-new-feature`\n5. Submit a pull request :D\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F3sidedcube%2Fcubegeojson","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F3sidedcube%2Fcubegeojson","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F3sidedcube%2Fcubegeojson/lists"}