MapQuest Directions API

The Directions API from MapQuest — 8 operation(s) for directions.

GitHub OpenAPI

Operations 11

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /directions/v2/route Get a route between locations (GET) · Calculate a route between locations #
Ask an LLM
“How do I get a route between two locations with the v2 GET route endpoint?”
“Can I fetch directions between points using a GET request?”
Tell an agent
Get a route between locations with the v2 GET route endpoint.
Fetch directions between two points using the v2 route GET call.
POST /directions/v2/route Calculate a route between locations (POST) · Calculate a route between locations #
Ask an LLM
“Can I calculate a route between locations with a POST request?”
“What does the v2 POST route endpoint return for a route?”
Tell an agent
Calculate a route between locations with the v2 POST route endpoint.
Post the route calculation for two points using the v2 route POST call.
GET /directions/v2/optimizedroute Get an optimized route (GET) · Calculate an optimized route #
Ask an LLM
“How do I get an optimized route between locations with the v2 GET optimized route endpoint?”
“Can I fetch an optimized route using a GET request?”
Tell an agent
Get an optimized route between locations with the v2 GET optimized route endpoint.
Fetch the optimized route for a set of points using the v2 optimized route GET call.
POST /directions/v2/optimizedroute Calculate an optimized route (POST) · Calculate an optimized route #
Ask an LLM
“Can I calculate an optimized route between locations with a POST request?”
“What does the v2 POST optimized route endpoint return?”
Tell an agent
Calculate an optimized route between locations with the v2 POST optimized route endpoint.
Post the optimized route calculation for a set of points using the v2 optimized route POST call.
POST /directions/v2/routematrix Calculate a route matrix (POST) · Calculate a route matrix #
Ask an LLM
“Can I calculate a matrix of routes between several origins and destinations with a POST request?”
“What does the v2 POST route matrix endpoint return?”
Tell an agent
Calculate a route matrix between several origins and destinations with the v2 POST route matrix endpoint.
Post the route matrix calculation for a set of origin-destination pairs using the v2 route matrix POST call.
POST /directions/v2/routematrix/jobs Submit an asynchronous route matrix job · Submit an asynchronous route matrix job #
Ask an LLM
“Can I submit a route matrix calculation as an asynchronous job?”
“How do I start a long-running route matrix job?”
Tell an agent
Submit a route matrix calculation as an asynchronous job.
Start a long-running route matrix job using the v2 route matrix jobs endpoint.
GET /directions/v2/routematrix/jobs/{jobId} Check a route matrix job · Retrieve route matrix job status #
Ask an LLM
“How do I check the status of a route matrix job?”
“Has my asynchronous route matrix job finished yet?”
Tell an agent
Check the status of route matrix job {jobId}.
Get the progress of route matrix job {jobId}.
GET /directions/v2/routematrix/jobs/{jobId}/results Get a route matrix job's results · Retrieve route matrix job results #
Ask an LLM
“How do I download the results of a finished route matrix job?”
“Where do I fetch the route matrix results after the job completes?”
Tell an agent
Get the results of route matrix job {jobId}.
Download route matrix job {jobId} results.
GET /directions/v2/alternateroutes Get alternate routes (GET) · Calculate alternate routes #
Ask an LLM
“How do I get alternate routes between locations with the v2 GET alternate routes endpoint?”
“Can I fetch alternative directions using a GET request?”
Tell an agent
Get alternate routes between locations with the v2 GET alternate routes endpoint.
Fetch alternative directions between two points using the v2 alternate routes GET call.
POST /directions/v2/alternateroutes Calculate alternate routes (POST) · Calculate alternate routes #
Ask an LLM
“Can I calculate alternate routes between locations with a POST request?”
“What does the v2 POST alternate routes endpoint return?”
Tell an agent
Calculate alternate routes between locations with the v2 POST alternate routes endpoint.
Post the alternate routes calculation for two points using the v2 alternate routes POST call.
GET /directions/v2/routeshape Get geometry for route shapes · Retrieve route shape geometry #
Ask an LLM
“Can I get the polyline shape of a route I already planned?”
“Where do I fetch the geometry for route shapes?”
Tell an agent
Get the route shape geometry.
Fetch the shape of the route I already planned.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/mapquest:mapquest-directions-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

mapquest-directions-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: MapQuest Directions API
  description: Minimal OpenAPI 3.1 specification for the MapQuest Directions API, covering route, optimized route, route matrix, alternate routes, and route shape endpoints.
  version: 2.0.0
servers:
- url: https://www.mapquestapi.com
  description: MapQuest API
tags:
- name: Directions
paths:
  /directions/v2/route:
    get:
      operationId: getRoute
      summary: Calculate a route between locations
      responses:
        '200':
          description: Route result
        default:
          description: Error response
      tags:
      - Directions
    post:
      operationId: postRoute
      summary: Calculate a route between locations
      responses:
        '200':
          description: Route result
        default:
          description: Error response
      tags:
      - Directions
  /directions/v2/optimizedroute:
    get:
      operationId: getOptimizedRoute
      summary: Calculate an optimized route
      responses:
        '200':
          description: Optimized route result
        default:
          description: Error response
      tags:
      - Directions
    post:
      operationId: postOptimizedRoute
      summary: Calculate an optimized route
      responses:
        '200':
          description: Optimized route result
        default:
          description: Error response
      tags:
      - Directions
  /directions/v2/routematrix:
    post:
      operationId: postRouteMatrix
      summary: Calculate a route matrix
      responses:
        '200':
          description: Route matrix result
        default:
          description: Error response
      tags:
      - Directions
  /directions/v2/routematrix/jobs:
    post:
      operationId: createRouteMatrixJob
      summary: Submit an asynchronous route matrix job
      responses:
        '202':
          description: Job submitted
        default:
          description: Error response
      tags:
      - Directions
  /directions/v2/routematrix/jobs/{jobId}:
    get:
      operationId: getRouteMatrixJob
      summary: Retrieve route matrix job status
      parameters:
      - name: jobId
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Job status
        default:
          description: Error response
      tags:
      - Directions
  /directions/v2/routematrix/jobs/{jobId}/results:
    get:
      operationId: getRouteMatrixJobResults
      summary: Retrieve route matrix job results
      parameters:
      - name: jobId
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Job results
        default:
          description: Error response
      tags:
      - Directions
  /directions/v2/alternateroutes:
    get:
      operationId: getAlternateRoutes
      summary: Calculate alternate routes
      responses:
        '200':
          description: Alternate routes result
        default:
          description: Error response
      tags:
      - Directions
    post:
      operationId: postAlternateRoutes
      summary: Calculate alternate routes
      responses:
        '200':
          description: Alternate routes result
        default:
          description: Error response
      tags:
      - Directions
  /directions/v2/routeshape:
    get:
      operationId: getRouteShape
      summary: Retrieve route shape geometry
      responses:
        '200':
          description: Route shape result
        default:
          description: Error response
      tags:
      - Directions
x-generated-from: https://developer.mapquest.com/documentation/directions-api/
x-generated-by: claude-crawl-2026-05-08