{"id":4330,"date":"2023-12-14T20:18:00","date_gmt":"2023-12-14T20:18:00","guid":{"rendered":"https:\/\/developers.maplink.global\/?p=4330"},"modified":"2026-11-04T20:07:11","modified_gmt":"2026-11-04T20:07:11","slug":"response-structure-trip-api-2","status":"publish","type":"post","link":"https:\/\/developers.maplink.global\/en\/response-structure-trip-api-2\/","title":{"rendered":"Response Structure"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">The following example shows a route between the cities of Casa Branca-SP and Guaxup\u00e9-MG, avoiding urban areas, with toll values for a two-axle truck, the gas stations along the route, and the states it crosses.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Request<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">In the Trip API request, in addition to the points (<code>points<\/code>) and the calculation mode (<code>calculationMode<\/code>), we will use the following parameters:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>avoidanceTypes<\/code> \u2013 Types of roads or areas to be avoided on the route. We will use <code>CITY<\/code> to avoid urban areas;<\/li>\n\n\n\n<li><code>avoidanceBehavior<\/code> \u2013 Behavior applied to the <code>avoidanceTypes<\/code> restrictions. The possible values are <code>FAIL<\/code>, <code>RELAXED<\/code> and <code>STRONG<\/code>. We will use <code>STRONG<\/code>;<\/li>\n\n\n\n<li><code>toll<\/code> \u2013 Parameters related to the Toll API. To see all supported parameters, check the <a href=\"https:\/\/developers.maplink.global\/en\/list-of-parameters-toll\/\" data-type=\"post\" data-id=\"1122\">list of Toll API parameters<\/a>:\n<ul class=\"wp-block-list\">\n<li><code>vehicleType<\/code> \u2013 Vehicle type. We will use <code>\"TRUCK_WITH_TWO_DOUBLE_AXLES\"<\/code>;<\/li>\n\n\n\n<li><code>transponderOperators<\/code> \u2013 Desired automatic payment operators. We will use <code>CONECTCAR<\/code> to obtain this operator&#8217;s integration codes.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><code>crossedBorders<\/code> \u2013 Parameters to identify the borders crossed by the route:\n<ul class=\"wp-block-list\">\n<li><code>level<\/code> \u2013 Level of the returned borders. We will use <code>STATE<\/code> to obtain the states crossed;<\/li>\n\n\n\n<li><code>reverseGeocode<\/code> \u2013 Defines for which points the address will be returned. We will use <code>START_END_LEGS<\/code> to obtain the addresses of the start and end of the legs.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><code>place<\/code> \u2013 Parameters to search for places along the route. To see all supported parameters, check the <a href=\"https:\/\/developers.maplink.global\/en\/list-of-parameters-pois\/\" data-type=\"post\" data-id=\"1299\">list of POIs API parameters<\/a>:\n<ul class=\"wp-block-list\">\n<li><code>categories<\/code> \u2013 Categories of the places searched. We will use <code>POSTOS_DE_COMBUSTIVEL<\/code>;<\/li>\n\n\n\n<li><code>subCategories<\/code> \u2013 Subcategories of the places searched, for example <code>POSTO_FISCAL<\/code> and <code>BALANCAS<\/code>, from the <code>FISCALIZACAO<\/code> category. Optional parameter, not used in this example;<\/li>\n\n\n\n<li><code>bufferRouteInMeters<\/code> \u2013 Maximum distance, in meters, between the place and the route. We will use <code>500<\/code>;<\/li>\n\n\n\n<li><code>bufferStoppingPointsInMeters<\/code> \u2013 Maximum distance, in meters, between the place and the stopping points. We will use <code>500<\/code>;<\/li>\n\n\n\n<li><code>onlyMyPlaces<\/code> \u2013 When <code>true<\/code>, returns only the places registered by the client itself.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"json\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">{\n    \"points\": [\n        {\n            \"siteId\": \"Point 1-Casa Branca\",\n            \"latitude\": -21.780449,\n            \"longitude\": -47.079822\n        },\n        {\n            \"siteId\": \"Point 2-Guaxupe\",\n            \"latitude\": -21.312320,\n            \"longitude\": -46.717873\n        }\n    ],\n    \"calculationMode\": \"THE_FASTEST\",\n    \"avoidanceTypes\": [\n        \"CITY\"\n    ],\n    \"avoidanceBehavior\": \"STRONG\",\n    \"toll\": {\n        \"vehicleType\": \"TRUCK_WITH_TWO_DOUBLE_AXLES\",\n        \"transponderOperators\": [\n            \"CONECTCAR\"\n        ]\n    },\n    \"crossedBorders\": {\n        \"level\": \"STATE\",\n        \"reverseGeocode\": \"START_END_LEGS\"\n    },\n    \"place\": {\n        \"categories\": [\n            \"POSTOS_DE_COMBUSTIVEL\"\n        ],\n        \"bufferRouteInMeters\": 500,\n        \"bufferStoppingPointsInMeters\": 500,\n        \"onlyMyPlaces\": true\n    }\n}<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Below, the route displayed on the map:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"631\" height=\"596\" src=\"https:\/\/developers.maplink.global\/wp-content\/uploads\/2026\/11\/image.png\" alt=\"\" class=\"wp-image-4320\" srcset=\"https:\/\/developers.maplink.global\/wp-content\/uploads\/2026\/11\/image.png 631w, https:\/\/developers.maplink.global\/wp-content\/uploads\/2026\/11\/image-300x283.png 300w\" sizes=\"auto, (max-width: 631px) 100vw, 631px\" \/><figcaption class=\"wp-element-caption\">Route between Casa Branca &#8211; SP and Guaxup\u00e9 &#8211; MG<\/figcaption><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Response<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Some response fields are always returned, while others only appear when the corresponding parameter is sent in the request. For example, toll fields are only returned if the <code>toll<\/code> object is sent.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Fields always returned<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>id<\/code> \u2013 Unique identifier of the calculated route;<\/li>\n\n\n\n<li><code>clientId<\/code> \u2013 Identifier of the client that made the request;<\/li>\n\n\n\n<li><code>totalDistance<\/code> \u2013 Total distance of the route, in meters;<\/li>\n\n\n\n<li><code>totalNominalDuration<\/code> \u2013 Total nominal duration of the route, in seconds;<\/li>\n\n\n\n<li><code>averageSpeed<\/code> \u2013 Average speed of the route, in km\/h;<\/li>\n\n\n\n<li><code>legs<\/code> \u2013 Array of objects where each object represents a leg of the route. Each object contains the following fields, which are always returned:\n<ul class=\"wp-block-list\">\n<li><code>distance<\/code> \u2013 Distance of the leg, in meters;<\/li>\n\n\n\n<li><code>nominalDuration<\/code> \u2013 Nominal duration of the leg, in seconds;<\/li>\n\n\n\n<li><code>averageSpeed<\/code> \u2013 Average speed of the leg, in km\/h;<\/li>\n\n\n\n<li><code>points<\/code> \u2013 Geometry of the leg. The format depends on the <code>pointsMode<\/code> parameter of the request. To learn more, see how to <a href=\"https:\/\/developers.maplink.global\/en\/change-return-type-of-route-coordinates\/\" data-type=\"post\" data-id=\"1081\">change the return type of the route coordinates<\/a>.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><code>source<\/code> \u2013 Origin of the map used to calculate the route. It will always be returned as <code>MAPLINK<\/code>.<\/li>\n\n\n\n<li><code>createdAt<\/code> \u2013 Date and time the route was created, in <em>timestamp<\/em> format;<\/li>\n\n\n\n<li><code>expiryIn<\/code> \u2013 Date and time the route expires, in <em>timestamp<\/em> format.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Fields returned only if the <code>toll<\/code> object is sent<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>tollCosts<\/code> \u2013 Total toll cost for the entire route;<\/li>\n\n\n\n<li><code>legs[].tollCalculation<\/code> \u2013 Object, returned in each leg, with the toll values and information for that leg:\n<ul class=\"wp-block-list\">\n<li><code>tolls<\/code> \u2013 Array with the values and information of each toll on the leg. Each object returned in <code>tolls<\/code> represents a toll and will contain the following information:\n<ul class=\"wp-block-list\">\n<li><code>id<\/code> \u2013 Unique identifier of the toll;<\/li>\n\n\n\n<li><code>type<\/code> \u2013 Toll type. The possible values are:\n<ul class=\"wp-block-list\">\n<li><code>TOLL_BOOTH<\/code> \u2013 Conventional toll booths;<\/li>\n\n\n\n<li><code>MUNICIPAL_TOLL_BOOTH<\/code> <strong>\u2013 <\/strong>Similar to <code>TOLL_BOOTH<\/code>, it only identifies that the toll booth is municipal;<\/li>\n\n\n\n<li><code>TOLL_GANTRY<\/code> \u2013 Corresponds to conventional gantries;<\/li>\n\n\n\n<li><code>ENTRY_GANTRY<\/code> \u2013 Corresponds to entry gantries, used on roads with <a href=\"https:\/\/developers.maplink.global\/en\/example-tolls-with-rates-depending-on-origin-and-destination-mexico\/\">segment-based billing<\/a>;<\/li>\n\n\n\n<li><code>EXIT_GANTRY<\/code> \u2013 Corresponds to exit gantries, used on roads with <a href=\"https:\/\/developers.maplink.global\/en\/example-tolls-with-rates-depending-on-origin-and-destination-mexico\/\">segment-based billing<\/a>.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><code>name<\/code> \u2013 Name of the toll;<\/li>\n\n\n\n<li><code>address<\/code> \u2013 Address of the toll;<\/li>\n\n\n\n<li><code>city<\/code> \u2013 City of the toll;<\/li>\n\n\n\n<li><code>state<\/code> \u2013 Object containing the state name (<code>name<\/code>) and its abbreviation (<code>code<\/code>);<\/li>\n\n\n\n<li><code>country<\/code> \u2013 Country of the toll;<\/li>\n\n\n\n<li><code>concession<\/code> \u2013 Concessionaire responsible for the toll;<\/li>\n\n\n\n<li><code>direction<\/code> \u2013 Direction of the road in which the toll is charged (for example, <code>NORTH<\/code>, <code>EAST<\/code> or <code>SOUTHEAST<\/code>);<\/li>\n\n\n\n<li><code>coordinates<\/code> \u2013 Coordinates (latitude and longitude) of the toll;<\/li>\n\n\n\n<li><code>price<\/code> \u2013 Price per toll;<\/li>\n\n\n\n<li><code>conditions<\/code> \u2013 Array with differentiated toll values according to the billing type. Returned only for tolls that have this type of value:\n<ul class=\"wp-block-list\">\n<li><code>billingsType<\/code> \u2013 Array with the billing types to which the value applies, for example <code>TAG<\/code>;<\/li>\n\n\n\n<li><code>value<\/code> \u2013 Toll value for the informed billing types.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><code>currency<\/code> \u2013 Currency used by the toll. The possible values are:\n<ul class=\"wp-block-list\">\n<li><code>BRL<\/code> \u2013 Brazilian real;<\/li>\n\n\n\n<li><code>ARS<\/code> \u2013 Argentine peso;<\/li>\n\n\n\n<li><code>CLP<\/code> \u2013 Chilean peso;<\/li>\n\n\n\n<li><code>COP<\/code> \u2013 Colombian peso;<\/li>\n\n\n\n<li><code>MXN<\/code> \u2013 Mexican peso.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><code>serviceTypes<\/code> \u2013 Array with codes for integration with automatic payment systems. Currently available only in Brazil. In addition to <code>ANTTCODE<\/code>, the codes of the operators informed in <code>toll.transponderOperators<\/code> are returned (in this example, <code>CONECTCAR<\/code>);\n<ul class=\"wp-block-list\">\n<li><code>serviceId<\/code> \u2013 Code for the integration;<\/li>\n\n\n\n<li><code>name<\/code> \u2013 Description of the service code.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><code>active<\/code> \u2013 Indicates whether the toll is active (<code>true<\/code>) or not (<code>false<\/code>).<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><code>legTotalCost<\/code> \u2013 Total toll cost for the leg;<\/li>\n\n\n\n<li><code>vehicleType<\/code> \u2013 Vehicle type considered for the leg. It may vary between legs when <code>toll.variableAxles<\/code> is sent;<\/li>\n\n\n\n<li><code>calculationDate<\/code> \u2013 Date and time considered for the leg, in <em>timestamp<\/em> format. The base date is the value of <code>toll.calculationDate<\/code> (or the request time, if not sent), plus the nominal duration of the previous legs. Therefore, on routes with more than one leg, the value increases with each leg;<\/li>\n\n\n\n<li><code>condition<\/code> \u2013 Returned only if the <code>toll.condition<\/code> parameter is used in the request. Contains which <code>billingType<\/code> and <code>period<\/code> were considered for the leg.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Fields returned only if <code>crossedBorders.level<\/code> is sent<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>crossedBorders<\/code> \u2013 Array of objects where each object represents a border crossed by the route, according to the level informed in <code>crossedBorders.level<\/code> (in this example, <code>STATE<\/code>), in the order in which they were crossed:\n<ul class=\"wp-block-list\">\n<li><code>state<\/code> \u2013 State abbreviation;<\/li>\n\n\n\n<li><code>city<\/code> \u2013 City name. Returned when <code>level<\/code> is <code>CITY<\/code>;<\/li>\n\n\n\n<li><code>country<\/code> \u2013 Country of the border.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Fields returned only if <code>crossedBorders.reverseGeocode<\/code> is sent<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">These fields are independent of <code>crossedBorders.level<\/code>. With <code>START_END<\/code>, <code>startAddress<\/code> and <code>endAddress<\/code> are returned. With <code>START_END_LEGS<\/code>, <code>legs[].firstPointAddress<\/code> is also returned.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>startAddress<\/code> \u2013 Address of the route&#8217;s origin point. The object contains the following information:\n<ul class=\"wp-block-list\">\n<li><code>road<\/code> \u2013 Street;<\/li>\n\n\n\n<li><code>district<\/code> \u2013 Neighborhood;<\/li>\n\n\n\n<li><code>zipCode<\/code> \u2013 Postal code;<\/li>\n\n\n\n<li><code>city<\/code> \u2013 City;<\/li>\n\n\n\n<li><code>state<\/code> \u2013 Object containing the state name (<code>name<\/code>) and its abbreviation (<code>code<\/code>);<\/li>\n\n\n\n<li><code>mainLocation<\/code> \u2013 Coordinates (<code>lat<\/code> and <code>lon<\/code>) of the address found;<\/li>\n\n\n\n<li>When available for the address, <code>geometry<\/code> (array of <code>lat<\/code> and <code>lon<\/code> coordinates of the road), <code>leftZipCode<\/code> and <code>rightZipCode<\/code> (postal code of each side of the road), <code>leftFirstNumber<\/code>, <code>leftLastNumber<\/code>, <code>rightFirstNumber<\/code> and <code>rightLastNumber<\/code> (first and last numbering of each side of the road) may also be returned.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><code>endAddress<\/code> \u2013 Address of the route&#8217;s destination point, with the same structure as the <code>startAddress<\/code> object;<\/li>\n\n\n\n<li><code>legs[].firstPointAddress<\/code> \u2013 Address of the first point of each leg, with the same structure as the <code>startAddress<\/code> object. Returned only with <code>START_END_LEGS<\/code>.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Fields returned only if the <code>place<\/code> object is sent<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>legs[].placeCalculation<\/code> \u2013 Object, returned in each leg, with the places found along the leg according to the <code>place<\/code> parameters:\n<ul class=\"wp-block-list\">\n<li><code>total<\/code> \u2013 Number of places found on the leg;<\/li>\n\n\n\n<li><code>places<\/code> \u2013 Array with the places found. In this example the array is returned empty, since no registered place met the search criteria. When there are results, each object contains:\n<ul class=\"wp-block-list\">\n<li><code>id<\/code> \u2013 Unique identifier of the place;<\/li>\n\n\n\n<li><code>name<\/code> \u2013 Name of the place;<\/li>\n\n\n\n<li><code>documentNumber<\/code> \u2013 Document number of the establishment;<\/li>\n\n\n\n<li><code>category<\/code> \u2013 Category of the place, for example <code>POSTOS_DE_COMBUSTIVEL<\/code>;<\/li>\n\n\n\n<li><code>subCategory<\/code> \u2013 Subcategory of the place;<\/li>\n\n\n\n<li><code>address<\/code> \u2013 Address of the place:\n<ul class=\"wp-block-list\">\n<li><code>street<\/code> \u2013 Street;<\/li>\n\n\n\n<li><code>number<\/code> \u2013 Number;<\/li>\n\n\n\n<li><code>city<\/code> \u2013 City;<\/li>\n\n\n\n<li><code>state<\/code> \u2013 State abbreviation;<\/li>\n\n\n\n<li><code>zipcode<\/code> \u2013 Postal code;<\/li>\n\n\n\n<li><code>point<\/code> \u2013 Coordinates (<code>latitude<\/code> and <code>longitude<\/code>) of the place.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><code>phones<\/code> \u2013 Array with the phone numbers of the place;<\/li>\n\n\n\n<li><code>clientId<\/code> \u2013 Identifier of the client that registered the place;<\/li>\n\n\n\n<li><code>active<\/code> \u2013 Indicates whether the place is active (<code>true<\/code>) or not (<code>false<\/code>).<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Fields returned only if the <code>turnByTurn<\/code> object is sent<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">When the <code>turnByTurn<\/code> parameter is used, the route&#8217;s turn-by-turn directions are also returned in the response. This parameter was not used in this example. For more information about the returned fields, see the <a href=\"https:\/\/developers.maplink.global\/en\/example-6-obtain-detailed-rotogram-of-the-route\/\">detailed route directions example<\/a>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Fields returned only if the <code>freight<\/code> object is sent<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>routeFreightCost<\/code> \u2013 Freight cost of the route. It corresponds to <code>freight.minimumFreightWithCosts<\/code> plus <code>tollCosts<\/code>. If the <code>toll<\/code> object is not sent, the toll value considered is zero;<\/li>\n\n\n\n<li><code>freight<\/code> \u2013 Object with the freight calculation result:\n<ul class=\"wp-block-list\">\n<li><code>source<\/code> \u2013 Regulation used as the basis for the calculation;<\/li>\n\n\n\n<li><code>results<\/code> \u2013 Object with the calculated values, organized in levels: operation type (<code>operationType<\/code>), number of axles (<code>axis<\/code>) and cargo type (<code>goodsType<\/code>). For each combination, <code>value<\/code> (freight value) and <code>otherCosts<\/code> (object with the value of each cost informed in <code>freight.otherCosts<\/code>, indexed by its respective <code>name<\/code>) are returned;<\/li>\n\n\n\n<li><code>minimumFreight<\/code> \u2013 Minimum freight value;<\/li>\n\n\n\n<li><code>minimumFreightWithCosts<\/code> \u2013 Minimum freight value plus the other costs informed.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">The <code>freight<\/code> field is not part of this example&#8217;s request. Below is an example of how this field is returned when the corresponding object is sent in the request. The <code>routeFreightCost<\/code> value is illustrative only. To learn more, see the <a href=\"https:\/\/developers.maplink.global\/exemplo-5-integracao-com-a-trip-api\/\" data-type=\"link\" data-id=\"https:\/\/developers.maplink.global\/exemplo-5-integracao-com-a-trip-api\/\">Freight API documentation<\/a>.<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"json\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">\"routeFreightCost\": 36970.73,\n\"freight\": {\n    \"source\": \"PORTARIA N\u00ba 169, DE 18 DE MAR\u00c7O DE 2022\",\n    \"results\": {\n        \"D\": {\n            \"4\": {\n                \"GRANEL_SOLIDO\": {\n                    \"value\": 36970.73,\n                    \"otherCosts\": {\n                        \"ICMS\": 1848.54,\n                        \"Lucro\": 7394.15,\n                        \"TaxaFixa\": 500\n                    }\n                }\n            }\n        }\n    },\n    \"minimumFreight\": 36970.73,\n    \"minimumFreightWithCosts\": 46713.42\n}<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Full response<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The full response is shown below, generated from this example&#8217;s request (with <code>toll<\/code>, <code>crossedBorders<\/code> and <code>place<\/code>):<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"json\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">{\n    \"id\": \"6aeb78781e5d6641c3a5d586\",\n    \"clientId\": \"maplink\",\n    \"totalDistance\": 86857,\n    \"totalNominalDuration\": 4363,\n    \"averageSpeed\": 56.75,\n    \"tollCosts\": 16.20,\n    \"legs\": [\n        {\n            \"distance\": 86856,\n            \"nominalDuration\": 4363,\n            \"averageSpeed\": 56.75,\n            \"points\": \"j_}cCdgj~GmEgEv@eAgEgBSAYQuAuASy@IgA?[PuAh@oA`@s@h@k@rFmFN_@FY}AaAmAi@{@_@cHeEuUqLkIaE_DcBgFgCKOGOWKAICIEGD[COCU?O@MDOFOP[fDa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w@FcBNeBNsAXaBxAuFnBcHX_Ap@iCp@aCh@yBhFsRhFwRXq@Ti@Te@t@qBPk@h@uBPg@ZiBVgBJi@BUbCgJpDiNrFkSvAwFJq@Jy@PaCBy@@uBCgAGaAIcAMgAe@}Ba@}A[}@yB_FwNcZg@uA_@sAWsA]gCMgBCmB?iABcAvBgQXeCRoBd@uF|F_v@LgC@wAAyAEqAMmBSkBWkBWuAe@qB[gA_@cAGSu@eBo@oAyHeNkAuCq@_Be@aAw@sACg@BUHMJGPCzD]vHm@dIq@dCUfHi@`@C^EVEz@Yl@GfDOh@?x@@fBFd@Dd@HbCz@XDV@xC@fEGfACd@Cf@Ij@Op@WrAu@pIeFf@Op@QDE@G@ICGtDmF~DqF`B_CzBuCNOHENCPEtC[SmB_@sEH}DCuACe@IkAM}@Eg@IYm@}ADEDEBE?G?GAGCEEEEAGAE?G@EBI?u@]s@w@o@w@qBmCgDcFc@u@q@cFOyAe@qDIs@oAu@gBy@?EEGA?EEe@m@w@w@dBoDOI\",\n            \"firstPointAddress\": {\n                \"road\": \"RUA S\u00c3O PAULO\",\n                \"district\": \"Centro\",\n                \"zipCode\": \"13700049\",\n                \"city\": \"CASA BRANCA\",\n                \"state\": {\n                    \"code\": \"SP\",\n                    \"name\": \"S\u00c3O PAULO\"\n                },\n                \"mainLocation\": {\n                    \"lat\": -21.780329800344585,\n                    \"lon\": -47.07950794999991\n                }\n            },\n            \"placeCalculation\": {\n                \"total\": 0,\n                \"places\": []\n            },\n            \"tollCalculation\": {\n                \"tolls\": [\n                    {\n                        \"id\": \"177\",\n                        \"type\": \"TOLL_BOOTH\",\n                        \"name\": \"Ped\u00e1gio - Mococa\",\n                        \"address\": \"SP-340 - Rodovia Professor Boanerges Nogueira de Lima - Km 254+7\",\n                        \"city\": \"Casa Branca\",\n                        \"state\": {\n                            \"name\": \"S\u00e3o Paulo\",\n                            \"code\": \"SP\"\n                        },\n                        \"country\": \"Brasil\",\n                        \"currency\": \"BRL\",\n                        \"concession\": \"Rota Mogiana\",\n                        \"direction\": \"NORTH\",\n                        \"coordinates\": {\n                            \"latitude\": -21.6408129,\n                            \"longitude\": -47.0477845\n                        },\n                        \"serviceTypes\": [\n                            {\n                                \"serviceId\": \"35353402546900103\",\n                                \"name\": \"ANTTCODE\"\n                            },\n                            {\n                                \"serviceId\": \"101140011\",\n                                \"name\": \"Conectcar\"\n                            }\n                        ],\n                        \"price\": 16.20,\n                        \"active\": true\n                    }\n                ],\n                \"legTotalCost\": 16.20,\n                \"vehicleType\": \"TRUCK_WITH_TWO_DOUBLE_AXLES\",\n                \"calculationDate\": 1793816696871\n            },\n            \"arrivalSiteId\": \"Point 2-Guaxupe\",\n            \"departureSiteId\": \"Point 1-Casa Branca\"\n        }\n    ],\n    \"crossedBorders\": [\n        {\n            \"state\": \"SP\",\n            \"country\": \"BRASIL\"\n        },\n        {\n            \"state\": \"MG\",\n            \"country\": \"BRASIL\"\n        }\n    ],\n    \"startAddress\": {\n        \"road\": \"RUA S\u00c3O PAULO\",\n        \"district\": \"Centro\",\n        \"zipCode\": \"13700049\",\n        \"city\": \"CASA BRANCA\",\n        \"state\": {\n            \"code\": \"SP\",\n            \"name\": \"S\u00c3O PAULO\"\n        },\n        \"mainLocation\": {\n            \"lat\": -21.780329800344585,\n            \"lon\": -47.07950794999991\n        }\n    },\n    \"endAddress\": {\n        \"road\": \"RUA JOS\u00c9 OLEG\u00c1RIO DA SILVEIRA\",\n        \"district\": \"PARQUE DO LAGO\",\n        \"zipCode\": \"37831024\",\n        \"city\": \"GUAXUP\u00c9\",\n        \"state\": {\n            \"code\": \"MG\",\n            \"name\": \"MINAS GERAIS\"\n        },\n        \"mainLocation\": {\n            \"lat\": -21.312143750217658,\n            \"lon\": -46.7183685\n        }\n    },\n    \"source\": \"MAPLINK\",\n    \"createdAt\": 1793816696967,\n    \"expiryIn\": 1794421496626\n}<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>The following example shows a route between the cities of Casa Branca-SP and Guaxup\u00e9-MG, avoiding urban areas, with toll values for a two-axle truck, the gas stations along the route, and the states it crosses. Request In the Trip API request, in addition to the points (points) and the calculation mode (calculationMode), we will use [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"inline_featured_image":false,"footnotes":""},"categories":[161],"tags":[],"class_list":["post-4330","post","type-post","status-publish","format-standard","hentry","category-trip-en"],"acf":[],"_links":{"self":[{"href":"https:\/\/developers.maplink.global\/en\/wp-json\/wp\/v2\/posts\/4330","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/developers.maplink.global\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/developers.maplink.global\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/developers.maplink.global\/en\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/developers.maplink.global\/en\/wp-json\/wp\/v2\/comments?post=4330"}],"version-history":[{"count":2,"href":"https:\/\/developers.maplink.global\/en\/wp-json\/wp\/v2\/posts\/4330\/revisions"}],"predecessor-version":[{"id":4333,"href":"https:\/\/developers.maplink.global\/en\/wp-json\/wp\/v2\/posts\/4330\/revisions\/4333"}],"wp:attachment":[{"href":"https:\/\/developers.maplink.global\/en\/wp-json\/wp\/v2\/media?parent=4330"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/developers.maplink.global\/en\/wp-json\/wp\/v2\/categories?post=4330"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/developers.maplink.global\/en\/wp-json\/wp\/v2\/tags?post=4330"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}