mapbox-navigation-patterns
This skill guides building navigation features using Mapbox products.
Identity proven by GitHub's verified organisation badge (mapbox)
- Agents
- Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode, claude.ai and API
- License
- MIT (permissive)
- Pin
- f71cd72pinned Oct 9, 2026
- Context cost
- about 1,500 tokenswhen the skill loads
- GitHub stars
- 80on mapbox/mapbox-agent-skills
- Scripts
- None found
What it does
“Navigation implementation patterns for turn-by-turn directions, route optimization, real-time traffic, multi-stop routing, and voice guidance across web, iOS, and Android platforms”
Generated summary from the skill's own text
This skill guides building navigation features using Mapbox products. It covers the Directions API for route calculation on web platforms, and Navigation SDKs for iOS and Android that provide turn-by-turn UI, voice guidance in 30+ languages, real-time rerouting, and offline support. It includes decision trees for choosing the right tool and implementation patterns for each platform.
When to use it
- Building turn-by-turn navigation in native iOS or Android apps
- Adding routing and directions display to web applications
- Implementing multi-stop or delivery route optimization
- Needing voice-guided navigation with real-time traffic awareness
When not to
- Web apps needing voice guidance, which Directions API cannot provide
- Simple point-to-point map display without routing features
- When offline-first is essential but native development is not possible
Install
These commands install from the publisher's repository and need no account.
skills CLI
npx skills add mapbox/mapbox-agent-skills --skill mapbox-navigation-patternsInstalls from the repository's default branch, which may have changed since the commit we checked.
GitHub CLI 2.90 or later
gh skill install mapbox/mapbox-agent-skills mapbox-navigation-patterns@f71cd72b8d8937b06db440538bd65559eb792c49Installs the commit we checked (f71cd72).
Copy by hand
Download the folder at f71cd72 and put it in .claude/skills/mapbox-navigation-patterns for Claude Code and in .agents/skills/mapbox-navigation-patterns for Codex, Cursor, Gemini CLI, GitHub Copilot and OpenCode.
Claude Code plugin
/plugin install mapbox@claude-plugins-officialThe publisher's plugin in Claude's official marketplace. It may hold more than this skill, and we have not pinned it.
Copy for your agent
A prompt for any coding agent. It installs this skill from GitHub at the pinned commit, copies the files as they are, and runs nothing unless you ask.
Prompt
Install the agent skill "mapbox-navigation-patterns" by Mapbox. Source, pinned to commit f71cd72b8d8937b06db440538bd65559eb792c49: https://github.com/mapbox/mapbox-agent-skills/tree/f71cd72b8d8937b06db440538bd65559eb792c49/skills/mapbox-navigation-patterns 1. Download that folder at exactly this commit. Do not use the default branch. 2. Copy every file unchanged, keeping the folder structure, into .claude/skills/mapbox-navigation-patterns/ for Claude Code and .agents/skills/mapbox-navigation-patterns/ for Codex, Cursor, Gemini CLI, GitHub Copilot and OpenCode. Create the folders if they do not exist. 3. Do not edit the files, and do not run any script in the folder unless I ask you to. 4. When you are done, list the files you copied and where you put them. Listing and checks: https://www.agentnative.dev/skills/mapbox/mapbox-navigation-patterns
SKILL.md at the pin
--- name: mapbox-navigation-patterns description: Navigation implementation patterns for turn-by-turn directions, route optimization, real-time traffic, multi-stop routing, and voice guidance across web, iOS, and Android platforms --- # Mapbox Navigation Patterns Expert guidance for implementing navigation and routing features using Mapbox Directions API and Navigation SDKs. Covers turn-by-turn navigation, route optimization, real-time traffic integration, multi-stop routing, and navigation UI components. ## Use This Skill When User says things like: - "I need turn-by-turn navigation in my app" - "How do I add driving directions?" - "I want to show a route on the map" - "I need multi-stop routing" - "How do I add voice guidance?" - "I want real-time traffic updates" - "I need to optimize delivery routes" ## Product Overview ### Directions API (REST) **Best for:** Web applications, simple routing, backend route calculation **Features:** - Route calculation (driving, walking, cycling, traffic) - Alternative routes - Turn-by-turn instructions - Multi-stop routing (up to 25 waypoints) - Route optimization - Real-time traffic data - Avoid specific roads/areas **Pricing:** Pay per request ### Navigation SDK for iOS **Best for:** Native iOS apps with turn-by-turn navigation **Defaults:** SwiftUI app shell + wrap drop-in `NavigationViewController` via `UIViewControllerRepresentable` (official getting-started path). Use a fully custom Core UI ([CoreSDKExample](https://github.com/mapbox/mapbox-navigation-ios/tree/main/Examples/CoreSDKExample)) only when the user explicitly wants to build their own nav chrome. **Before coding:** SPM (`MapboxNavigationCore` + `MapboxNavigationUIKit`), `MBXAccessToken`, location permissions, background `audio`/`location` — see [install guide](https://docs.mapbox.com/ios/navigation/guides/install/) and the iOS reference checklist. Stable Core/UIKit releases do not need a `.netrc` download token. **Features:** - Drop-in turn-by-turn UI (`NavigationViewController`) — default - Optional fully custom Core UI (route progress / banner publishers) - Voice guidance (30+ languages) - Real-time rerouting - Traffic-aware routing - Offline maps and routing - Route progress tracking - Speed limit display **Pricing:** Monthly Active Users (MAU) based ### Navigation SDK for Android **Best for:** Native Android apps with turn-by-turn navigation **Features:** - Complete turn-by-turn navigation UI - Voice guidance (30+ languages) - Real-time rerouting - Traffic-aware routing - Offline maps and routing - Custom UI components - Route progress tracking - Speed limit display **Pricing:** Monthly Active Users (MAU) based ## Decision Guide ### Choose Directions API when: - ✅ Web application - ✅ Simple route display (no turn-by-turn) - ✅ Backend route calculation - ✅ Route planning and optimization - ✅ Multi-stop routing - ✅ Don't need voice guidance ### Choose Navigation SDK when: - ✅ Native mobile app (iOS/Android) - ✅ Need turn-by-turn navigation - ✅ Need voice guidance - ✅ Need navigation UI components - ✅ Need offline navigation - ✅ Need real-time rerouting - ✅ Building a navigation/delivery app ## Implementation Patterns - **[references/web-directions-api.md](references/web-directions-api.md)** - Directions API patterns for the web: basic route display, turn-by-turn instructions, alternative routes, multi-stop routing, route optimization, and congestion-based route coloring - **[references/ios-navigation-sdk.md](references/ios-navigation-sdk.md)** - When: iOS turn-by-turn, setup, default SwiftUI + wrapped `NavigationViewController`, Core opt-in, example catalog - **[references/ios-navigation-specialized.md](references/ios-navigation-specialized.md)** - When: multi-stop, route line, camera, road cameras, route alerts, or `NavigationMapView` customization - **[references/android-navigation-sdk.md](references/android-navigation-sdk.md)** - Navigation SDK for Android: basic turn-by-turn navigation, custom navigation UI, route line rendering, maneuver arrows, navigation camera, voice guidance - **[references/android-performance-antipatterns.md](references/android-performance-antipatterns.md)** - Android Navigation SDK performance and correctness antipatterns: Native Route Object traversal costs, threading, memory/lifecycle leaks, route management correctness, frequent-callback rendering efficiency, and Coordination API lifecycle - **[references/best-practices.md](references/best-practices.md)** - Route caching, error handling, performance optimization, user experience, and common use cases (delivery routing, ride-sharing ETAs, walking/cycling directions) ## Related Skills - **mapbox-search-integration**: Address search and geocoding - **mapbox-web-performance-patterns**: Optimizing navigation performance - **mapbox-ios-patterns**: iOS-specific integration patterns - **mapbox-android-patterns**: Android-specific integration patterns - **mapbox-token-security**: Securing your access tokens ## Resources - [Directions API Documentation](https://docs.mapbox.com/api/navigation/directions/) - [Navigation SDK for iOS](https://docs.mapbox.com/ios/navigation/) - [Navigation SDK for Android](https://docs.mapbox.com/android/navigation/) - [Optimization API Documentation](https://docs.mapbox.com/api/navigation/optimization/) - [Map Matching API](https://docs.mapbox.com/api/navigation/map-matching/) - [Navigation Products Overview](https://docs.mapbox.com/help/getting-started/navigation/) ## Quick Decision Guide **User says: "I need directions"** - Web app → Use Directions API - Mobile app → Use Navigation SDK **User says: "I need turn-by-turn navigation"** - iOS → Navigation SDK for iOS (SwiftUI + wrapped `NavigationViewController` by default; Core custom UI only if requested) - Android → Navigation SDK for Android - Web → Use Directions API + custom UI (no voice guidance) **User says: "I need to optimize delivery routes"** → Use Optimization API (multi-stop route optimization) **User says: "I need real-time traffic"** → Use `driving-traffic` profile with Directions API or Navigation SDK **User says: "I need voice guidance"** → Must use Navigation SDK (iOS/Android only) **User says: "Directions API or Navigation SDK?"** → Native turn-by-turn / voice → Navigation SDK (**MAU** pricing). Web / route display only → Directions API (**pay-per-request**).
From mapbox/mapbox-agent-skills at f71cd72, shown as plain text under its license: MIT (permissive). The license text is in LICENSE.md.
View SKILL.md on GitHub at f71cd72Files
- SKILL.md6.4 KB · 02bff9f669eb
- AGENTS.md15 KB · f8d9079bc39f
- evals/
- evals.json17 KB · 8821ecdb0055
- references/
- android-navigation-sdk.md22 KB · 943981f27404
- android-performance-antipatterns.md23 KB · 17c38cf172b2
- best-practices.md5.0 KB · 9ba0571daa8e
- ios-navigation-sdk.md18 KB · 6ad8a2d0d665
- ios-navigation-specialized.md7.2 KB · 4a4068cbed6d
- web-directions-api.md11 KB · b4a39e7840d8
9 files, 124 KB in total. Each file has a sha256 in the pin's manifest; the first 12 characters are shown.
Skill folder on GitHub at f71cd72More from Mapbox
mapbox-android-patterns
This skill provides official patterns for integrating Mapbox Maps SDK v11 on Android, covering setup, map initialization, markers, user location display…
Claude Code, Codex, Cursor +4 · about 2.5K tokens · pinned 6 days ago
mapbox-cartography
This skill provides cartographic expertise for designing effective maps with Mapbox, covering visual hierarchy, color theory, typography, and zoom strategies.
Claude Code, Codex, Cursor +4 · about 1.7K tokens · pinned 6 days ago
mapbox-data-visualization-patterns
This skill teaches the agent to implement data visualization patterns on Mapbox maps, including choropleth maps, heat maps, 3D extrusions, and animated data…
Claude Code, Codex, Cursor +4 · about 2.1K tokens · pinned 6 days ago
mapbox-flutter-patterns
This skill teaches agents the standard patterns for integrating the Mapbox Maps Flutter SDK into iOS and Android apps written in Dart.
Claude Code, Codex, Cursor +4 · about 2.3K tokens · pinned 6 days ago
mapbox-geospatial-operations
This skill guides agents on selecting appropriate geospatial tools from the Mapbox MCP Server based on problem requirements.
Claude Code, Codex, Cursor +4 · about 4.8K tokens · pinned 6 days ago
mapbox-google-maps-migration
This skill guides developers migrating from Google Maps Platform to Mapbox GL JS by comparing APIs, translating patterns, and highlighting architectural…
Claude Code, Codex, Cursor +4 · about 2.9K tokens · pinned 6 days ago
Related in Mobile
expo-app-intents
This skill adds Apple App Intents to Expo apps, enabling Siri voice commands and Shortcuts automation through Swift declarations that dispatch to JavaScript…
by ExpoOfficial publisher
Claude Code, Codex, Cursor +4 · about 3.6K tokens · pinned 6 days ago
eas-app-stores
This skill configures and executes iOS and Android app builds and store submissions using EAS, Expo's app distribution service.
by ExpoOfficial publisher
Claude Code, Codex, Cursor +3 · about 1.7K tokens · pinned 6 days ago
eas-simulator
Runs a user's app on a remote iOS or Android simulator hosted on EAS cloud infrastructure, accessible from machines without local simulator support like Linux…
by ExpoOfficial publisher
Claude Code, Codex, Cursor +3 · about 6.3K tokens · pinned 6 days ago
eas-update
Configures and publishes over-the-air JavaScript and asset updates using EAS Update and the EAS CLI.
by ExpoOfficial publisher
Claude Code, Codex, Cursor +3 · about 2.3K tokens · pinned 6 days ago
expo-animation
This skill guides building animations in React Native and Expo apps using Reanimated, Gesture Handler, and Expo Router.
by ExpoOfficial publisher
Claude Code, Codex, Cursor +3 · about 4.6K tokens · pinned 6 days ago
expo-app-clip
This skill adds an iOS App Clip target to an Expo project, creating a lightweight app experience invoked from URLs on your domain.
by ExpoOfficial publisher
Claude Code, Codex, Cursor +4 · about 2.3K tokens · pinned 6 days ago