MileMaker Route Reconstruction API

The Route Reconstruction API from MileMaker — 1 operation(s) for route reconstruction.

GitHub OpenAPI

Operations 1

POST /routing/reconstruct Reconstruct route #

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/milemaker-com:milemaker-com-route-reconstruction-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

milemaker-com-route-reconstruction-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Rand McNally MileMaker 2.0 Route Reconstruction API
  version: '1.0'
  description: TBD
servers:
- url: https://api.milemaker.com/
tags:
- name: Route Reconstruction
paths:
  /routing/reconstruct:
    post:
      operationId: ReconstructRoute
      tags:
      - Route Reconstruction
      description: Reconstructs route from the existing vehicle trace.
      requestBody:
        description: Accepts trace identifier to trigger route reconstruction process.
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ReconstructRouteRequest'
      responses:
        200:
          description: Returns the identifier of the route.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ReconstructRouteResponse'
        400:
          description: The server cannot or will not process the request due to an apparent client error (e.g., malformed request syntax).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
              example:
                type: https://schema.milemaker.com/errors/GS0003
                title: Wrong Input Error
                status: 400
                detail: Please specify query parameter paramName
                instance: 1f76b8d5-5ea7-4177-99b6-307f0017d9b4
        401:
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
              example:
                type: https://schema.milemaker.com/errors/GS0003
                title: Unauthorized
                status: 401
                detail: You are not authorized to enter
                instance: 1f76b8d5-5ea7-4177-99b6-307f0017d9b4
        403:
          description: The request contained valid data and was understood by the server, but the server is refusing action
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
              example:
                type: https://schema.milemaker.com/errors/GS0003
                title: Access Denied
                status: 403
                detail: User is not authorized to access this resource with an explicit deny
                instance: 1f76b8d5-5ea7-4177-99b6-307f0017d9b4
        404:
          description: The requested resource could not be found but may be available in the future. Subsequent requests by the client are permissible.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
              example:
                type: https://schema.milemaker.com/errors/GS0003
                title: Resource Not Found
                status: 404
                detail: No resource found with id = 0129ef7c-e86f-4835-a2cb-1c3927b19be1
                instance: 1f76b8d5-5ea7-4177-99b6-307f0017d9b4
        406:
          description: The requested resource is capable of generating only content not acceptable according to the Accept headers sent in the request.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
              example:
                type: https://schema.milemaker.com/errors/GS0003
                title: Not Acceptable
                status: 406
                detail: Only 'application/json' content type supported
                instance: 1f76b8d5-5ea7-4177-99b6-307f0017d9b4
        429:
          description: The user has sent too many requests in a given amount of time. Intended for use with rate-limiting schemes.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
              example:
                type: https://schema.milemaker.com/errors/GS0003
                title: Too Many Requests
                status: 429
                detail: Too Many Requests. Try again soon
                instance: 1f76b8d5-5ea7-4177-99b6-307f0017d9b4
        500:
          description: The server has encountered a situation it does not know how to handle.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
              example:
                type: https://schema.milemaker.com/errors/GS0003
                title: Internal Server Error
                status: 500
                detail: Loading failed due to Timeout
                instance: 1f76b8d5-5ea7-4177-99b6-307f0017d9b4
      summary: Reconstruct route
      x-summary-source: derived
