{"id":13995679,"url":"https://github.com/mapbox/mapbox-navigation-ios","last_synced_at":"2026-04-02T21:23:57.493Z","repository":{"id":37614928,"uuid":"73870932","full_name":"mapbox/mapbox-navigation-ios","owner":"mapbox","description":"Turn-by-turn navigation logic and UI in Swift on iOS","archived":false,"fork":false,"pushed_at":"2026-03-26T19:19:16.000Z","size":1264501,"stargazers_count":913,"open_issues_count":202,"forks_count":324,"subscribers_count":128,"default_branch":"main","last_synced_at":"2026-03-27T05:23:16.591Z","etag":null,"topics":["in-scope","priority"],"latest_commit_sha":null,"homepage":"https://docs.mapbox.com/ios/navigation/","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mapbox.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2016-11-16T01:23:44.000Z","updated_at":"2026-03-16T06:41:16.000Z","dependencies_parsed_at":"2024-07-15T20:18:43.995Z","dependency_job_id":"d15c70e1-8b78-4385-8eae-8f067674a7ce","html_url":"https://github.com/mapbox/mapbox-navigation-ios","commit_stats":{"total_commits":6508,"total_committers":95,"mean_commits":68.50526315789473,"dds":0.8452673632452367,"last_synced_commit":"b9c235e665ea2d3b7cd096e9c6128e97c1d4f00c"},"previous_names":[],"tags_count":359,"template":false,"template_full_name":null,"purl":"pkg:github/mapbox/mapbox-navigation-ios","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mapbox%2Fmapbox-navigation-ios","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mapbox%2Fmapbox-navigation-ios/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mapbox%2Fmapbox-navigation-ios/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mapbox%2Fmapbox-navigation-ios/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mapbox","download_url":"https://codeload.github.com/mapbox/mapbox-navigation-ios/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mapbox%2Fmapbox-navigation-ios/sbom","scorecard":{"id":5719,"data":{"date":"2025-08-04","repo":{"name":"github.com/mapbox/mapbox-navigation-ios","commit":"1be0e0d401c757b208b6cafe0e6a7d9005a7d0f0"},"scorecard":{"version":"v5.2.1-28-gc1d103a9","commit":"c1d103a9bb9f635ec7260bf9aa0699466fa4be0e"},"score":6,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#packaging"}},{"name":"Maintained","score":10,"reason":"30 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 10","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#maintained"}},{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#cii-best-practices"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#vulnerabilities"}},{"name":"License","score":9,"reason":"license file detected","details":["Info: project has a license file: LICENSE.md:0","Warn: project license file does not contain an FSF or OSI license."],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#license"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#binary-artifacts"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#signed-releases"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#fuzzing"}},{"name":"Security-Policy","score":10,"reason":"security policy file detected","details":["Info: security policy file detected: github.com/mapbox/.github/SECURITY.md:1","Info: Found linked content: github.com/mapbox/.github/SECURITY.md:1","Info: Found disclosure, vulnerability, and/or timelines in security policy: github.com/mapbox/.github/SECURITY.md:1","Info: Found text in security policy: github.com/mapbox/.github/SECURITY.md:1"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#security-policy"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#pinned-dependencies"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during GetBranch(release-v2.18): error during branchesHandler.query: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#branch-protection"}}]},"last_synced_at":"2025-08-14T13:29:40.237Z","repository_id":37614928,"created_at":"2025-08-14T13:29:40.237Z","updated_at":"2025-08-14T13:29:40.237Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31316639,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-02T12:59:32.332Z","status":"ssl_error","status_checked_at":"2026-04-02T12:54:48.875Z","response_time":89,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["in-scope","priority"],"created_at":"2024-08-09T14:03:32.751Z","updated_at":"2026-04-02T21:23:57.488Z","avatar_url":"https://github.com/mapbox.png","language":"Swift","readme":"# [Mapbox Navigation SDK for iOS](https://docs.mapbox.com/ios/navigation/)\n\n[![SPM compatible](https://img.shields.io/badge/SPM-compatible-4BC51D.svg?style=flat)](https://swift.org/package-manager/)\n\n\u003cimg alt=\"Mapbox Navigation SDK\" src=\"./.github/img/navigation.png\" width=\"258\" align=\"right\" /\u003e\n\nMapbox Navigation gives you all the tools you need to add turn-by-turn navigation to your iOS application.\n\nGet up and running in a few minutes with our drop-in turn-by-turn navigation `NavigationViewController`, or build a completely custom turn-by-turn navigation app with our core components for routing and navigation.\n\n### Features\n\n* A full-fledged turn-by-turn navigation UI for iPhone, iPad, and CarPlay that’s ready to drop into your application\n* [Professionally designed map styles](https://www.mapbox.com/maps/) for daytime and nighttime driving\n* Worldwide driving, cycling, and walking directions powered by [open data](https://www.mapbox.com/about/maps/) and user feedback\n* Traffic avoidance and proactive rerouting based on current conditions in [over 55 countries](https://docs.mapbox.com/help/how-mapbox-works/directions/#traffic-data)\n* Natural-sounding turn instructions\n* Support for over two dozen languages\n\n### [Documentation](https://docs.mapbox.com/ios/navigation/api-reference/)\n\n## Requirements\n\nThe Mapbox Navigation SDK and Core Navigation are compatible with applications written in Swift 5.9 in Xcode 16.0 and above. The Mapbox Navigation and Mapbox Core Navigation frameworks run on iOS 14.0 and above.\n\nThe Mapbox Navigation SDK is also available [for Android](https://github.com/mapbox/mapbox-navigation-android/).\n\n## Installation\n\n### Private token configuration\n\nTo install the SDK in an application using [Swift Package Manager](https://swift.org/package-manager/):\n\n1. Go to your [Mapbox account dashboard](https://account.mapbox.com/) and create an access token that has the `DOWNLOADS:READ` scope. **PLEASE NOTE: This is not the same as your production Mapbox API token. Make sure to keep it private and do not insert it into any Info.plist file.** Create a file named `.netrc` in your home directory if it doesn’t already exist, then add the following lines to the end of the file:\n   ```\n   machine api.mapbox.com\n     login mapbox\n     password PRIVATE_MAPBOX_API_TOKEN\n   ```\n   where _PRIVATE_MAPBOX_API_TOKEN_ is your Mapbox API token with the `DOWNLOADS:READ` scope.\n\n### Using Swift Package Manager\n\n1. In Xcode, go to File ‣ Swift Packages ‣ Add Package Dependency.\n\n1. Enter `https://github.com/mapbox/mapbox-navigation-ios.git` as the package repository and click Next.\n\n1. Set Rules to Version, Up to Next Major, and enter `3.1.0` as the minimum version requirement. Click Next.\n\nTo install the MapboxNavigation framework in another package rather than an application, run `swift package init` to create a Package.swift, then add the following dependency:\n\n```swift\n// Latest stable release\n.package(url: \"https://github.com/mapbox/mapbox-navigation-ios.git\", from: \"3.1.0\")\n```\n\n### Project configuration\n\n1. Mapbox APIs and vector tiles require a Mapbox account and API access token. In the project editor, select the application target, then go to the Info tab. Under the “Custom iOS Target Properties” section, set `MBXAccessToken` to your access token. You can obtain an access token from the [Mapbox account page](https://account.mapbox.com/access-tokens/).\n\n1. In order for the SDK to track the user’s location as they move along the route, set `NSLocationWhenInUseUsageDescription` to:\n   \u003e Shows your location on the map and helps improve the map.\n\n1. Users expect the SDK to continue to track the user’s location and deliver audible instructions even while a different application is visible or the device is locked. Go to the Signing \u0026 Capabilities tab. Under the Background Modes section, enable “Audio, AirPlay, and Picture in Picture” and “Location updates”. (Alternatively, add the `audio` and `location` values to the `UIBackgroundModes` array in the Info tab.)\n\nNow import the relevant modules and present a new `NavigationViewController`. You can also push to a navigation view controller from within a storyboard if your application’s UI is laid out in Interface Builder.\n\n## Examples\n\nThis repository contains [a testbed application](./Examples) that exercises a variety of navigation SDK features. Configure [Private](#privat-token-configuration) and [Public](#using-swift-package-manager) tokens to run this application.\n\n```swift\nimport MapboxDirections\nimport MapboxNavigationCore\nimport MapboxNavigationUIKit\nimport UIKit\nimport CoreLocation\n```\n\n```swift\n// Define the Mapbox Navigation entry point.\nlet mapboxNavigationProvider = MapboxNavigationProvider(coreConfig: .init())\nlazy var mapboxNavigation = mapboxNavigationProvider.mapboxNavigation\n```\n\n```swift\n// Define two waypoints to travel between\nlet origin = Waypoint(coordinate: CLLocationCoordinate2D(latitude: 38.9131752, longitude: -77.0324047), name: \"Mapbox\")\nlet destination = Waypoint(coordinate: CLLocationCoordinate2D(latitude: 38.8977, longitude: -77.0365), name: \"White House\")\n\n// Set options\nlet options = NavigationRouteOptions(waypoints: [origin, destination])\n\n// Request a route using RoutingProvider\nlet request = mapboxNavigation.routingProvider().calculateRoutes(options: options)   \nTask {\n    switch await request.result {\n    case .failure(let error):\n        print(error.localizedDescription)\n    case .success(let navigationRoutes):\n        // Pass the generated navigation routes to the the NavigationViewController\n        let navigationOptions = NavigationOptions(mapboxNavigation: mapboxNavigation,\n                                                  voiceController: mapboxNavigationProvider.routeVoiceController,\n                                                  eventsManager: mapboxNavigationProvider.eventsManager())\n        let navigationViewController = NavigationViewController(navigationRoutes: navigationRoutes,\n                                                                navigationOptions: navigationOptions)\n        navigationViewController.modalPresentationStyle = .fullScreen\n\n        present(navigationViewController, animated: true, completion: nil)\n    }\n}\n```\n\nConsult the [API reference](https://docs.mapbox.com/ios/navigation/v3/api-reference/) for further details.\n\n## Customization\n\n### Styling\n\nYou can customize the appearance in order to blend in with the rest of your app.\n\n```swift\nclass CustomStandardDayStyle: StandardDayStyle {\n    required init() {\n        super.init()\n        mapStyleURL = URL(string: \"mapbox://styles/mapbox/satellite-streets-v9\")!\n        styleType = .night\n    }\n\n    override func apply() {\n        super.apply()\n        BottomBannerView.appearance(for: UITraitCollection(userInterfaceIdiom: .phone)).backgroundColor = .orange\n        BottomBannerView.appearance(for: UITraitCollection(userInterfaceIdiom: .pad)).backgroundColor = .orange\n    }\n}\n```\n\nthen initialize `NavigationViewController` with your style or styles:\n\n```swift\nlet navigationOptions = NavigationOptions(\n            mapboxNavigation: navigationProvider.mapboxNavigation,\n            voiceController: navigationProvider.routeVoiceController,\n            eventsManager: navigationProvider.eventsManager(),\n            styles: [CustomStandardDayStyle()]\n        )\nNavigationViewController(navigationRoutes: navigationRoutes, navigationOptions: navigationOptions)\n```\n\n## License\n\nThe Mapbox Navigation SDK for iOS is released under the Mapbox Terms of Service. See [LICENSE.md](./LICENSE.md) for details.\n","funding_links":[],"categories":["Swift","Geospatial Library"],"sub_categories":["Swift"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmapbox%2Fmapbox-navigation-ios","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmapbox%2Fmapbox-navigation-ios","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmapbox%2Fmapbox-navigation-ios/lists"}