Route Planning Expansion in the Mapy.com REST API
1. 12. 2025

We have expanded the route-planning function in the Mapy.com REST API. The changes are based on frequent feedback from our users.
We are not breaking backward compatibility — the existing interface and behavior remain unchanged, we are only adding new input and output parameters. No adjustments to current integrations are required.
New input parameters
- avoidHighways
In addition to the existingavoidTollparameter (avoid toll roads), we are introducingavoidHighways, which allows route planning to avoid highways / express roads. - departure
Optional departure time in local time (ISO-8601, e.g.2025-01-01T00:00:00.000). If not provided, planning uses “now”. This parameter affects time-dependent restrictions (closures, traffic limits, etc.).
New output parameters
- parts
An array of route segments between the start, optional waypoints, and destination. Each segment includes its ownlength(in meters) andduration(in seconds). - routePoints
An array with detailed information about the start, destination, and waypoints after snapping to the routing network.
ValuesoriginalPosition,mappedPosition, andsnapDistancedescribe the shift to the nearest routable edge.
Ifrestricted = true, the point lies in an area that would normally be excluded from routing (e.g., a limited-access or non-routable area), but the route was still calculated because the point was explicitly specified as start, end, or waypoint. TherestrictionTypeattribute specifies the reason.