{"id":18909847,"url":"https://github.com/map-ir/mapir-ios-sdk-services","last_synced_at":"2026-06-09T16:31:44.252Z","repository":{"id":56935096,"uuid":"197351915","full_name":"map-ir/mapir-ios-sdk-services","owner":"map-ir","description":"A wrapper to access services of Map.ir in a Swift-y way.","archived":false,"fork":false,"pushed_at":"2020-06-09T15:06:09.000Z","size":1684,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":5,"default_branch":"master","last_synced_at":"2026-01-16T21:49:23.965Z","etag":null,"topics":["cocoapods","ios","swift","xcode"],"latest_commit_sha":null,"homepage":"https://support.map.ir","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/map-ir.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}},"created_at":"2019-07-17T08:50:36.000Z","updated_at":"2020-06-09T15:05:41.000Z","dependencies_parsed_at":"2022-08-21T00:40:31.745Z","dependency_job_id":null,"html_url":"https://github.com/map-ir/mapir-ios-sdk-services","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/map-ir/mapir-ios-sdk-services","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/map-ir%2Fmapir-ios-sdk-services","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/map-ir%2Fmapir-ios-sdk-services/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/map-ir%2Fmapir-ios-sdk-services/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/map-ir%2Fmapir-ios-sdk-services/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/map-ir","download_url":"https://codeload.github.com/map-ir/mapir-ios-sdk-services/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/map-ir%2Fmapir-ios-sdk-services/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34116457,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-09T02:00:06.510Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["cocoapods","ios","swift","xcode"],"created_at":"2024-11-08T09:35:24.078Z","updated_at":"2026-06-09T16:31:44.236Z","avatar_url":"https://github.com/map-ir.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n\u003cimg width=\"200\" src=\"https://corp.map.ir/wp-content/uploads/2019/06/map-site-logo-1.png\" alt=\"MapirServices Logo\"\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n\u003ca href=\"https://developer.apple.com/swift/\"\u003e\n\u003cimg src=\"https://img.shields.io/badge/Swift-5.2-orange.svg?style=flat\" alt=\"Swift 5.2\"\u003e\n\u003c/a\u003e\n\n\u003ca href=\"http://cocoapods.org/pods/MapirServices\"\u003e\n\u003cimg src=\"https://img.shields.io/cocoapods/v/MapirServices.svg?style=flat\" alt=\"Version\"\u003e\n\u003c/a\u003e\n\u003ca href=\"http://cocoapods.org/pods/MapirServices\"\u003e\n\u003cimg src=\"https://img.shields.io/cocoapods/p/MapirServices.svg?style=flat\" alt=\"Platform\"\u003e\n\u003c/a\u003e\n\n\u003ca href=\"https://github.com/Carthage/Carthage\"\u003e\n\u003cimg src=\"https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat\" alt=\"Carthage Compatible\"\u003e\n\u003c/a\u003e\n\u003ca href=\"https://github.com/apple/swift-package-manager\"\u003e\n\u003cimg src=\"https://img.shields.io/badge/Swift%20Package%20Manager-compatible-brightgreen.svg\" alt=\"SPM\"\u003e\n\u003c/a\u003e\n\u003c/p\u003e\n\n# MapirServices\n\nℹ️ MapirServices framework, brings you easy access to Map.ir APIs and services.\n\n## Example\n\nThe example application is the best way to see `MapirServices` in action. Simply open the `MapirServices.xcodeproj` and run the `MapirServices Swift Example` scheme.\n\n## Installation\n\n### CocoaPods\n\nMapirServices is available through [CocoaPods](http://cocoapods.org). To install\nit, simply add the following line to your Podfile:\n\n```ruby\npod 'MapirServices'\n```\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\nTo integrate MapirServices into your Xcode project using Carthage, specify it in your `Cartfile`:\n\n```ogdl\ngithub \"map-ir/mapir-ios-sdk-services\"\n```\n\nRun `carthage update` to build the framework and drag the built `MapirServices.framework` into your Xcode project. \n\nOn your application targets’ “Build Phases” settings tab, click the “+” icon and choose “New Run Script Phase” and add the Framework path as mentioned in [Carthage Getting started Step 4, 5 and 6](https://github.com/Carthage/Carthage/blob/master/README.md#if-youre-building-for-ios-tvos-or-watchos)\n\n### Swift Package Manager\n\nTo integrate using Apple's [Swift Package Manager](https://swift.org/package-manager/), add the following as a dependency to your `Package.swift`:\n\n```swift\ndependencies: [\n    .package(url: \"https://github.com/map-ir/mapir-ios-sdk-services\", from: \"1.0.0\")\n]\n```\n\n### Manually\n\nIf you prefer not to use any of the a forementioned dependency managers, you can integrate MapirServices into your project manually. Simply drag the `Sources` Folder into your Xcode project. (not recommended)\n\n\n## Usage\n1. Get an access token from [App Registration](https://corp.map.ir/registration/) site.\n2. Add a key-value pair of your access token to your project's `info.plist`. Key must be \"`MapirAPIKey`\" and set the access token as value.\n3. First import SDK using \n    ```swift\n    import MapirServices\n    ```\n4. Create an instance of a class you need. \n    ```swift\n    // It's used for geocoding addresses (not available at this moment) and reverse-geocoding coordintes.\n    let geocoder = Geocoder()\n    \n    // Can be used to search over Map.ir data of places and any other geographical place.\n    let search = Search()\n    \n    // `Directions` brings routing features to you. \n    // Using `Directions` you can find multiple routes between multiple waypoints, considering restrictions and traffic situation. \n    let directions = Directions()\n    \n    // Use `Geofence` to manipulate fences that are associated with you API Key on Map.ir. \n    let geofence = Geofence()\n    \n    // `MapSnapshotter` is used to create static image of piece of the map. \n    let snapshotter = MapSnapshotter()\n    \n    // It's used to calculate the distance and duration between multiple origins and multiple destinations.\n    let distanceMatrix = DistanceMatrix()\n    \n    ```\n    \n## License\n\nSee LICENSE file.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmap-ir%2Fmapir-ios-sdk-services","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmap-ir%2Fmapir-ios-sdk-services","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmap-ir%2Fmapir-ios-sdk-services/lists"}