Route Planning API by PTV xServer

Why truck-specific routing?

  • Some online-platforms offer free route calculation. Professional truck and vehicle routing, however, provides much more. Many specific requirements and challenges need to be considered when optimizing routes for commercial vehicles, including truck attributes such as:

    • Size, weight and speed profiles
    • Access restrictions in inner-city areas
    • Toll costs
    • HOS restrictions
    • Time restrictions, such as opening hours of ramps and depots

    Additionally, the route with the shortest travel time may not be the fastest or most fuel-efficient route.

    These factors turn route optimization for trucks into a real challenge. In transport logistics, however, efficiency is key in ensuring profitability and sustainable business success. Therefore, it is crucial to ensure that commercial vehicles always take optimal routes.

  • Why plan routes with PTV xServer?

    The difference between free online tools and the routing optimization components by PTV xServer lies in our ability to factor in all truck-related data and requirements.

    We used our four decades of experience to gather data for optimizing truck-specific routing. PTV xServer offers developer components that can be easily integrated into your existing system architecture and expands the routing capacities of your transport logistics software. The components are available as easy-to-use and integrable on-premise solution or as powerful cloud-based web service for the most complex use cases. Additionally, you can rely on our expert-level documentation and continuous support.


    • Use custom or standard vehicle profiles

      Our Route Planning API allows you to customize vehicle profiles to your requirements or work with standard reference profiles. The default profiles include continent-specific features, such as official weight classes.

    • Calculate exact freight and tolls costs

      Calculate toll costs based on vehicle attributes when planning routes and determine when toll-free routes are a viable alternative.

    • Time consideration modes

      Factor start or desired arrival times into your routing. Specify scheduled and timespans for longer periods, such as roadworks, to be considered in your planning.

    • Use on and off-road waypoints as part of your routing

      Define waypoints on the road or off the road (e.g. buildings or facilities beside the road). Determine how the distance between the waypoints should be calculated.

    • Include relevant truck attributes

      The PTV Route Planning API considers all relevant truck-specific attributes, such as length, height, weight, special cargo and access restrictions, when calculating optimum truck routes. Additionally, xServer factors in live traffic information and traffic patterns to avoid congestion and bottlenecks.

    • Calculate emissions

      Calculate exact emissions based on vehicle attributes.

    • Plan breaks based on legal HOS parameters or set your own rules

      Use legal or your own set of rules regarding HOS and factor them into your route planning.

  • Route Planning API Documentation

    API Version 1 is our established solution that is widely used in the market. Your company has been a customer for a while and hasn’t switched APIs recently? Then you’re most likely interested in the documentation on API Version 1   

    If you want to see integration samples, you can check them out in the xServer API Version 1 Code Sample Browser.


    API Version 2 is the future of PTV xServer as it’s designed in a completely new framework. It is easier to understand and as a programmer, you will benefit from improved flexibility and consistency. If your company recently integrated PTV xServer into their software solution, is still in the middle of it or is planning an integration soon, you should look at API Version 2