{"id":2379,"date":"2023-12-22T21:17:13","date_gmt":"2023-12-22T21:17:13","guid":{"rendered":"https:\/\/developers.maplink.global\/utilizacion-del-area-de-restriccion\/"},"modified":"2024-02-23T19:15:24","modified_gmt":"2024-02-23T19:15:24","slug":"utilizacion-del-area-de-restriccion","status":"publish","type":"post","link":"https:\/\/developers.maplink.global\/es\/utilizacion-del-area-de-restriccion\/","title":{"rendered":"Utilizaci\u00f3n del \u00e1rea de restricci\u00f3n"},"content":{"rendered":"\n<p> Las zonas restringidas pueden utilizarse con las APIs <strong><a href=\"https:\/\/developers.maplink.global\/es\/creacion-de-solicitudes-para-la-api-trip\/\" data-type=\"post\" data-id=\"1074\">Trip<\/a>, <a href=\"https:\/\/developers.maplink.global\/es\/creacion-de-solicitudes-para-la-api-planning\/\" data-type=\"post\" data-id=\"1013\">Planning<\/a> y <a href=\"https:\/\/developers.maplink.global\/es\/creacion-de-solicitudes-para-la-distance-matrix-api\/\" data-type=\"post\" data-id=\"1197\">Distance Matrix<\/a><\/strong>.<\/p>\n\n<p>En este ejemplo realizaremos una solicitud a la Trip API teniendo en cuenta el \u00e1rea de restricci\u00f3n creada en los ejemplos anteriores. El nombre del \u00e1rea de restricci\u00f3n debe introducirse en el par\u00e1metro <code>restrictionZones<\/code>:<\/p>\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    \"calculationMode\": \"THE_SHORTEST\",\n    \"points\": [\n        {\n            \"latitude\": -23.337132,\n            \"longitude\": -46.835427,\n            \"siteId\": \"Cajamar\"\n        },\n        {\n            \"latitude\": -23.682211,\n            \"longitude\": -46.546867,\n            \"siteId\": \"SantoAndre\"\n        }\n    ],\n    \"restrictionZones\": [\n        \"RestritionZone1\"\n    ]\n}<\/pre>\n\n<p>Los resultados de la ruta, con y sin la zona restringida, pueden verse en los mapas siguientes:<\/p>\n\n<h2 class=\"wp-block-heading\"><strong>Ruta con zona restringida<\/strong><\/h2>\n\n<p class=\"has-text-align-center\"><strong><img loading=\"lazy\" decoding=\"async\" width=\"649\" height=\"646\" src=\"https:\/\/lh7-us.googleusercontent.com\/S6isM5TQcgOA2SmNj8QeS_WtUAEGhv4JFTjV24yo3keNGrwYLPUZAqFzXhWJ1eHN8g2r3dFWxk7Gpu9OgAw2zJJ44x4no23QjpdB3upMlO8veOp5OTjQV4z3os2K1h_JChr0OoXYO3Cp17zTZ4TzxYU\"\/><\/strong><\/p>\n\n<h2 class=\"wp-block-heading\"><strong>Ruta sin zona restringida<\/strong><\/h2>\n\n<p class=\"has-text-align-center\"><strong><img loading=\"lazy\" decoding=\"async\" width=\"654\" height=\"642\" src=\"https:\/\/lh7-us.googleusercontent.com\/M7xD9M0icBY2zndicAMNbBdI2ctkGZxAFQocKGheONAYchDFEtgr3GAb5ZtCKDaiVdGqlpAdSVLruoxDVfei1Aee6zyiQUsNZBf1OmmGGlDWNt7_c1WUBJ0W-GdlLUHPOLl6QNAWHFPc9IvjXeNkE98\"\/><\/strong><\/p>\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Las zonas restringidas pueden utilizarse con las APIs Trip, Planning y Distance Matrix. En este ejemplo realizaremos una solicitud a la Trip API teniendo en cuenta el \u00e1rea de restricci\u00f3n creada en los ejemplos anteriores. El nombre del \u00e1rea de restricci\u00f3n debe introducirse en el par\u00e1metro restrictionZones: Los resultados de la ruta, con y sin [&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":[156],"tags":[],"class_list":["post-2379","post","type-post","status-publish","format-standard","hentry","category-restriction-zone-es"],"acf":[],"_links":{"self":[{"href":"https:\/\/developers.maplink.global\/es\/wp-json\/wp\/v2\/posts\/2379","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/developers.maplink.global\/es\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/developers.maplink.global\/es\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/developers.maplink.global\/es\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/developers.maplink.global\/es\/wp-json\/wp\/v2\/comments?post=2379"}],"version-history":[{"count":1,"href":"https:\/\/developers.maplink.global\/es\/wp-json\/wp\/v2\/posts\/2379\/revisions"}],"predecessor-version":[{"id":2380,"href":"https:\/\/developers.maplink.global\/es\/wp-json\/wp\/v2\/posts\/2379\/revisions\/2380"}],"wp:attachment":[{"href":"https:\/\/developers.maplink.global\/es\/wp-json\/wp\/v2\/media?parent=2379"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/developers.maplink.global\/es\/wp-json\/wp\/v2\/categories?post=2379"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/developers.maplink.global\/es\/wp-json\/wp\/v2\/tags?post=2379"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}