MileMaker Cached Route Plan API

The Cached Route Plan API from MileMaker — 1 operation(s) for cached route plan.

GitHub OpenAPI

Operations 1

GET /routing/cache/{id} Get cached route plan #

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-cached-route-plan-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-cached-route-plan-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Rand McNally MileMaker 2.0 Cached Route Plan API
  version: '1.0'
  description: TBD
servers:
- url: https://api.milemaker.com/
tags:
- name: Cached Route Plan
paths:
  /routing/cache/{id}:
    get:
      operationId: getCachedRoutePlan
      tags:
      - Cached Route Plan
      parameters:
      - name: id
        in: path
        description: Batch identifier.
        required: true
        schema:
          type: string
          format: uuid
      responses:
        200:
          description: Shows the status of a batch job.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CacheValue'
        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: Get cached route plan
      x-summary-source: derived
components:
  schemas:
    HazmatType:
      type: string
      enum:
      - explosive
      - gas
      - flammable
      - combustible
      - organic
      - poison
      - radioactive
      - corrosives
      - poisonousInhalation
      - other
      description: specifies type of hazardeous load being transported. This informs routing engine about road restrictions and preferred road network to transport this load.
    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
    CacheValueResponse:
      oneOf:
      - $ref: '#/components/schemas/BasicRoutePlanCacheResponse'
      - $ref: '#/components/schemas/RoutePlanResponse'
    VehicleType:
      description: Represents a type of transport that will travel the route. Vehicle type affects restrictions and preferred road network.
      type: string
      enum:
      - car
      - truck
    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
    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
    AvoidType:
      description: 'Represents a list of road types to be avoided during route calculation.


        `roadClosures` avoids roads reported as closed. Guide20 only. Accepted for `practical` and

        `shortest`, not for `fastest`, which always routes around closures using traffic. Not

        listed means closed roads are not avoided.

        '
      type: string
      enum:
      - tolls
      - highways
      - dirtRoads
      - ferries
      - tunnels
      - uTurns
      - borderCrossings
      - roadClosures
      example: tunnels
    ItineraryItem:
      type: object
      description: Represents route itinerary item, typically a single manuever, that includes driving directions, length and time of the maneuver. Properties `totalLength` and `totalDuration` indicate running total of the distance and time travelled on route including this maneuver.
      additionalProperties: false
      properties:
        maneuver:
          type: string
          example: Bear left onto I-94 E
        length:
          $ref: '#/components/schemas/Length'
        duration:
          $ref: '#/components/schemas/Duration'
        totalLength:
          $ref: '#/components/schemas/Length'
        totalDuration:
          $ref: '#/components/schemas/Duration'
      required:
      - length
      - duration
      - totalLength
      - totalDuration
    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

            '
    RoutePlanResponse:
      type: object
      description: The planed route through specified points according to selected route parameters
      additionalProperties: false
      properties:
        id:
          type: string
          format: uuid
        waypoints:
          type: array
          minItems: 2
          maxItems: 30
          items:
            $ref: '#/components/schemas/Waypoint'
        legs:
          type: array
          maxItems: 128
          items:
            $ref: '#/components/schemas/RouteLeg'
        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/RoutePlanUnits'
        notices:
          type: array
          items:
            $ref: '#/components/schemas/RouteNotice'
        alternatives:
          type: array
          items:
            $ref: '#/components/schemas/RoutePlanAlternative'
      required:
      - waypoints
      - legs
      - summary
      - stateBreakdown
      - units
    WaypointOptimization:
      description: Specifies whether to reorder the waypoints in the most efficient order possible. Options to `lockFirstWaypoint` and `lockLastWaypont` are interpreted only if `optimize` is true
      type: object
      properties:
        optimize:
          type: boolean
          default: false
        lockFirstWaypoint:
          type: boolean
          default: true
        lockLastWaypoint:
          type: boolean
          default: false
    RoutePlanRequest:
      type: object
      description: Holds input details about route waypoints, route preferences, vehicle parameters, and cost parameters
      additionalProperties: false
      properties:
        id:
          type: string
          format: uuid
        waypoints:
          type: array
          minItems: 2
          maxItems: 30
          description: A list of waypoints through which the route is calculated. The first and last waypoints define the origin and destination of the route accordingly. These two waypoints are required and should be of a type 'break'.
          items:
            $ref: '#/components/schemas/Waypoint'
          example:
          - value: 43.00264, -89.12091
            type: break
            id: '1'
          - value: 43.00264, -89.12091
            type: through
            id: '2'
          - value: 41.899887, -97.478096
            type: break
            id: '3'
        vehicleType:
          $ref: '#/components/schemas/VehicleType'
        routingType:
          $ref: '#/components/schemas/RoutingType'
        hazmatType:
          type: array
          items:
            $ref: '#/components/schemas/HazmatType'
          example:
          - explosive
          - flammable
        vehicleParameters:
          $ref: '#/components/schemas/VehicleParameters'
        avoid:
          type: array
          description: Represents a list of road types to be avoided during route calculation
          items:
            $ref: '#/components/schemas/AvoidType'
          example:
          - tunnels
          - ferries
        waypointOptimization:
          $ref: '#/components/schemas/WaypointOptimization'
        departure:
          type: string
          description: Date and time (with time zone) of departure. Expected 'date-time' format from RFC 3339 section 5.6
          example: '2022-11-14T19:38:51-05:00'
        arrival:
          type: string
          description: Date and time (with time zone) of arrival. Expected 'date-time' format from RFC 3339 section 5.6
        costParameters:
          $ref: '#/components/schemas/CostParameters'
        governorSpeed:
          type: number
          description: Governor speed (mph). When provided and greater than zero, limits the speed of each route segment to this value.
          minimum: 1
          maximum: 100
        optimisticSearch:
          type: boolean
          description: Optional parameter, attempts to provide the best location matching when enabled
          example: false
        alternatives:
          type: integer
          maximum: 2
          minimum: 0
          description: Optional parameter to get alternative routes, up to 2 depending on the route length
          default: 0
        tollProfile:
          $ref: '#/components/schemas/TollProfile'
        avoidAreas:
          type: array
          maxItems: 10
          description: Optional list of polygonal areas to avoid. Each area is defined as a sequence of Coordinates or UUID.
          items:
            $ref: '#/components/schemas/AvoidArea'
      required:
      - waypoints
      - vehicleType
    VehicleParameters:
      type: object
      description: "Represents vehicle physical parameters. Default values are                  \n|  Property  |  Value |\n| ---------  | ------ |\n|  length    |   '53' |\n|  width     |   102  |\n|  height    |   162  |\n|  weight    |  80000 |\n|  axleCount |    5   |\n"
      properties:
        length:
          $ref: '#/components/schemas/VehicleLengthType'
        width:
          type: integer
          description: Vehicle width (inches)
          minimum: 60
          maximum: 102
        height:
          type: integer
          description: Vehicle height (inches)
          minimum: 60
          maximum: 240
        weight:
          type: integer
          description: Vehicle weight (pounds)
          minimum: 1500
          maximum: 120000
        axleCount:
          type: integer
          description: Defines total number of axles in the vehicle
          minimum: 2
          maximum: 10
    RoutingType:
      description: 'Specifies which optimization is applied during route calculation. The following are intended use cases for each route type.


        |  **Route Type**  |  **Description** |

        | ------------     | ---------------- |

        |  `Shortest`      | used for mileage rating, minimizes distance |

        |  `Practical`     | used for mileage rating, minimizes travel duration, uses posted speed limits  |

        |  `Fastest`       | used for trip planning, accepts additional avoid options, trip departure/arrival time, and uses traffic flow to calculate time  |

        '
      type: string
      enum:
      - fastest
      - shortest
      - practical
      default: fastest
    AvoidArea:
      oneOf:
      - $ref: '#/components/schemas/AreaById'
      - $ref: '#/components/schemas/AreaByCoordinates'
    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
    BasicRoutePlanRequest:
      type: object
      description: Holds input details about route waypoints, route preferences and vehicle parameters
      additionalProperties: false
      properties:
        id:
          type: string
          format: uuid
        waypoints:
          type: array
          minItems: 2
          maxItems: 30
          description: A list of waypoints through which the route is calculated. The first and last waypoints define the origin and destination of the route accordingly. These two waypoints are required and should be of a type 'break'.
          items:
            $ref: '#/components/schemas/Waypoint'
          example:
          - value: 43.00264, -89.12091
            type: break
            id: '1'
          - value: 43.00264, -89.12091
            type: through
            id: '2'
          - value: 41.899887, -97.478096
            type: break
            id: '3'
        vehicleType:
          $ref: '#/components/schemas/VehicleType'
        routingType:
          $ref: '#/components/schemas/RoutingType'
        hazmatType:
          type: array
          items:
            $ref: '#/components/schemas/HazmatType'
          example:
          - explosive
          - flammable
        vehicleParameters:
          $ref: '#/components/schemas/VehicleParameters'
        avoid:
          type: array
          description: Represents a list of road types to be avoided during route calculation
          items:
            $ref: '#/components/schemas/AvoidType'
          example:
          - tunnels
          - ferries
        waypointOptimization:
          $ref: '#/components/schemas/WaypointOptimization'
        governorSpeed:
          type: number
          description: Governor speed (mph). When provided and greater than zero, limits the speed of each route segment to this value.
          minimum: 1
          maximum: 100
        optimisticSearch:
          type: boolean
          description: Optional parameter, attempts to provide the best location matching when enabled
          example: false
        tollProfile:
          $ref: '#/components/schemas/TollProfile'
      required:
      - waypoints
      - vehicleType
    BasicCostsSummary:
      type: object
      additionalProperties: false
      description: Costs report includes toll costs per currency type. Toll costs are reported only if route includes toll roads.
      properties:
        tollCosts:
          type: array
          maxItems: 256
          items:
            $ref: '#/components/schemas/Cost'
    BasicRouteLegSummary:
      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/BasicCostsSummary'
      required:
      - duration
      - length
    TollProfile:
      type: object
      properties:
        transponder:
          type: boolean
          default: true
      description: Optional parameter, true if vehicle uses transponder
    CacheValue:
      type: object
      properties:
        request:
          $ref: '#/components/schemas/CacheValueRequest'
        response:
          $ref: '#/components/schemas/CacheValueResponse'
        guide:
          type: string
          description: guide identifier or type
        apiKeyId:
          type: string
          description: apiKeyId identifier
        userId:
          type: string
          description: User identifier
        orgId:
          type: string
          description: Organization identifier
        client:
          type: string
          description: Client/application identifier
        created:
          type: string
          format: date-time
          description: Cache creation timestamp
        updated:
          type: string
          format: date-time
          description: Last update timestamp
        expirationDate:
          type: string
          format: date-time
          description: created time plus ttl 24h
    BasicRouteLeg:
      type: object
      description: Represents a route portion between two consecutive waypoints
      additionalProperties: false
      properties:
        summary:
          $ref: '#/components/schemas/BasicRouteLegSummary'
      required:
      - summary
    CostParameters:
      description: The unit cost parameters for fuel cost, fuel consumption rate, maintenance costs, and time costs. Units in USD and miles per gallon. If a particular parameter is omitted, the corresponding total isl not reported in the `CostSummary` portion of the route result.
      type: object
      additionalProperties: false
      properties:
        fuelPrice:
          description: USD / per gallon
          type: number
        fuelEconomy:
          description: miles / per gallon
          type: number
          format: double
        maintenanceCost:
          description: USD / per mile
          type: number
        laborCost:
          description: USD / per hour
          type: number
      example:
        fuelPrice: 5.2
        fuelEconomy: 10.2
        maintenanceCost: 1.0
        laborCost: 40.2
    BasicRoutePlanCacheResponse:
      type: object
      description: The planed route through specified points according to selected route parameters
      additionalProperties: false
      properties:
        id:
          type: string
          format: uuid
        waypoints:
          type: array
          minItems: 2
          maxItems: 30
          items:
            $ref: '#/components/schemas/Waypoint'
        basicLegs:
          type: array
          maxItems: 128
          items:
            $ref: '#/components/schemas/BasicRouteLeg'
        basicSummary:
          $ref: '#/components/schemas/BasicRouteSummary'
        units:
          $ref: '#/components/schemas/RoutePlanUnits'
      required:
      - waypoints
      - basicLegs
      - basicSummary
      - units
    RouteLeg:
      type: object
      description: Represents a route portion between two consecutive waypoints
      additionalProperties: false
      properties:
        itinerary:
          description: Represents itinerary report to validate and review calculated route.
          type: array
          maxItems: 256
          items:
            $ref: '#/components/schemas/ItineraryItem'
        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
    AreaByCoordinates:
      type: object
      properties:
        coordinates:
          type: array
          items:
            $ref: '#/components/schemas/GeoPoint'
      required:
      - coordinates
    RoutePlanAlternative:
      type: object
      description: The planed route alternative through specified points according to selected route parameters
      additionalProperties: false
      properties:
        waypoints:
          type: array
          minItems: 2
          maxItems: 30
          items:
            $ref: '#/components/schemas/Waypoint'
        legs:
          type: array
          maxItems: 128
          items:
            $ref: '#/components/schemas/RouteLeg'
        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/RoutePlanUnits'
        notices:
          type: array
          items:
            $ref: '#/components/schemas/RouteNotice'
      required:
      - waypoints
      - legs
      - summary
      - stateBreakdown
      - units
    Duration:
      type: object
      description: Represents the duration with specified units
      additionalProperties: false
      properties:
        value:
          type: number
          format: double
          description: The duration value
      required:
      - value
    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
    CacheValueRequest:
      oneOf:
      - $ref: '#/components/schemas/BasicRoutePlanRequest'
      - $ref: '#/components/schemas/RoutePlanRequest'
    RouteSpan:
      type: object
      additionalProperties: false
      required:
      - startLocation
      - distance
      properties:
        startLocation:
          $ref: '#/components/schemas/GeoPoint'
        distance:
          $ref: '#/components/schemas/Length'
    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
    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
    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
    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'
    BasicRouteSummary:
      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/BasicCostsSummary'
    AreaById:
      type: object
      properties:
        id:
          type: string
          format: uuid
      required:
      - id
    RoutePlanUnits:
      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
    VehicleLengthType:
      type: string
      description: Vehicle length
      enum:
      - straight
      - '48'
      - '53'
      - double
      - triple