{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":[]},"type":"markdown"},"seo":{"title":"📍 Routing Criterias Tutorial","llmstxt":{"hide":false,"sections":[{"title":"Table of contents","includeFiles":["**/*"],"excludeFiles":[]}],"excludeFiles":[]}},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"a","attributes":{"name":"routing_criteria_tutorial"},"children":[]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"-routing-criterias-tutorial","__idx":0},"children":["📍 Routing Criterias Tutorial"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["This tutorial explains how to use routing criteria to customize the way routes are calculated: fastest, shortest, eco-friendly, toll-free, etc."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Each section includes a real-world use case, what the option does, and an example request."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["🔧 ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["How to enable routing criteria"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["To define the routing criteria, simply include the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["routingCriterias"]}," field in your routing request JSON. Example:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","header":{"controls":{"copy":{}}},"source":"\"routingCriterias\": [\"FASTEST\"]\n","lang":"json"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["You can combine it with options like ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["EVENT"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["OPTIMIZED_TRIP"]},", and ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["routingVehicleProfiles"]},"."]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"a","attributes":{"name":"criteria_avoid_crossing_border"},"children":[]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"-avoid_crossing_border--avoid-crossing-international-borders","__idx":1},"children":["🛂 AVOID_CROSSING_BORDER – Avoid crossing international borders"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["✅ ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Use case"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["You want to compute a route that ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["stays within a single country"]},", avoiding any international border crossings."," ","Useful for local deliveries, national travel restrictions, or border-sensitive logistics."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["💡 ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["What it does"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["If all coordinates are in the same country, this option will enforce a route that avoids crossing any borders."," ","If the route cannot be computed without crossing a border, an error will be returned."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["🔧 ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["How to enable"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Add ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["AVOID_CROSSING_BORDER"]}," to the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["routingCriterias"]}," array of your routing request:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"\"routingCriterias\": [ \"AVOID_CROSSING_BORDER\" ]\n"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["📦 ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Example"]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"{\n  \"routingMode\": \"MODE_VIAS\",\n  \"destinations\": [\n    { \"coordinateSat\": { \"lon\": 6.0816, \"lat\": 46.1436 } },\n    { \"coordinateSat\": { \"lon\": 6.0667, \"lat\": 46.3333 } }\n  ],\n  \"routingCriterias\": [ \"AVOID_CROSSING_BORDER\" ],\n  \"options\": [\"POLYLINE\"],\n  \"routingVehicleProfile\": {\n    \"transportMode\": \"CAR\"\n  }\n}\n"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["📨 ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Response"]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"{\n  \"usedDestinations\": [\n    {\n      \"inputOrder\": 0,\n      \"used\": true,\n      \"usedOrder\": 0,\n      \"matchedCoordinateGps\": {\n        \"lon\": 6.081639016849319,\n        \"lat\": 46.14375875\n      },\n      \"confidenceValue\": 0.14359605911330048,\n      \"distanceFromRequest\": 17.93,\n      \"polylineIndex\": -1,\n      \"duration\": -1,\n      \"length\": -1\n    },\n    {\n      \"inputOrder\": 1,\n      \"used\": true,\n      \"usedOrder\": 1,\n      \"matchedCoordinateGps\": {\n        \"lon\": 6.06702,\n        \"lat\": 46.33398\n      },\n      \"confidenceValue\": 0.017229293669007308,\n      \"distanceFromRequest\": 79.59,\n      \"polylineIndex\": -1,\n      \"duration\": 3421,\n      \"length\": 50948\n    }\n  ],\n  \"routingRoutes\": [\n    {\n      \"length\": 50948,\n      \"duration\": 3421,\n      \"trafficDelay\": 0,\n      \"averageSpeed\": 53.613796,\n      \"maximumSpeed\": 0,\n      \"startUTurnThreshold\": 3000,\n      \"boundingBox\": {\n        \"minLon\": 5.90139,\n        \"minLat\": 46.10174,\n        \"maxLon\": 6.081639016849319,\n        \"maxLat\": 46.33533\n      },\n      \"startStopInfo\": {\n        \"start\": {\n          \"lon\": 6.08164,\n          \"lat\": 46.14376\n        },\n        \"stop\": {\n          \"lon\": 6.06702,\n          \"lat\": 46.33398\n        },\n        \"distanceFirstMatched\": 0.14,\n        \"distanceLastMatched\": 0,\n        \"interDests\": null\n      },\n      \"polyline\": [\n        {\n          \"lon\": 6.081639016849319,\n          \"lat\": 46.14375875\n        },\n        {\n          \"lon\": 6.08147,\n          \"lat\": 46.14378\n        },\n"},"children":[]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"a","attributes":{"name":"criteria_avoid_ferries"},"children":[]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"️-avoid_ferries--avoid-ferries-in-routing","__idx":2},"children":["⛴️ AVOID_FERRIES – Avoid ferries in routing"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["✅ ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Use case"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["When you want to ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["avoid all ferry routes"]},", e.g., for vehicles not allowed on ferries or when you want land-only travel."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["💡 ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["What it does"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["This criterion instructs the routing engine to ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["avoid any route that includes a ferry crossing"]},", even if it's faster or shorter."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["This is useful for:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Vehicles not permitted or able to take ferries"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Cost optimization (no ferry fees)"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Time-sensitive deliveries avoiding ferry schedules"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["🔧 ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["How to enable"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Add ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["AVOID_FERRIES"]}," to your criteria list in the routing request:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"\"routingCriterias\": [\"AVOID_FERRIES\"]\n"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["📍 ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Practical example"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Routing from canton du Valais, Suisse to Domodossola, Italie will normally include a ferry."," ","With ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["AVOID_FERRIES"]},", the system will instead suggest a land-only route."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["📦",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Example"]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"{\n  \"routingMode\": \"MODE_VIAS\",\n  \"destinations\": [\n    { \"coordinateSat\": { \"lon\": 8.054329047389256, \"lat\": 46.3619732880897 } },\n    { \"coordinateSat\": { \"lon\": 8.29778, \"lat\": 46.11233 } }\n  ],\n  \"options\": [\n    \"POLYLINE\"\n  ],\n  \"routingCriterias\": [\n    \"AVOID_FERRIES\",\n    \"SHORTEST\"\n  ],\n  \"routingVehicleProfile\": {\n    \"transportMode\": \"CAR\"\n  }\n}\n"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["📨 ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Response"]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"{\n  \"usedDestinations\": [\n    {\n      \"inputOrder\": 0,\n      \"used\": true,\n      \"usedOrder\": 0,\n      \"matchedCoordinateGps\": {\n        \"lon\": 8.05419666280887,\n        \"lat\": 46.36207375\n      },\n      \"confidenceValue\": 1,\n      \"distanceFromRequest\": 15.12,\n      \"polylineIndex\": -1,\n      \"duration\": -1,\n      \"length\": -1\n    },\n    {\n      \"inputOrder\": 1,\n      \"used\": true,\n      \"usedOrder\": 1,\n      \"matchedCoordinateGps\": {\n        \"lon\": 8.297779611282099,\n        \"lat\": 46.1123275\n      },\n      \"confidenceValue\": 0.5190228273928715,\n      \"distanceFromRequest\": 0.28,\n      \"polylineIndex\": -1,\n      \"duration\": 4928,\n      \"length\": 68882\n    }\n  ],\n  \"routingRoutes\": [\n    {\n      \"length\": 68882,\n      \"duration\": 4928,\n      \"trafficDelay\": 0,\n      \"averageSpeed\": 50.31964,\n      \"maximumSpeed\": 0,\n      \"startUTurnThreshold\": 3000,\n      \"boundingBox\": {\n        \"minLon\": 7.98183,\n        \"minLat\": 46.1123275,\n        \"maxLon\": 8.30247,\n        \"maxLat\": 46.36207375\n      },\n      \"startStopInfo\": {\n        \"start\": {\n          \"lon\": 8.0542,\n          \"lat\": 46.36207\n        },\n        \"stop\": {\n          \"lon\": 8.29778,\n          \"lat\": 46.11233\n        },\n        \"distanceFirstMatched\": 0.42,\n        \"distanceLastMatched\": 0.28,\n        \"interDests\": null\n      },\n      \"polyline\": [\n        {\n          \"lon\": 8.05419666280887,\n          \"lat\": 46.36207375\n        },\n        {\n          \"lon\": 8.05351,\n          \"lat\": 46.36165\n        },\n"},"children":[]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"a","attributes":{"name":"criteria_avoid_motorways"},"children":[]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"️-avoid_motorways--avoid-motorways-in-routing","__idx":3},"children":["🛣️ AVOID_MOTORWAYS – Avoid motorways in routing"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["✅ ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Use case"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Avoid ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["motorways"]}," when computing a route."," ",{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]},"Useful for:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Vehicles not allowed on motorways (e.g., tractors, some motorcycles)"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Avoiding tolls to reduce costs"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Scenic or leisure drives using local roads"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["💡 ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["What it does"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["When this criteria is enabled, the routing engine ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["prefers secondary roads"]}," even if the travel time is longer."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["🔧 ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["How to enable"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Add ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["AVOID_MOTORWAYS"]}," to the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["routingCriterias"]}," :"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"\"routingCriterias\": [\"AVOID_MOTORWAYS\"]\n"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["📦",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Example"]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"{\n  \"destinations\": [\n    { \"coordinateSat\": { \"lon\": 2.32158, \"lat\": 48.86533 } },\n    { \"coordinateSat\": { \"lon\": 4.35655, \"lat\": 50.8447  } }\n  ],\n  \"routingVehicleProfile\": {\n    \"transportMode\": \"CAR\"\n  },\n  \"routingCriterias\": [ \"AVOID_MOTORWAYS\" ],\n  \"options\": [ \"POLYLINE\" ]\n}\n"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["📨 ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Response"]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"{\n  \"usedDestinations\": [\n    {\n      \"inputOrder\": 0,\n      \"used\": true,\n      \"usedOrder\": 0,\n      \"matchedCoordinateGps\": {\n        \"lon\": 2.321574222824279,\n        \"lat\": 48.86533125\n      },\n      \"confidenceValue\": 0.21240678521674997,\n      \"distanceFromRequest\": 0.45,\n      \"polylineIndex\": -1,\n      \"duration\": -1,\n      \"length\": -1\n    },\n    {\n      \"inputOrder\": 1,\n      \"used\": true,\n      \"usedOrder\": 1,\n      \"matchedCoordinateGps\": {\n        \"lon\": 4.356551936132446,\n        \"lat\": 50.84469875\n      },\n      \"confidenceValue\": 0.07687516682978913,\n      \"distanceFromRequest\": 0.14,\n      \"polylineIndex\": -1,\n      \"duration\": 21934,\n      \"length\": 309020\n    }\n  ],\n  \"routingRoutes\": [\n    {\n      \"length\": 309020,\n      \"duration\": 21934,\n      \"trafficDelay\": 0,\n      \"averageSpeed\": 50.719067,\n      \"maximumSpeed\": 0,\n      \"startUTurnThreshold\": 3000,\n      \"boundingBox\": {\n        \"minLon\": 2.321574222824279,\n        \"minLat\": 48.86533125,\n        \"maxLon\": 4.356551936132446,\n        \"maxLat\": 50.84507\n      },\n      \"startStopInfo\": {\n        \"start\": {\n          \"lon\": 2.32157,\n          \"lat\": 48.86533\n        },\n        \"stop\": {\n          \"lon\": 4.35655,\n          \"lat\": 50.8447\n        },\n        \"distanceFirstMatched\": 0.14,\n        \"distanceLastMatched\": 0.14,\n        \"interDests\": null\n      },\n      \"polyline\": [\n        {\n          \"lon\": 2.321574222824279,\n          \"lat\": 48.86533125\n        },\n        {\n          \"lon\": 2.3217,\n          \"lat\": 48.86551\n        },\n"},"children":[]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"a","attributes":{"name":"criteria_avoid_tolls"},"children":[]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"️-avoid_tolls--avoid-toll-roads","__idx":4},"children":["🛣️ AVOID_TOLLS – Avoid toll roads"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["✅ ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Use case"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Plan routes that avoid toll roads, ideal for cost-saving or toll-free travel requirements."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["💡 ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["What it does"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Forces the routing engine to find a path that does not include toll segments, whenever possible."," ","If no toll-free alternative exists, it falls back to a tolled route."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["This is useful when:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["You want to avoid paying tolls."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["You need to generate a “free” version of the route for comparison."]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["🔧 ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["How to enable"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Add the value ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["AVOID_TOLLS"]}," to the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["routingCriterias"]}," array:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"\"routingCriterias\": [\"AVOID_TOLLS\"]\n"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["📦",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Example"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Routing between Lyon, France and Nice, France, avoiding toll roads:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"{\n  \"destinations\": [ \n    { \"coordinateSat\": { \"lon\": 2.32158, \"lat\": 48.86533 } },\n    { \"coordinateSat\": { \"lon\": 4.35655, \"lat\": 50.8447  } }\n  ],\n  \"routingVehicleProfile\": {\n    \"transportMode\": \"CAR\"\n  },\n  \"routingCriterias\": [ \"AVOID_TOLLS\" ],\n  \"options\": [ \"POLYLINE\" ]\n}\n"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["📨",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Response"]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"{\n  \"usedDestinations\": [\n    {\n      \"inputOrder\": 0,\n      \"used\": true,\n      \"usedOrder\": 0,\n      \"matchedCoordinateGps\": {\n        \"lon\": 2.321574222824279,\n        \"lat\": 48.86533125\n      },\n      \"confidenceValue\": 0.21240678521674997,\n      \"distanceFromRequest\": 0.45,\n      \"polylineIndex\": -1,\n      \"duration\": -1,\n      \"length\": -1\n    },\n    {\n      \"inputOrder\": 1,\n      \"used\": true,\n      \"usedOrder\": 1,\n      \"matchedCoordinateGps\": {\n        \"lon\": 4.356551936132446,\n        \"lat\": 50.84469875\n      },\n      \"confidenceValue\": 0.07687516682978913,\n      \"distanceFromRequest\": 0.14,\n      \"polylineIndex\": -1,\n      \"duration\": 17422,\n      \"length\": 321882\n    }\n  ],\n  \"routingRoutes\": [\n    {\n      \"length\": 321882,\n      \"duration\": 17422,\n      \"trafficDelay\": 0,\n      \"averageSpeed\": 66.51218,\n      \"maximumSpeed\": 0,\n      \"startUTurnThreshold\": 3000,\n      \"boundingBox\": {\n        \"minLon\": 2.30156,\n        \"minLat\": 48.86533125,\n        \"maxLon\": 4.356551936132446,\n        \"maxLat\": 50.84507\n      },\n      \"startStopInfo\": {\n        \"start\": {\n          \"lon\": 2.32157,\n          \"lat\": 48.86533\n        },\n        \"stop\": {\n          \"lon\": 4.35655,\n          \"lat\": 50.8447\n        },\n        \"distanceFirstMatched\": 0.14,\n        \"distanceLastMatched\": 0.14,\n        \"interDests\": null\n      },\n      \"polyline\": [\n        {\n          \"lon\": 2.321574222824279,\n          \"lat\": 48.86533125\n        },\n        {\n          \"lon\": 2.3217,\n          \"lat\": 48.86551\n        },\n"},"children":[]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"a","attributes":{"name":"criteria_avoid_unpaved"},"children":[]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"️-avoid_unpaved--avoid-unpaved-roads","__idx":5},"children":["🛣️ AVOID_UNPAVED – Avoid unpaved roads"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["✅ ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Use case"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Ensure your route avoids dirt, gravel, or otherwise unpaved roads—especially useful for non-off-road vehicles or in bad weather conditions."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["💡 ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["What it does"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Instructs the routing engine to avoid roads ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["not marked as paved"]}," in the map data."," ","This helps avoid poor driving conditions or unsuitable paths for certain vehicle types."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["This is useful when:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["You drive a city car or motorcycle."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["You transport sensitive goods."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["You need guaranteed paved-road access (e.g., in winter)."]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["🔧 ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["How to enable"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Add the value ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["AVOID_UNPAVED"]}," to the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["routingCriterias"]}," array:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"\"routingCriterias\": [\"AVOID_UNPAVED\"]\n"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["📦 ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Example"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Routing between Arezzo, Italy and Badia Tedalda, Italy, avoiding unpaved mountain roads:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"{\n  \"destinations\": [ \n    { \"coordinateSat\": { \"lon\": 2.32158, \"lat\": 48.86533 } },\n    { \"coordinateSat\": { \"lon\": 4.35655, \"lat\": 50.8447  } }\n  ],\n  \"routingVehicleProfile\": {\n    \"transportMode\": \"CAR\"\n  },\n  \"routingCriterias\": [ \"AVOID_UNPAVED\" ],\n  \"options\": [ \"POLYLINE\" ]\n}\n"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["📨",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Response"]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"{\n  \"usedDestinations\": [\n    {\n      \"inputOrder\": 0,\n      \"used\": true,\n      \"usedOrder\": 0,\n      \"matchedCoordinateGps\": {\n        \"lon\": 2.321574222824279,\n        \"lat\": 48.86533125\n      },\n      \"confidenceValue\": 0.21240678521674997,\n      \"distanceFromRequest\": 0.45,\n      \"polylineIndex\": -1,\n      \"duration\": -1,\n      \"length\": -1\n    },\n    {\n      \"inputOrder\": 1,\n      \"used\": true,\n      \"usedOrder\": 1,\n      \"matchedCoordinateGps\": {\n        \"lon\": 4.356551936132446,\n        \"lat\": 50.84469875\n      },\n      \"confidenceValue\": 0.07687516682978913,\n      \"distanceFromRequest\": 0.14,\n      \"polylineIndex\": -1,\n      \"duration\": 12422,\n      \"length\": 308422\n    }\n  ],\n  \"routingRoutes\": [\n    {\n      \"length\": 308422,\n      \"duration\": 12422,\n      \"trafficDelay\": 0,\n      \"averageSpeed\": 89.383286,\n      \"maximumSpeed\": 0,\n      \"startUTurnThreshold\": 3000,\n      \"boundingBox\": {\n        \"minLon\": 2.30156,\n        \"minLat\": 48.86533125,\n        \"maxLon\": 4.356551936132446,\n        \"maxLat\": 50.84507\n      },\n      \"startStopInfo\": {\n        \"start\": {\n          \"lon\": 2.32157,\n          \"lat\": 48.86533\n        },\n        \"stop\": {\n          \"lon\": 4.35655,\n          \"lat\": 50.8447\n        },\n        \"distanceFirstMatched\": 0.14,\n        \"distanceLastMatched\": 0.14,\n        \"interDests\": null\n      },\n      \"polyline\": [\n        {\n          \"lon\": 2.321574222824279,\n          \"lat\": 48.86533125\n        },\n        {\n          \"lon\": 2.3217,\n          \"lat\": 48.86551\n        },\n"},"children":[]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"a","attributes":{"name":"criteria_carpool"},"children":[]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"-carpool--avoid-carpool-only-roads","__idx":6},"children":["🚗 CARPOOL – Avoid carpool-only roads"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["✅ ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Use case"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Avoid roads that are restricted to carpooling vehicles (e.g., HOV lanes)."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["💡 ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["What it does"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Excludes roads reserved for high occupancy vehicles (HOV) or carpooling from the computed route."," ","Useful when your vehicle does not meet carpooling requirements (e.g., solo driver)."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["🔧 ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["How to enable"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Add the value ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["CARPOOL"]}," to the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["routingCriterias"]}," array in your request."]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"\"routingCriterias\": [ \"CARPOOL\" ],\n"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["📦 ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Example"]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"{\n  \"destinations\": [ \n    { \"coordinateSat\": { \"lon\": 2.32158, \"lat\": 48.86533 } },\n    { \"coordinateSat\": { \"lon\": 4.35655, \"lat\": 50.8447  } }\n  ],\n  \"options\": [\n    \"POLYLINE\"\n  ],\n  \"routingCriterias\": [ \"CARPOOL\" ],\n  \"routingVehicleProfile\": {\n    \"transportMode\": \"CAR\"\n  }\n}\n"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["📨",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Response"]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"{\n  \"usedDestinations\": [\n    {\n      \"inputOrder\": 0,\n      \"used\": true,\n      \"usedOrder\": 0,\n      \"matchedCoordinateGps\": {\n        \"lon\": 2.321574222824279,\n        \"lat\": 48.86533125\n      },\n      \"confidenceValue\": 0.21240678521674997,\n      \"distanceFromRequest\": 0.45,\n      \"polylineIndex\": -1,\n      \"duration\": -1,\n      \"length\": -1\n    },\n    {\n      \"inputOrder\": 1,\n      \"used\": true,\n      \"usedOrder\": 1,\n      \"matchedCoordinateGps\": {\n        \"lon\": 4.356551936132446,\n        \"lat\": 50.84469875\n      },\n      \"confidenceValue\": 0.07687516682978913,\n      \"distanceFromRequest\": 0.14,\n      \"polylineIndex\": -1,\n      \"duration\": 12422,\n      \"length\": 308422\n    }\n  ],\n  \"routingRoutes\": [\n    {\n      \"length\": 308422,\n      \"duration\": 12422,\n      \"trafficDelay\": 0,\n      \"averageSpeed\": 89.383286,\n      \"maximumSpeed\": 0,\n      \"startUTurnThreshold\": 3000,\n      \"boundingBox\": {\n        \"minLon\": 2.30156,\n        \"minLat\": 48.86533125,\n        \"maxLon\": 4.356551936132446,\n        \"maxLat\": 50.84507\n      },\n      \"startStopInfo\": {\n        \"start\": {\n          \"lon\": 2.32157,\n          \"lat\": 48.86533\n        },\n        \"stop\": {\n          \"lon\": 4.35655,\n          \"lat\": 50.8447\n        },\n        \"distanceFirstMatched\": 0.14,\n        \"distanceLastMatched\": 0.14,\n        \"interDests\": null\n      },\n      \"polyline\": [\n        {\n          \"lon\": 2.321574222824279,\n          \"lat\": 48.86533125\n        },\n        {\n          \"lon\": 2.3217,\n          \"lat\": 48.86551\n        },\n"},"children":[]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"a","attributes":{"name":"criteria_eco_energy"},"children":[]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"-eco_energy--optimize-for-lowest-energy-consumption","__idx":7},"children":["🌱 ECO_ENERGY – Optimize for lowest energy consumption"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["✅ ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Use case"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Find the most energy-efficient route for electric or hybrid vehicles."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["💡 ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["What it does"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Computes a route that minimizes energy consumption rather than distance or time."," ","Requires energy-related vehicle details to be provided (e.g., battery capacity, engine efficiency)."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["🔧 ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["How to enable"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Add ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["ECO_ENERGY"]}," to the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["routingCriterias"]}," array."]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"\"routingCriterias\": [ \"ECO_ENERGY\" ]\n"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Provide a valid ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["routingEnergyVehicleFeature"]}," object with your vehicle’s specs."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["📦 ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Example"]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"{\n  \"destinations\": [ \n    { \"coordinateSat\": { \"lon\": 2.32158, \"lat\": 48.86533 } },\n    { \"coordinateSat\": { \"lon\": 4.35655, \"lat\": 50.8447  } }\n  ],\n  \"routingVehicleProfile\": {\n    \"transportMode\": \"CAR\",\n    \"routingEnergyVehicleFeature\": {\n      \"batCapacity\": 60,\n      \"energyLoad\": 50,\n      \"engineEfficiency\": 0.92,\n      \"scx\": 0.7,\n      \"crr\": 0.013,\n      \"payload\": 100,\n      \"dryWeight\": 1600,\n      \"auxConsumption\": 500,\n      \"extTemp\": 20,\n      \"maxAccel\": 100,\n      \"maxDecel\": -100\n    }\n  },\n  \"routingCriterias\": [ \"ECO_ENERGY\" ],\n  \"options\": [ \"POLYLINE\" ]\n}\n"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["📨",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Response"]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"{\n  \"usedDestinations\": [\n    {\n      \"inputOrder\": 0,\n      \"used\": true,\n      \"usedOrder\": 0,\n      \"matchedCoordinateGps\": {\n        \"lon\": 2.321574222824279,\n        \"lat\": 48.86533125\n      },\n      \"confidenceValue\": 0.21240678521674997,\n      \"distanceFromRequest\": 0.45,\n      \"polylineIndex\": -1,\n      \"duration\": -1,\n      \"length\": -1\n    },\n    {\n      \"inputOrder\": 1,\n      \"used\": true,\n      \"usedOrder\": 1,\n      \"matchedCoordinateGps\": {\n        \"lon\": 4.356551936132446,\n        \"lat\": 50.84469875\n      },\n      \"confidenceValue\": 0.07687516682978913,\n      \"distanceFromRequest\": 0.14,\n      \"polylineIndex\": -1,\n      \"duration\": 12819,\n      \"length\": 308422\n    }\n  ],\n  \"routingRoutes\": [\n    {\n      \"length\": 308422,\n      \"duration\": 12819,\n      \"trafficDelay\": 0,\n      \"averageSpeed\": 86.61512,\n      \"maximumSpeed\": 50,\n      \"startUTurnThreshold\": 3000,\n      \"boundingBox\": {\n        \"minLon\": 2.30156,\n        \"minLat\": 48.86533125,\n        \"maxLon\": 4.356551936132446,\n        \"maxLat\": 50.84507\n      },\n      \"startStopInfo\": {\n        \"start\": {\n          \"lon\": 2.32157,\n          \"lat\": 48.86533\n        },\n        \"stop\": {\n          \"lon\": 4.35655,\n          \"lat\": 50.8447\n        },\n        \"distanceFirstMatched\": 0.14,\n        \"distanceLastMatched\": 0.14,\n        \"interDests\": null\n      },\n      \"polyline\": [\n        {\n          \"lon\": 2.321574222824279,\n          \"lat\": 48.86533125\n        },\n        {\n          \"lon\": 2.3217,\n          \"lat\": 48.86551\n        },\n"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["📘 Note:"]}," This criterion is meaningful only if ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["routingEnergyVehicleFeature"]}," is provided."]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"a","attributes":{"name":"criteria_fastest"},"children":[]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"-fastest--optimize-for-travel-time-default","__idx":8},"children":["🚀 FASTEST – Optimize for travel time (default)"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["✅ ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Use case"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Compute the fastest route between two or more points."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["💡 ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["What it does"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Finds the route with the shortest travel time based on road types, speed limits, and current speed profiles."," ","This is the default behavior if no ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["routingCriterias"]}," are specified."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["🔧 ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["How to enable"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Simply omit ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["routingCriterias"]},", or explicitly add ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["FASTEST"]}," to it."]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"\"routingCriterias\": [\"FASTEST\"]\n"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]},"📦 ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Example"]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"{\n  \"destinations\": [ \n    { \"coordinateSat\": { \"lon\": 2.32158, \"lat\": 48.86533 } },\n    { \"coordinateSat\": { \"lon\": 4.35655, \"lat\": 50.8447  } }\n  ],\n  \"routingVehicleProfile\": {\n    \"transportMode\": \"CAR\"\n  },\n  \"routingCriterias\": [ \"FASTEST\" ],\n  \"options\": [ \"POLYLINE\" ]\n}\n"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["📘 ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Note"]},": If multiple criteria are provided, \"FASTEST\" is combined with others to influence prioritization."," ",{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]},"📨",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Response"]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"{\n  \"usedDestinations\": [\n    {\n      \"inputOrder\": 0,\n      \"used\": true,\n      \"usedOrder\": 0,\n      \"matchedCoordinateGps\": {\n        \"lon\": 2.321574222824279,\n        \"lat\": 48.86533125\n      },\n      \"confidenceValue\": 0.21240678521674997,\n      \"distanceFromRequest\": 0.45,\n      \"polylineIndex\": -1,\n      \"duration\": -1,\n      \"length\": -1\n    },\n    {\n      \"inputOrder\": 1,\n      \"used\": true,\n      \"usedOrder\": 1,\n      \"matchedCoordinateGps\": {\n        \"lon\": 4.356551936132446,\n        \"lat\": 50.84469875\n      },\n      \"confidenceValue\": 0.07687516682978913,\n      \"distanceFromRequest\": 0.14,\n      \"polylineIndex\": -1,\n      \"duration\": 12422,\n      \"length\": 308422\n    }\n  ],\n  \"routingRoutes\": [\n    {\n      \"length\": 308422,\n      \"duration\": 12422,\n      \"trafficDelay\": 0,\n      \"averageSpeed\": 89.383286,\n      \"maximumSpeed\": 0,\n      \"startUTurnThreshold\": 3000,\n      \"boundingBox\": {\n        \"minLon\": 2.30156,\n        \"minLat\": 48.86533125,\n        \"maxLon\": 4.356551936132446,\n        \"maxLat\": 50.84507\n      },\n      \"startStopInfo\": {\n        \"start\": {\n          \"lon\": 2.32157,\n          \"lat\": 48.86533\n        },\n        \"stop\": {\n          \"lon\": 4.35655,\n          \"lat\": 50.8447\n        },\n        \"distanceFirstMatched\": 0.14,\n        \"distanceLastMatched\": 0.14,\n        \"interDests\": null\n      },\n      \"polyline\": [\n        {\n          \"lon\": 2.321574222824279,\n          \"lat\": 48.86533125\n        },\n        {\n          \"lon\": 2.3217,\n          \"lat\": 48.86551\n        },\n"},"children":[]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"a","attributes":{"name":"criteria_shortest"},"children":[]}," ","##🛣️ SHORTEST – Optimize for travel distance"," ","✅ ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Use case"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Compute the route with the shortest distance between two or more points, even if it takes longer in terms of time."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["💡 ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["What it does"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Finds the route that minimizes total distance traveled, which can be useful for fuel savings, emissions reduction, or delivery cost optimization."," ","Note: The shortest route is not always the fastest."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["🔧 ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["How to enable"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Add \"SHORTEST\" to the routingCriterias array in your request."]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"\"routingCriterias\" : [ \"SHORTEST\" ]\n"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]},"📦 Example"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"{\n  \"destinations\": [ \n    { \"coordinateSat\": { \"lon\": 2.32158, \"lat\": 48.86533 } },\n    { \"coordinateSat\": { \"lon\": 4.35655, \"lat\": 50.8447  } }\n  ],\n  \"routingVehicleProfile\": {\n    \"transportMode\": \"CAR\"\n  },\n  \"routingCriterias\": [ \"SHORTEST\" ],\n  \"options\": [ \"POLYLINE\" ]\n}\n"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["📘 Note: If combined with other criteria like AVOID_TOLLS, the engine will balance between them but prioritize shortest distance."," ",{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]}," ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["📨Response"]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"{\n  \"usedDestinations\": [\n    {\n      \"inputOrder\": 0,\n      \"used\": true,\n      \"usedOrder\": 0,\n      \"matchedCoordinateGps\": {\n        \"lon\": 2.321574222824279,\n        \"lat\": 48.86533125\n      },\n      \"confidenceValue\": 0.21240678521674997,\n      \"distanceFromRequest\": 0.45,\n      \"polylineIndex\": -1,\n      \"duration\": -1,\n      \"length\": -1\n    },\n    {\n      \"inputOrder\": 1,\n      \"used\": true,\n      \"usedOrder\": 1,\n      \"matchedCoordinateGps\": {\n        \"lon\": 4.356551936132446,\n        \"lat\": 50.84469875\n      },\n      \"confidenceValue\": 0.07687516682978913,\n      \"distanceFromRequest\": 0.14,\n      \"polylineIndex\": -1,\n      \"duration\": 16247,\n      \"length\": 292638\n    }\n  ],\n  \"routingRoutes\": [\n    {\n      \"length\": 292638,\n      \"duration\": 16247,\n      \"trafficDelay\": 0,\n      \"averageSpeed\": 64.842545,\n      \"maximumSpeed\": 0,\n      \"startUTurnThreshold\": 3000,\n      \"boundingBox\": {\n        \"minLon\": 2.321574222824279,\n        \"minLat\": 48.86533125,\n        \"maxLon\": 4.356551936132446,\n        \"maxLat\": 50.84469875\n      },\n      \"startStopInfo\": {\n        \"start\": {\n          \"lon\": 2.32157,\n          \"lat\": 48.86533\n        },\n        \"stop\": {\n          \"lon\": 4.35655,\n          \"lat\": 50.8447\n        },\n        \"distanceFirstMatched\": 0.14,\n        \"distanceLastMatched\": 0.14,\n        \"interDests\": null\n      },\n      \"polyline\": [\n        {\n          \"lon\": 2.321574222824279,\n          \"lat\": 48.86533125\n        },\n        {\n          \"lon\": 2.3217,\n          \"lat\": 48.86551\n        },\n"},"children":[]}]},"headings":[{"value":"📍 Routing Criterias Tutorial","id":"-routing-criterias-tutorial","depth":1},{"value":"🛂 AVOID_CROSSING_BORDER – Avoid crossing international borders","id":"-avoid_crossing_border--avoid-crossing-international-borders","depth":2},{"value":"⛴️ AVOID_FERRIES – Avoid ferries in routing","id":"️-avoid_ferries--avoid-ferries-in-routing","depth":2},{"value":"🛣️ AVOID_MOTORWAYS – Avoid motorways in routing","id":"️-avoid_motorways--avoid-motorways-in-routing","depth":2},{"value":"🛣️ AVOID_TOLLS – Avoid toll roads","id":"️-avoid_tolls--avoid-toll-roads","depth":2},{"value":"🛣️ AVOID_UNPAVED – Avoid unpaved roads","id":"️-avoid_unpaved--avoid-unpaved-roads","depth":2},{"value":"🚗 CARPOOL – Avoid carpool-only roads","id":"-carpool--avoid-carpool-only-roads","depth":2},{"value":"🌱 ECO_ENERGY – Optimize for lowest energy consumption","id":"-eco_energy--optimize-for-lowest-energy-consumption","depth":2},{"value":"🚀 FASTEST – Optimize for travel time (default)","id":"-fastest--optimize-for-travel-time-default","depth":2}],"frontmatter":{"seo":{"title":"📍 Routing Criterias Tutorial"}},"lastModified":"2025-08-26T14:19:40.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/api-reference/routing/tutorial/routing_criterias","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}