components:
  schemas:
    ProblemDetails:
      type: object
      description: The Problem Details JSON Object [RFC7807]
      additionalProperties: false
      properties:
        type:
          type: string
          description: A URI reference [RFC3986] that identifies the problem type. This specification encourages that, when dereferenced, it provide human-readable documentation for the problem type (e.g., using HTML [W3C.REC-html5-20141028]). When this member is not present, its value is assumed to be "about:blank".
          maxLength: 64
          pattern: ^[A-Za-z0-9_.\s#"'-]+$
          example: https://schema.milemaker.com/errors/GS0003
        title:
          type: string
          description: A short, human-readable summary of the problem type. It SHOULD NOT change from occurrence to occurrence of the problem, except for purposes of localization (e.g., using active content negotiation; see [RFC7231], Section 3.4).
          maxLength: 128
          pattern: ^[A-Za-z0-9_.\s#"'-]+$
          example: Wrong Input Error
        status:
          type: integer
          description: The HTTP status code ([RFC7231], Section 6) generated by the origin server for this occurrence of the problem.
          example: '400'
        detail:
          type: string
          description: A human-readable explanation specific to this occurrence of the problem
          maxLength: 1024
          pattern: ^[A-Za-z0-9_.\s#"'-]+$
          example: Please specify query parameter paramName
        instance:
          type: string
          description: A URI reference that identifies the specific occurrence of the problem. It may or may not yield further information if dereferenced
          maxLength: 256
          pattern: ^[A-Za-z0-9_.\s#"'-]+$
          example: 1f76b8d5-5ea7-4177-99b6-307f0017d9b4
    RouteNotice:
      type: object
      properties:
        code:
          type: string
          enum:
          - crossing
          - vehicleParameters
          - avoidParameter
        subCode:
          type: string
          enum:
          - height
          - width
          - vehicle_type
          - weight
          - trailer_length
          - hazmat_restriction
          - axle_count
          - tolls
          - ferries
          - dirt_roads
          - highways
          - tunnels
          - country_crossing
        type:
          type: string
          enum:
          - info
          - violation
        spans:
          type: array
          description: Represents a list of route segments where the notice is applicable. Each segment is defined by start location coordinates and distance.
          items:
            $ref: '#/components/schemas/RouteSpan'
      description: A warning notice about possible violations lifted to compute a successful route. `crossing` indicates a route follows a road that should be avoided. `vehicleParameters` indicates that route includes roads that are closed for specified vehicle type. `avoidParameter` indicates that roads specified in Avoid list were included to produce a route.
      required:
      - code
      - subCode
      - type
    StateBreakdownItem:
      type: object
      description: Represents distance, time, and costs report per state/province.
      additionalProperties: false
      properties:
        countryCode:
          type: string
          example: US
        stateCode:
          type: string
          example: IL
          description: 2-digit abbreviation of state or province
        tollsDistance:
          $ref: '#/components/schemas/Length'
        nonTollsDistance:
          $ref: '#/components/schemas/Length'
        ferryDistance:
          $ref: '#/components/schemas/Length'
        totalDistance:
          $ref: '#/components/schemas/Length'
        tollsDuration:
          $ref: '#/components/schemas/Duration'
        nonTollsDuration:
          $ref: '#/components/schemas/Duration'
        ferryDuration:
          $ref: '#/components/schemas/Duration'
        totalDuration:
          $ref: '#/components/schemas/Duration'
        tollCosts:
          description: toll costs within given state/province grouped by currency.
          type: array
          maxItems: 256
          items:
            $ref: '#/components/schemas/Cost'
      required:
      - countryCode
      - stateCode
    ReconstructRouteResponse:
      type: object
      description: The reconstructed route.
      additionalProperties: false
      properties:
        waypoints:
          type: array
          minItems: 2
          maxItems: 30
          items:
            $ref: '#/components/schemas/Waypoint'
        legs:
          type: array
          maxItems: 128
          items:
            $ref: '#/components/schemas/RouteReconstructLeg'
        summary:
          $ref: '#/components/schemas/RouteSummary'
        stateBreakdown:
          description: Represents statistics on distance and tolls to drive in each country and state on the calculated route.
          type: array
          maxItems: 256
          items:
            $ref: '#/components/schemas/StateBreakdownItem'
        units:
          $ref: '#/components/schemas/RouteReconstructUnits'
      required:
      - waypoints
      - legs
      - summary
      - stateBreakdown
      - units
    WaypointType:
      type: string
      default: break
      description: 'Type of location, either `break` or `through`. Each type controls two characteristics: whether or not to allow a u-turn at the location and whether or not to generate guidance/legs at the location. A `break` is a location at which we allow u-turns and generate legs and arrival/departure maneuvers. A `through` location is a location at which we neither allow u-turns nor generate legs or arrival/departure maneuvers.

        If no type is provided, the type is assumed to be a `break`.

        '
      enum:
      - break
      - through
    RouteSummary:
      type: object
      description: Represents the summary of duration, distance and costs for the entire route
      additionalProperties: false
      properties:
        duration:
          $ref: '#/components/schemas/Duration'
        length:
          $ref: '#/components/schemas/Length'
        costsSummary:
          $ref: '#/components/schemas/CostsSummary'
      required:
      - duration
      - length
      - costsSummary
    RouteLegSummary:
      type: object
      description: Represents the summary of duration, length and costs for a single leg of the route
      additionalProperties: false
      properties:
        duration:
          $ref: '#/components/schemas/Duration'
        length:
          $ref: '#/components/schemas/Length'
        costsSummary:
          $ref: '#/components/schemas/CostsSummary'
      required:
      - duration
      - length
    ReconstructRouteRequest:
      type: object
      additionalProperties: false
      required:
      - traceId
      properties:
        traceId:
          type: string
          minLength: 1
          maxLength: 128
          example: 5a4f84e7-97d3-4c99-9572-2ba4f56a8623
        startTime:
          description: Use this property to reconstruct a route for specific time range of the trace.
          type: string
          format: date-time
          example: '2023-08-21T16:20:35Z'
        endTime:
          description: Use this property to reconstruct a route for specific time range of the trace.
          type: string
          format: date-time
          example: '2023-08-21T16:20:35Z'
    RouteReconstructUnits:
      type: object
      description: Units used in route reports
      required:
      - duration
      - length
      properties:
        duration:
          type: string
          description: Units to measure duration
          default: hours
          enum:
          - minutes
          - hours
        length:
          type: string
          description: Units to measure distance
          enum:
          - kilometers
          - miles
    RouteReconstructLeg:
      type: object
      description: Represents a route portion between two consecutive waypoints
      additionalProperties: false
      properties:
        summary:
          $ref: '#/components/schemas/RouteLegSummary'
        shape:
          type: string
          description: Represents encoded polyline of the route path. MileMaker uses encoding described in [polyline encoding](https://developers.google.com/maps/documentation/utilities/polylinealgorithm). *Note, MileMaker uses 6 digits of decimal precision*
        notices:
          type: array
          items:
            $ref: '#/components/schemas/RouteNotice'
      required:
      - summary
    Length:
      type: object
      description: Represents the road segment length, or entire route length with specified units
      additionalProperties: false
      properties:
        value:
          type: number
          format: double
          description: The segment length value
      required:
      - value
    Duration:
      type: object
      description: Represents the duration with specified units
      additionalProperties: false
      properties:
        value:
          type: number
          format: double
          description: The duration value
      required:
      - value
    CostsSummary:
      type: object
      additionalProperties: false
      description: Costs report includes toll costs per currency type, fuel cost, maintenance cost, and labor costs. Other than toll costs, other costs are only reported if `CostParameters` are specified in route request. Toll costs are reported only if route includes toll roads.
      properties:
        tollCosts:
          type: array
          maxItems: 256
          items:
            $ref: '#/components/schemas/Cost'
        fuelCost:
          $ref: '#/components/schemas/Cost'
        maintenanceCost:
          $ref: '#/components/schemas/Cost'
        laborCost:
          $ref: '#/components/schemas/Cost'
    GeoPoint:
      type: object
      description: Latitude and Longitude are the units that represent the coordinates at geographic coordinate system
      additionalProperties: false
      required:
      - lat
      - lon
      properties:
        lat:
          type: number
          format: double
          minimum: -90
          maximum: 90
          description: Latitude
        lon:
          type: number
          format: double
          minimum: -180
          maximum: 180
          description: Longitude
    Cost:
      type: object
      description: Represents an estimated price for some operation
      additionalProperties: false
      properties:
        currency:
          type: string
          description: Specified currency
          example: USD
        value:
          type: number
          description: Specified sum of money
          example: 27.55
      required:
      - currency
      - value
    Waypoint:
      type: object
      description: Represents a routes waypoint that is either origin, destination or an intermediate stop.
      additionalProperties: false
      required:
      - value
      properties:
        value:
          type: string
          description: a string representation of a geo-location in WGS84 coordinates
          example: 43.00264, -89.12091
        type:
          $ref: '#/components/schemas/WaypointType'
        id:
          type: string
          minLength: 1
          description: 'It is the optional identifier to track the original order after waypoint optimization and other manipulations

            '
    RouteSpan:
      type: object
      additionalProperties: false
      required:
      - startLocation
      - distance
      properties:
        startLocation:
          $ref: '#/components/schemas/GeoPoint'
        distance:
          $ref: '#/components/schemas/Length'