xpay tools logo
  • Tools
  • Collections
  • Skills
  • Docs
  • xpay.sh
  1. Home
  2. ›
  3. Mapbox
  4. ›
  5. Directions Tool

Mapbox
Mapbox
Tool

Directions Tool

directions_tool

Fetches directions from Mapbox API based on provided coordinates and direction method.

How it works ↓

Pricing

Per call

$0.01

Model

flat


Pay only for what you use. No subscriptions.
Inputs

max_width

number

depart_at

string

max_weight

number

routing_profile

string

geometries

string

coordinates *

array

alternatives

boolean

max_height

number

arrive_by

string

exclude

string
Try It
API
MCP Config
Input Parameters
max_width
The max vehicle width, in meters. The Directions API will compute a route that includes only roads with a width limit greater than or equal to the max vehicle width. Must be between 0 and 10 meters. The default value is 1.9 meters. Only available for driving and driving-traffic profiles.
depart_at
The departure time in ISO 8601 format (YYYY-MM-DDThh:mm:ssZ, YYYY-MM-DDThh:mmss±hh:mm, or YYYY-MM-DDThh:mm). This parameter is only available for the driving and driving-traffic profiles. The travel time will be calculated based on historical and real-time traffic data.
max_weight
The max vehicle weight, in metric tons (1000 kg). The Directions API will compute a route that includes only roads with a weight limit greater than or equal to the max vehicle weight. Must be between 0 and 100 metric tons. The default value is 2.5 metric tons. Only available for driving and driving-traffic profiles.
driving-traffic
routing_profile
Routing profile for different modes of transport. Options: - driving-traffic (default): automotive with current traffic conditions - driving: automotive based on typical traffic - walking: pedestrian/hiking - cycling: bicycle
none
geometries
The format of the returned geometry. Options: - none (default): no geometry object is returned at all, use this if you do not need all of the intermediate coordinates. - geojson: as GeoJSON LineString (might be very long as there could be a lot of points)
coordinates *
Array of [longitude, latitude] coordinate pairs to visit in order. Must include at least 2 coordinate pairs (starting and ending points). Up to 25 coordinates total are supported.
max_height
The max vehicle height, in meters. The Directions API will compute a route that includes only roads with a height limit greater than or equal to the max vehicle height. Must be between 0 and 10 meters. The default value is 1.6 meters. Only available for driving and driving-traffic profiles.
arrive_by
The desired arrival time in ISO 8601 format (YYYY-MM-DDThh:mm:ssZ, YYYY-MM-DDThh:mmss±hh:mm, or YYYY-MM-DDThh:mm). This parameter is only available for the driving profile and is not supported by other profiles, not even driving-traffic. The travel time will be calculated based on historical and real-time traffic data.
exclude
Whether to exclude certain road types and custom locations from routing. Multiple values can be specified as a comma-separated list. Available options: - All profiles: ferry, cash_only_tolls - Driving/Driving-traffic profiles only: motorway, toll, unpaved, tunnel, country_border, state_border or point(<lng> <lat>) For custom locations you can use Point exclusions (note lng and lat are space separated and at most 50 points are allowed) Note: country_border excludes all controlled country borders; borders within the Schengen Area are not excluded.
Cost per run
Execution cost
$0.01
Deducted from your xPay allowance
About Directions Tool

Fetches directions from Mapbox API based on provided coordinates and direction method.

Frequently Asked Questions

Fetches directions from Mapbox API based on provided coordinates and direction method.

Directions Tool costs $0.01 per call on xpay. No subscription, no minimums. Pay only for the calls you make. New accounts get $5 in free credits.

Connect the Mapbox MCP endpoint to your client — Claude Code: claude mcp add --transport http mapbox "https://mapbox.mcp.xpay.sh/mcp?key=YOUR_XPAY_KEY"; Cursor/Windsurf/Cline/VS Code: same URL in mcp.json. The agent will see directions_tool as a callable tool with the input schema and run it directly. (Unified across all providers: https://mcp.xpay.sh/mcp?key=YOUR_XPAY_KEY, then xpay_run with toolPath mapbox/directions_tool.)

Yes — that's exactly what xpay is for. You don't need a Mapbox account or API key. Sign up at xpay.tools (Google or email), get $5 free credit, and run Directions Tool immediately. Billing flows through your xpay balance.

Directions Tool accepts 10 input parameters: max_width, depart_at, max_weight, routing_profile, geometries, coordinates…. See the input schema and runnable form on this page for details and to test live.

xpay tools logo

Marketplace for AI Capabilities. Run agents, tools & prompts with pay-per-use micropayments.

or ask your AI app
Popular Tools
FirecrawlTavilyExaHunterPerplexityRecraftIdeogramFlux
Collections
AI Image & MediaContent & ResearchDev ToolsFinanceLead GenWeb ScrapingCompetitive Intel
Developers
DocumentationAPI ReferenceQuickstartSDKsSkillsskill.mdllms.txt
Resources
The Agentic EconomyAgentic CommerceAgent Frameworksx402 ProtocolBlog
Company
About xpayxpay.shGitHubDiscordTwitter / X

© 2026 Agentically Inc. All rights reserved.
Privacy PolicyTerms of Service
✦
xpay Assistant
Directions Tool by Mapbox

Ask me about tools, pricing, or how to connect

How does this tool work?
What parameters does it accept?
Show me a usage example
DocsCollectionsExplore