{"id":252,"date":"2025-01-08T12:30:20","date_gmt":"2025-01-08T12:30:20","guid":{"rendered":"http:\/\/rentacarazorestravel.com\/booking\/"},"modified":"2025-02-24T12:07:14","modified_gmt":"2025-02-24T12:07:14","slug":"bookings","status":"publish","type":"page","link":"https:\/\/rentacarazorestravel.com\/en\/bookings\/","title":{"rendered":"Bookings"},"content":{"rendered":"<p>[et_pb_section fb_built=&#8221;1&#8243; next_background_color=&#8221;#F5F5F5&#8243; _builder_version=&#8221;4.27.4&#8243; _module_preset=&#8221;default&#8221; background_color=&#8221;#6BB33E&#8221; custom_padding=&#8221;12px||90px|||&#8221; bottom_divider_style=&#8221;mountains2&#8243; global_colors_info=&#8221;{}&#8221;][et_pb_row column_structure=&#8221;2_3,1_3&#8243; make_equal=&#8221;on&#8221; _builder_version=&#8221;4.27.4&#8243; _module_preset=&#8221;default&#8221; width=&#8221;90%&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_column type=&#8221;2_3&#8243; _builder_version=&#8221;4.27.4&#8243; _module_preset=&#8221;default&#8221; pac_dcm_carousel_specific_module_num=&#8221;0&#8243; global_colors_info=&#8221;{}&#8221;][et_pb_text _builder_version=&#8221;4.27.4&#8243; _dynamic_attributes=&#8221;content&#8221; _module_preset=&#8221;default&#8221; text_font=&#8221;Roboto|700||on|||||&#8221; text_text_color=&#8221;#FFFFFF&#8221; text_font_size=&#8221;25px&#8221; header_3_font=&#8221;Roboto|700||on|||||&#8221; header_3_text_color=&#8221;#FFFFFF&#8221; custom_margin=&#8221;||12px|||&#8221; text_orientation_tablet=&#8221;center&#8221; text_orientation_phone=&#8221;center&#8221; text_orientation_last_edited=&#8221;on|phone&#8221; global_colors_info=&#8221;{}&#8221;]@ET-DC@eyJkeW5hbWljIjp0cnVlLCJjb250ZW50IjoicG9zdF90aXRsZSIsInNldHRpbmdzIjp7ImJlZm9yZSI6IiIsImFmdGVyIjoiIn19@[\/et_pb_text][et_pb_text _builder_version=&#8221;4.27.4&#8243; _module_preset=&#8221;default&#8221; text_text_color=&#8221;#FFFFFF&#8221; text_font_size=&#8221;20px&#8221; hover_enabled=&#8221;0&#8243; global_colors_info=&#8221;{}&#8221; text_orientation_last_edited=&#8221;on|phone&#8221; sticky_enabled=&#8221;0&#8243; text_orientation_phone=&#8221;center&#8221;]<\/p>\n<p>Book your car.<\/p>\n<p>[\/et_pb_text][\/et_pb_column][et_pb_column type=&#8221;1_3&#8243; _builder_version=&#8221;4.27.4&#8243; _module_preset=&#8221;default&#8221; custom_css_main_element=&#8221;display:flex;||flex-direction:column;||justify-content:center;&#8221; pac_dcm_carousel_specific_module_num=&#8221;0&#8243; global_colors_info=&#8221;{}&#8221;][lwp_divi_breadcrumbs link_color=&#8221;#FFFFFF&#8221; separator_color=&#8221;#FFFFFF&#8221; current_text_color=&#8221;rgba(255,255,255,0.7)&#8221; _builder_version=&#8221;4.27.4&#8243; _module_preset=&#8221;default&#8221; module_font=&#8221;Roboto||||||||&#8221; module_text_align=&#8221;right&#8221; text_orientation=&#8221;right&#8221; module_text_align_tablet=&#8221;center&#8221; module_text_align_phone=&#8221;center&#8221; module_text_align_last_edited=&#8221;on|tablet&#8221; text_orientation_tablet=&#8221;center&#8221; text_orientation_phone=&#8221;center&#8221; text_orientation_last_edited=&#8221;on|tablet&#8221; global_colors_info=&#8221;{}&#8221;][\/lwp_divi_breadcrumbs][\/et_pb_column][\/et_pb_row][\/et_pb_section][et_pb_section fb_built=&#8221;1&#8243; _builder_version=&#8221;4.27.4&#8243; _module_preset=&#8221;default&#8221; background_color=&#8221;#F5F5F5&#8243; custom_padding=&#8221;30px|||||&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_row _builder_version=&#8221;4.27.4&#8243; _module_preset=&#8221;default&#8221; width=&#8221;90%&#8221; custom_padding=&#8221;0px|||||&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_column type=&#8221;4_4&#8243; _builder_version=&#8221;4.27.4&#8243; _module_preset=&#8221;default&#8221; pac_dcm_carousel_specific_module_num=&#8221;0&#8243; global_colors_info=&#8221;{}&#8221;][et_pb_text _builder_version=&#8221;4.27.4&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;]<\/p>\n\n<div id=\"bodyreserva\" class=\"bodyreserva2 col-lg-12 col-md-12 col-sm-12 col-xs-12\" style=\"background: rgba(255,255,255,0.6);height: auto;margin-bottom:40px;\">\n  <div class=\"w2r_main_nav col-lg-12 col-md-12 col-sm-12 col-xs-12\" style=\"padding:10px;\">\n      <div class=\"selected\"><a href=\"javascript:void(0)\">1.Dates and Locations<\/a><\/div>\n      <div class=\"w2r_disable\"><a href=\"javascript:void(0)\">2.Vehicle<\/a><\/div>\n      <div class=\"w2r_disable\"><a href=\"javascript:void(0)\">3.Insurances \/ Extras<\/a><\/div>\n      <div class=\"w2r_disable\"><a href=\"javascript:void(0)\">4.Get Quote \/ Book<\/a><\/div>\n  <\/div>\n  \n  <div class=\"col-lg-12 col-md-12 col-sm-12 col-xs-12 w2r_main\" style=\"padding-left:0;padding-right:0;margin-top:20px;\">\n    \n      <form  method=\"post\" id=\"w2rForm\" name=\"w2rForm\" action=\"https:\/\/rentacarazorestravel.com\/en\/bookings?step=2#bodyreserva\" class=\"col-lg-12 col-md-12 col-sm-12 col-xs-12\" style=\"padding-left:0;padding-right:0;\">\n        <div class=\"error-div\" id=\"error-div\"><\/div>\n          <div class=\"w2r_main_data col-lg-12 col-md-12 col-sm-12 col-xs-12\" style=\"padding-left:0;padding-right:0;margin-top:20px;margin-bottom: 20px;\">\n       \n            <!-- REGULAR -->\n                <div class=\"row form-group col-lg-12 col-md-12 col-sm-12 col-xs-12 \" style=\"padding-left:0;padding-right:0;\">\n                    \n                    <div class=\"col-lg-12 col-md-12 col-sm-12 col-xs-12\" style=\"padding-left:0;padding-right:0;\">\n                        <div class=\"col-lg-6 col-md-6 col-sm-6 col-xs-12\">\n                            \n                            <div class=\"col-lg-12 col-md-12 col-sm-12 col-xs-12 icon-modulo2\">\n                                <label>Pick up Location<\/label>\n                            <\/div>\n                            <div class=\"icon-modulo2 col-lg-12 col-md-12 col-sm-12 col-xs-12\">\n                                <select name=\"pickup\" id=\"pickup\" class=\"form-control\">\n                                <option value=\"1\">Aeroporto do Pico<\/option><option value=\"2\">Gare Mar\u00edtima da Madalena<\/option><option value=\"3\">Gare Mar\u00edtima de S\u00e3o Roque <\/option>                                <\/select>\n                                <span ><i class=\"fa fa-map-marker\" aria-hidden=\"true\"><\/i><!--<img decoding=\"async\" src=\"<?\/\/=$media_path?>\/icon_localizacao.png\">--><\/span>                        \n                            <\/div>\n                        <\/div>\n                        <div class=\"col-lg-3 col-md-3 col-sm-3 col-xs-12\">\n                            <div class=\"col-lg-12 col-md-12 col-sm-12 col-xs-12 icon-modulo2\">\n                                <label>Pick up date<\/label>\n                            <\/div>\n                            <div class=\"icon-modulo2 col-lg-12 col-md-12 col-sm-12 col-xs-12\">\n                                <input name=\"pickup_date\"  id=\"pickup_date\" type=\"text\" onfocus=\"blur();\" class=\"form-control\" value=\"2026-06-28\" autocomplete=\"off\"\/>\n                                <span><i class=\"fa fa-calendar\" aria-hidden=\"true\"><\/i><!--<img decoding=\"async\" src=\"<?\/\/=$media_path?>\/icon_calendario.png\">--><\/span>\n                            <\/div>\n                            \n                        <\/div>\n                        <div class=\"col-lg-3 col-md-3 col-sm-3 col-xs-12\">\n                            <div class=\"col-lg-12 col-md-12 col-sm-12 col-xs-12 icon-modulo2\">        \n                                <label>Pick up hour<\/label>\n                            <\/div>\n                            <div class=\"icon-modulo2 col-lg-12 col-md-12 col-sm-12 col-xs-12\">\n                                <select name=\"pickup_hour\"  id=\"pickup_hour\" style=\"z-index: 111111111;\" class=\"form-control\"  value=\"15:00\" autocomplete=\"off\"\/>\n                                <\/select>\n                                <span><i class=\"far fa-clock\" aria-hidden=\"true\"><\/i><!--<img decoding=\"async\" src=\"<?\/\/=$media_path?>\/icon_relogio.png\">--><\/span>\n                            <\/div>\n                            \n                        <\/div>\n                    <\/div>\n                    \n                  \n                  \n                  <!-- Dropoff-->\n                  \n                    <div class=\"col-lg-12 col-md-12 col-sm-12 col-xs-12\" style=\"padding-left:0;padding-right:0;\">\n                        <div class=\"col-lg-6 col-md-6 col-sm-6 col-xs-12\">\n                            <div class=\"col-lg-12 col-md-12 col-sm-12 col-xs-12 icon-modulo2\">\n                                <label>Drop off Location<\/label>\n                            <\/div>\n                            <div class=\"icon-modulo2 col-lg-12 col-md-12 col-sm-12 col-xs-12\">\n                                <select name=\"dropoff\" id=\"dropoff\" class=\"form-control\">\n                                    <option value=\"1\">Aeroporto do Pico<\/option><option value=\"2\">Gare Mar\u00edtima da Madalena<\/option><option value=\"3\">Gare Mar\u00edtima de S\u00e3o Roque <\/option>                                <\/select>\n                                <span ><i class=\"fa fa-map-marker\" aria-hidden=\"true\"><\/i><!--<img decoding=\"async\" src=\"<?\/\/=$media_path?>\/icon_localizacao.png\">--><\/span>\n                            <\/div>\n                            \n                        <\/div>\n                        <div class=\"col-lg-3 col-md-3 col-sm-3 col-xs-12\">\n                        \n                            <div class=\"col-lg-12 col-md-12 col-sm-12 col-xs-12 icon-modulo2\">\n                                    <label>Drop off date<\/label>\n                            <\/div>\n                            <div class=\"icon-modulo2 col-lg-12 col-md-12 col-sm-12 col-xs-12\">\n                                <input name=\"dropoff_date\" id=\"dropoff_date\" type=\"text\" onfocus=\"blur();\" class=\"form-control\" value=\"2026-07-01\" autocomplete=\"off\"\/>\n                                <span><i class=\"fa fa-calendar\" aria-hidden=\"true\"><\/i><!--<img decoding=\"async\" src=\"<?\/\/=$media_path?>\/icon_calendario.png\">--><\/span>\n                            <\/div>\n                            \n                        <\/div>\n                        \n                        <div class=\"col-lg-3 col-md-3 col-sm-3 col-xs-12\">\n                            <div class=\"col-lg-12 col-md-12 col-sm-12 col-xs-12 icon-modulo2\">\n                                <label>Drop off hour<\/label>\n                            <\/div>   \n                            <div class=\"icon-modulo2 col-lg-12 col-md-12 col-sm-12 col-xs-12\">\n                                <select name=\"dropoff_hour\" id=\"dropoff_hour\" class=\"form-control\"  value=\"11:00\" autocomplete=\"off\"\/>\n                                <\/select>\n                                <span><i class=\"far fa-clock\" aria-hidden=\"true\"><\/i><!--<img decoding=\"async\" src=\"<?\/\/=$media_path?>\/icon_relogio.png\">--><\/span>\n                            <\/div>  \n                        <\/div>          \n                    <\/div>\n                    <div class=\"col-lg-12 col-md-12 col-sm-12 col-xs-12\" style=\"padding-left:0;padding-right:0;\">\n\n                        <div class=\"col-lg-12 col-md-12 col-sm-12 col-xs-12\">\n\n                            <div class=\"col-lg-12 col-md-12 col-sm-12 col-xs-12\">\n\n                                <label>Driver Age<\/label>\n\n                            <\/div>\n\n                            <div class=\"icon-modulo2 col-md-3 col-xs-12\">\n\n                                <select name=\"driver_age\" id=\"driver_age\" class=\"form-control\">\n\n                                    <option selected value=\"18\">18<\/option><option value=\"19\">19<\/option><option value=\"20\">20<\/option><option value=\"21\">21<\/option><option value=\"22\">22<\/option><option value=\"23\">23<\/option><option value=\"24\">24<\/option><option value=\"25\">25<\/option><option value=\"26\">26<\/option><option value=\"27\">27<\/option><option value=\"28\">28<\/option><option value=\"29\">29<\/option><option value=\"30\">30<\/option><option value=\"31\">31<\/option><option value=\"32\">32<\/option><option value=\"33\">33<\/option><option value=\"34\">34<\/option><option value=\"35\">35<\/option><option value=\"36\">36<\/option><option value=\"37\">37<\/option><option value=\"38\">38<\/option><option value=\"39\">39<\/option><option value=\"40\">40<\/option><option value=\"41\">41<\/option><option value=\"42\">42<\/option><option value=\"43\">43<\/option><option value=\"44\">44<\/option><option value=\"45\">45<\/option><option value=\"46\">46<\/option><option value=\"47\">47<\/option><option value=\"48\">48<\/option><option value=\"49\">49<\/option><option value=\"50\">50<\/option><option value=\"51\">51<\/option><option value=\"52\">52<\/option><option value=\"53\">53<\/option><option value=\"54\">54<\/option><option value=\"55\">55<\/option><option value=\"56\">56<\/option><option value=\"57\">57<\/option><option value=\"58\">58<\/option><option value=\"59\">59<\/option><option value=\"60\">60<\/option><option value=\"61\">61<\/option><option value=\"62\">62<\/option><option value=\"63\">63<\/option><option value=\"64\">64<\/option><option value=\"65\">65<\/option><option value=\"66\">66<\/option><option value=\"67\">67<\/option><option value=\"68\">68<\/option><option value=\"69\">69<\/option><option value=\"70\">70<\/option><option value=\"71\">71<\/option><option value=\"72\">72<\/option><option value=\"73\">73<\/option><option value=\"74\">74<\/option><option value=\"75\">75<\/option><option value=\"76\">76<\/option><option value=\"77\">77<\/option><option value=\"78\">78<\/option><option value=\"79\">79<\/option><option value=\"80\">80<\/option><option value=\"81\">81<\/option><option value=\"82\">82<\/option><option value=\"83\">83<\/option><option value=\"84\">84<\/option><option value=\"85\">85<\/option><option value=\"86\">86<\/option><option value=\"87\">87<\/option><option value=\"88\">88<\/option><option value=\"89\">89<\/option><option value=\"90\">90<\/option>\n                                <\/select>\n\n                                <span><i class=\"fas fa-user\"><\/i><\/span>\n\n                            <\/div>\n                            \n                        <\/div>\n\n                    <\/div>\n                    <div class=\"col-lg-12 col-md-12 col-sm-12 col-xs-12\" style=\"margin-top:10px;\">\n                        <div class=\"col-md-12 col-xs-12 age_agree\">\n                            <label><input type=\"checkbox\" name=\"agreewithage\" id=\"agreewithage\">\n                            I acknowledge that I must be at least 18 years old.<\/label>\n                        <\/div>\n                    <\/div>\n                        \n                <\/div>\n                  \n\n                <div class=\"col-lg-12 col-md-12 col-sm-12 col-xs-12 button_next\">\n                    <div class=\"col-lg-12 col-md-12 col-sm-12 col-xs-12\" style=\"margin-top:20px;\">\n                        <button type=\"button\" onclick=\"nextStep()\" class=\"btn btn-primary steps_button\">See availabilities<\/button>\n                    <\/div>\n                <\/div>\n                <input type=\"hidden\" name=\"step\" value=\"2\"\/>\n            \n            <\/div>\n            \n    <\/form>\n  <\/div>\n<\/div><?\/\/php if (ICL_LANGUAGE_CODE == 'en') {     ?>    \n            <script>\n                    way2rentals.jQuery(function(){\n                        way2rentals.jQuery.datetimepicker.setLocale('en');\n                        way2rentals.jQuery( \"#pickup_date\" ).datetimepicker({ dayOfWeekStart: 1 });\n                        way2rentals.jQuery( \"#dropoff_date\" ).datetimepicker({ dayOfWeekStart: 1 });\n                    });\n            <\/script>\n            <?\/\/php };  ?>\n\t\n\n<script>\n<!--\nwindow.history.pushState(null, \"\", window.location.href);\n\nwindow.onpopstate = function () {\n\n    window.history.pushState(null, \"\", window.location.href);\n\n};\n\n\n\nway2rentals.jQuery(\"#pickup_date\").on(\"keydown\", function(e) {\n    e.preventDefault();\n});\n\nway2rentals.jQuery(\"#dropoff_date\").on(\"keydown\", function(e) {\n    e.preventDefault();\n});\n\nway2rentals.jQuery('#pickup_hour').on('keydown', function(e) {\n    e.preventDefault();\n});\n\nway2rentals.jQuery('#dropoff_hour').on('keydown', function(e) {\n    e.preventDefault();\n});\n\nway2rentals.jQuery(function(){\n    way2rentals.jQuery( \"#pickup_date\" ).datetimepicker({ dayOfWeekStart: 1 });\n    way2rentals.jQuery( \"#dropoff_date\" ).datetimepicker({ dayOfWeekStart: 1 });\n    way2rentals.jQuery('#transition_loader').fadeOut();\n\n    \/*setTimeout(function(){ \n        showPopUp('Aten\u00e7\u00e3o!','Esta p\u00e1gina est\u00e1 a ser visitada por mais <?\/\/=$_SESSION['people_watch']?> utilizadores'); \n    }, 4000);*\/\n    \n});\n\n\n\nway2rentals.jQuery(\"#pickup\").change(function() {\n     \n\tvar date = new Date(way2rentals.jQuery(\"#pickup_date\").val());\n\tnonWorkingDatesPickup(date);\n});\n\nway2rentals.jQuery(\"#dropoff\").change(function() {\n    \n    var date = new Date(way2rentals.jQuery(\"#dropoff_date\").val());\n    nonWorkingDatesDropoff(date);\n});\n\nway2rentals.jQuery(\"#pickup_date\").change(function() {\n\t \n    if (way2rentals.jQuery('#dropoff_date').val() < way2rentals.jQuery(\"#pickup_date\").val()) {\n       \n    \tvar date = new Date(way2rentals.jQuery(\"#pickup_date\").val());\n        date.setDate(date.getDate() + 1);\n        \n        while (nonWorkingDatesPickup(date)[0] != true) {\n        \tdate.setDate(date.getDate() + 1);\n        }\n        way2rentals.jQuery('#dropoff_date').val(date.toInputFormat());\n    }\n});\n\nDate.prototype.toInputFormat = function() {\n    var yyyy = this.getFullYear().toString();\n    var mm = (this.getMonth()+1).toString(); \/\/ getMonth() is zero-based\n    var dd  = this.getDate().toString();\n    return yyyy + \"-\" + (mm[1]?mm:\"0\"+mm[0]) + \"-\" + (dd[1]?dd:\"0\"+dd[0]); \/\/ padding\n };\n\nfunction nextStep(){\n    var check_dates_filledup = checkData(['pickup_date','dropoff_date', 'pickup_hour', 'dropoff_hour', 'pickup','dropoff']);\n    var check_dates = checkDates('pickup_date','dropoff_date','pickup_hour','dropoff_hour');\n    \/\/var check_dates_range = checkDateRange('pickup_date','dropoff_date','pickup_hour','dropoff_hour');\n    var check_saturdays = checkSaturdays('pickup_date','dropoff_date','pickup_hour','dropoff_hour');\n    var next=true;\n    \n    if(check_dates_filledup == false){\n        next=false;\n        addError(\"- Please make sure all fields are full.<br>\");\n    }\n    \n    if (check_dates == false) {\n        next=false;\n        addError(\"- Please make sure that the pickup date is not longer than the dropoff date and less than the current date.<br>\");\n    }\n    \n    \/*if (check_dates_range == false) {\n        next=false;\n        addError('<? \/\/=__('- The booking cannot exceed 30 days.', 'way2rentals')?><br>');\n    }*\/\n\n    if(next == true){\n    \tway2rentals.jQuery('body').append('<div id=\"transition_loader2\" class=\"loading-w2r\">Loading &#8230;<\/div>');\n    \t\/\/way2rentals.jQuery('#w2rForm').submit();\n    \twp.ajax.post( \"w2r_check_schedules_request\", {\n            pickup: way2rentals.jQuery('#pickup').val(),\n            dropoff: way2rentals.jQuery('#dropoff').val(),\n            pickup_date: way2rentals.jQuery('#pickup_date').val(),\n            pickup_hour: way2rentals.jQuery('#pickup_hour').val(),\n            dropoff_date: way2rentals.jQuery('#dropoff_date').val(),\n            dropoff_hour: way2rentals.jQuery('#dropoff_hour').val(),\n            agreewithage: way2rentals.jQuery('#agreewithage').is(\":checked\")\n            \n        }).done(function(response) {\n        \tresponse = way2rentals.jQuery.parseJSON(response);\n\n            if(response.success == 1){\n                \n\n                way2rentals.jQuery('#w2rForm').submit();\n\n            } else if(response.success == 2) {\n\n                way2rentals.jQuery('#transition_loader').fadeOut();\n                way2rentals.jQuery('#transition_loader2').remove();\n                ConfirmDialog(response.error);\n\n            }else{\n\n            \tway2rentals.jQuery('#transition_loader').fadeOut();\n                way2rentals.jQuery('#transition_loader2').remove();\n            \taddError(response.error);\n\n            }\n    \t});\n    }\n}\n\nfunction ConfirmDialog(message) {\n\n      way2rentals.jQuery('<div><\/div>').appendTo('body')\n\n        .html('<div><p>' + message + '<\/p><\/div>')\n\n        .dialog({\n\n          modal: true,\n\n          title: '',\n\n          zIndex: 10000,\n\n          autoOpen: true,\n\n          width: 'auto',\n\n          resizable: false,\n\n          buttons: {\n\n            \n\n            Cancel: function() {\n\n\n\n              way2rentals.jQuery(this).dialog(\"close\");\n\n            },\n\n            Confirm: function() {\n\n              way2rentals.jQuery('#w2rForm').submit();\n\n\n\n              way2rentals.jQuery(this).dialog(\"close\");\n\n            }\n\n          },\n\n          close: function(event, ui) {\n\n            way2rentals.jQuery(this).remove();\n\n          }\n\n        });\n\n    };\n\nvar entity_out =way2rentals.jQuery.parseJSON('[{\"id_local\":\"1\",\"designation\":\"Aeroporto do Pico\",\"is_available\":\"1\",\"id_estacao\":\"1\",\"working_hours\":{\"seg\":[{\"begin\":\"00:01\",\"end\":\"23:59\"}],\"ter\":[{\"begin\":\"00:01\",\"end\":\"23:59\"}],\"qua\":[{\"begin\":\"00:01\",\"end\":\"23:59\"}],\"qui\":[{\"begin\":\"00:01\",\"end\":\"23:59\"}],\"sex\":[{\"begin\":\"00:01\",\"end\":\"23:59\"}],\"sab\":[{\"begin\":\"00:01\",\"end\":\"23:59\"}],\"dom\":[{\"begin\":\"00:01\",\"end\":\"23:59\"}]},\"out_of_hours\":{\"seg\":[{\"begin\":\"00:01\",\"end\":\"07:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"},{\"begin\":\"17:59\",\"end\":\"23:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"}],\"ter\":[{\"begin\":\"00:01\",\"end\":\"07:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"},{\"begin\":\"17:59\",\"end\":\"23:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"}],\"qua\":[{\"begin\":\"00:01\",\"end\":\"07:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"},{\"begin\":\"17:59\",\"end\":\"23:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"}],\"qui\":[{\"begin\":\"00:01\",\"end\":\"07:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"},{\"begin\":\"17:59\",\"end\":\"23:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"}],\"sex\":[{\"begin\":\"00:01\",\"end\":\"07:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"},{\"begin\":\"17:59\",\"end\":\"23:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"}],\"sab\":[{\"begin\":\"00:01\",\"end\":\"07:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"},{\"begin\":\"17:59\",\"end\":\"23:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"}],\"dom\":[{\"begin\":\"00:01\",\"end\":\"07:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"},{\"begin\":\"17:59\",\"end\":\"23:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"}]},\"name\":\"Aeroporto do Pico\",\"address\":\"Rua General Ant\\u00f4nio Ribeiro n\\u00ba29\",\"schedule\":{\"working_hours\":{\"seg\":[{\"begin\":\"00:01\",\"end\":\"23:59\"}],\"ter\":[{\"begin\":\"00:01\",\"end\":\"23:59\"}],\"qua\":[{\"begin\":\"00:01\",\"end\":\"23:59\"}],\"qui\":[{\"begin\":\"00:01\",\"end\":\"23:59\"}],\"sex\":[{\"begin\":\"00:01\",\"end\":\"23:59\"}],\"sab\":[{\"begin\":\"00:01\",\"end\":\"23:59\"}],\"dom\":[{\"begin\":\"00:01\",\"end\":\"23:59\"}]},\"out_of_hours\":{\"seg\":[{\"begin\":\"00:01\",\"end\":\"07:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"},{\"begin\":\"17:59\",\"end\":\"23:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"}],\"ter\":[{\"begin\":\"00:01\",\"end\":\"07:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"},{\"begin\":\"17:59\",\"end\":\"23:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"}],\"qua\":[{\"begin\":\"00:01\",\"end\":\"07:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"},{\"begin\":\"17:59\",\"end\":\"23:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"}],\"qui\":[{\"begin\":\"00:01\",\"end\":\"07:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"},{\"begin\":\"17:59\",\"end\":\"23:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"}],\"sex\":[{\"begin\":\"00:01\",\"end\":\"07:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"},{\"begin\":\"17:59\",\"end\":\"23:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"}],\"sab\":[{\"begin\":\"00:01\",\"end\":\"07:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"},{\"begin\":\"17:59\",\"end\":\"23:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"}],\"dom\":[{\"begin\":\"00:01\",\"end\":\"07:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"},{\"begin\":\"17:59\",\"end\":\"23:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"}]}}},{\"id_local\":\"2\",\"designation\":\"Gare Mar\\u00edtima da Madalena\",\"is_available\":\"1\",\"id_estacao\":\"1\",\"working_hours\":{\"seg\":[{\"begin\":\"00:01\",\"end\":\"23:59\"}],\"ter\":[{\"begin\":\"00:01\",\"end\":\"23:59\"}],\"qua\":[{\"begin\":\"00:01\",\"end\":\"23:59\"}],\"qui\":[{\"begin\":\"00:01\",\"end\":\"23:59\"}],\"sex\":[{\"begin\":\"00:01\",\"end\":\"23:59\"}],\"sab\":[{\"begin\":\"00:01\",\"end\":\"23:59\"}],\"dom\":[{\"begin\":\"00:01\",\"end\":\"23:59\"}]},\"out_of_hours\":{\"seg\":[{\"begin\":\"00:01\",\"end\":\"07:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"},{\"begin\":\"17:59\",\"end\":\"23:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"}],\"ter\":[{\"begin\":\"00:01\",\"end\":\"07:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"},{\"begin\":\"17:59\",\"end\":\"23:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"}],\"qua\":[{\"begin\":\"00:01\",\"end\":\"07:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"},{\"begin\":\"17:59\",\"end\":\"23:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"}],\"qui\":[{\"begin\":\"00:01\",\"end\":\"07:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"},{\"begin\":\"17:59\",\"end\":\"23:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"}],\"sex\":[{\"begin\":\"00:01\",\"end\":\"07:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"},{\"begin\":\"17:59\",\"end\":\"23:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"}],\"sab\":[{\"begin\":\"00:01\",\"end\":\"07:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"},{\"begin\":\"17:59\",\"end\":\"23:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"}],\"dom\":[{\"begin\":\"00:01\",\"end\":\"07:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"},{\"begin\":\"17:59\",\"end\":\"23:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"}]},\"name\":\"Gare Mar\\u00edtima da Madalena\",\"address\":\"Rua General Ant\\u00f4nio Ribeiro n\\u00ba29\",\"schedule\":{\"working_hours\":{\"seg\":[{\"begin\":\"00:01\",\"end\":\"23:59\"}],\"ter\":[{\"begin\":\"00:01\",\"end\":\"23:59\"}],\"qua\":[{\"begin\":\"00:01\",\"end\":\"23:59\"}],\"qui\":[{\"begin\":\"00:01\",\"end\":\"23:59\"}],\"sex\":[{\"begin\":\"00:01\",\"end\":\"23:59\"}],\"sab\":[{\"begin\":\"00:01\",\"end\":\"23:59\"}],\"dom\":[{\"begin\":\"00:01\",\"end\":\"23:59\"}]},\"out_of_hours\":{\"seg\":[{\"begin\":\"00:01\",\"end\":\"07:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"},{\"begin\":\"17:59\",\"end\":\"23:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"}],\"ter\":[{\"begin\":\"00:01\",\"end\":\"07:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"},{\"begin\":\"17:59\",\"end\":\"23:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"}],\"qua\":[{\"begin\":\"00:01\",\"end\":\"07:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"},{\"begin\":\"17:59\",\"end\":\"23:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"}],\"qui\":[{\"begin\":\"00:01\",\"end\":\"07:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"},{\"begin\":\"17:59\",\"end\":\"23:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"}],\"sex\":[{\"begin\":\"00:01\",\"end\":\"07:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"},{\"begin\":\"17:59\",\"end\":\"23:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"}],\"sab\":[{\"begin\":\"00:01\",\"end\":\"07:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"},{\"begin\":\"17:59\",\"end\":\"23:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"}],\"dom\":[{\"begin\":\"00:01\",\"end\":\"07:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"},{\"begin\":\"17:59\",\"end\":\"23:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"}]}}},{\"id_local\":\"3\",\"designation\":\"Gare Mar\\u00edtima de S\\u00e3o Roque \",\"is_available\":\"1\",\"id_estacao\":\"1\",\"working_hours\":{\"seg\":[{\"begin\":\"00:01\",\"end\":\"23:59\"}],\"ter\":[{\"begin\":\"00:01\",\"end\":\"23:59\"}],\"qua\":[{\"begin\":\"00:01\",\"end\":\"23:59\"}],\"qui\":[{\"begin\":\"00:01\",\"end\":\"23:59\"}],\"sex\":[{\"begin\":\"00:01\",\"end\":\"23:59\"}],\"sab\":[{\"begin\":\"00:01\",\"end\":\"23:59\"}],\"dom\":[{\"begin\":\"00:01\",\"end\":\"23:59\"}]},\"out_of_hours\":{\"seg\":[{\"begin\":\"00:01\",\"end\":\"07:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"},{\"begin\":\"17:59\",\"end\":\"23:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"}],\"ter\":[{\"begin\":\"00:01\",\"end\":\"07:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"},{\"begin\":\"17:59\",\"end\":\"23:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"}],\"qua\":[{\"begin\":\"00:01\",\"end\":\"07:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"},{\"begin\":\"17:59\",\"end\":\"23:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"}],\"qui\":[{\"begin\":\"00:01\",\"end\":\"07:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"},{\"begin\":\"17:59\",\"end\":\"23:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"}],\"sex\":[{\"begin\":\"00:01\",\"end\":\"07:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"},{\"begin\":\"17:59\",\"end\":\"23:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"}],\"sab\":[{\"begin\":\"00:01\",\"end\":\"07:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"},{\"begin\":\"17:59\",\"end\":\"23:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"}],\"dom\":[{\"begin\":\"00:01\",\"end\":\"07:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"},{\"begin\":\"17:59\",\"end\":\"23:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"}]},\"name\":\"Gare Mar\\u00edtima de S\\u00e3o Roque \",\"address\":\"Rua General Ant\\u00f4nio Ribeiro n\\u00ba29\",\"schedule\":{\"working_hours\":{\"seg\":[{\"begin\":\"00:01\",\"end\":\"23:59\"}],\"ter\":[{\"begin\":\"00:01\",\"end\":\"23:59\"}],\"qua\":[{\"begin\":\"00:01\",\"end\":\"23:59\"}],\"qui\":[{\"begin\":\"00:01\",\"end\":\"23:59\"}],\"sex\":[{\"begin\":\"00:01\",\"end\":\"23:59\"}],\"sab\":[{\"begin\":\"00:01\",\"end\":\"23:59\"}],\"dom\":[{\"begin\":\"00:01\",\"end\":\"23:59\"}]},\"out_of_hours\":{\"seg\":[{\"begin\":\"00:01\",\"end\":\"07:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"},{\"begin\":\"17:59\",\"end\":\"23:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"}],\"ter\":[{\"begin\":\"00:01\",\"end\":\"07:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"},{\"begin\":\"17:59\",\"end\":\"23:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"}],\"qua\":[{\"begin\":\"00:01\",\"end\":\"07:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"},{\"begin\":\"17:59\",\"end\":\"23:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"}],\"qui\":[{\"begin\":\"00:01\",\"end\":\"07:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"},{\"begin\":\"17:59\",\"end\":\"23:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"}],\"sex\":[{\"begin\":\"00:01\",\"end\":\"07:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"},{\"begin\":\"17:59\",\"end\":\"23:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"}],\"sab\":[{\"begin\":\"00:01\",\"end\":\"07:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"},{\"begin\":\"17:59\",\"end\":\"23:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"}],\"dom\":[{\"begin\":\"00:01\",\"end\":\"07:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"},{\"begin\":\"17:59\",\"end\":\"23:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"}]}}}]');\nvar entity_in =way2rentals.jQuery.parseJSON('[{\"id_local\":\"1\",\"designation\":\"Aeroporto do Pico\",\"is_available\":\"1\",\"id_estacao\":\"1\",\"working_hours\":{\"seg\":[{\"begin\":\"00:01\",\"end\":\"23:59\"}],\"ter\":[{\"begin\":\"00:01\",\"end\":\"23:59\"}],\"qua\":[{\"begin\":\"00:01\",\"end\":\"23:59\"}],\"qui\":[{\"begin\":\"00:01\",\"end\":\"23:59\"}],\"sex\":[{\"begin\":\"00:01\",\"end\":\"23:59\"}],\"sab\":[{\"begin\":\"00:01\",\"end\":\"23:59\"}],\"dom\":[{\"begin\":\"00:01\",\"end\":\"23:59\"}]},\"out_of_hours\":{\"seg\":[{\"begin\":\"00:01\",\"end\":\"07:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"},{\"begin\":\"17:59\",\"end\":\"23:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"}],\"ter\":[{\"begin\":\"00:01\",\"end\":\"07:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"},{\"begin\":\"17:59\",\"end\":\"23:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"}],\"qua\":[{\"begin\":\"00:01\",\"end\":\"07:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"},{\"begin\":\"17:59\",\"end\":\"23:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"}],\"qui\":[{\"begin\":\"00:01\",\"end\":\"07:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"},{\"begin\":\"17:59\",\"end\":\"23:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"}],\"sex\":[{\"begin\":\"00:01\",\"end\":\"07:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"},{\"begin\":\"17:59\",\"end\":\"23:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"}],\"sab\":[{\"begin\":\"00:01\",\"end\":\"07:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"},{\"begin\":\"17:59\",\"end\":\"23:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"}],\"dom\":[{\"begin\":\"00:01\",\"end\":\"07:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"},{\"begin\":\"17:59\",\"end\":\"23:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"}]},\"name\":\"Aeroporto do Pico\",\"address\":\"Rua General Ant\\u00f4nio Ribeiro n\\u00ba29\",\"schedule\":{\"working_hours\":{\"seg\":[{\"begin\":\"00:01\",\"end\":\"23:59\"}],\"ter\":[{\"begin\":\"00:01\",\"end\":\"23:59\"}],\"qua\":[{\"begin\":\"00:01\",\"end\":\"23:59\"}],\"qui\":[{\"begin\":\"00:01\",\"end\":\"23:59\"}],\"sex\":[{\"begin\":\"00:01\",\"end\":\"23:59\"}],\"sab\":[{\"begin\":\"00:01\",\"end\":\"23:59\"}],\"dom\":[{\"begin\":\"00:01\",\"end\":\"23:59\"}]},\"out_of_hours\":{\"seg\":[{\"begin\":\"00:01\",\"end\":\"07:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"},{\"begin\":\"17:59\",\"end\":\"23:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"}],\"ter\":[{\"begin\":\"00:01\",\"end\":\"07:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"},{\"begin\":\"17:59\",\"end\":\"23:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"}],\"qua\":[{\"begin\":\"00:01\",\"end\":\"07:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"},{\"begin\":\"17:59\",\"end\":\"23:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"}],\"qui\":[{\"begin\":\"00:01\",\"end\":\"07:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"},{\"begin\":\"17:59\",\"end\":\"23:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"}],\"sex\":[{\"begin\":\"00:01\",\"end\":\"07:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"},{\"begin\":\"17:59\",\"end\":\"23:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"}],\"sab\":[{\"begin\":\"00:01\",\"end\":\"07:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"},{\"begin\":\"17:59\",\"end\":\"23:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"}],\"dom\":[{\"begin\":\"00:01\",\"end\":\"07:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"},{\"begin\":\"17:59\",\"end\":\"23:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"}]}}},{\"id_local\":\"2\",\"designation\":\"Gare Mar\\u00edtima da Madalena\",\"is_available\":\"1\",\"id_estacao\":\"1\",\"working_hours\":{\"seg\":[{\"begin\":\"00:01\",\"end\":\"23:59\"}],\"ter\":[{\"begin\":\"00:01\",\"end\":\"23:59\"}],\"qua\":[{\"begin\":\"00:01\",\"end\":\"23:59\"}],\"qui\":[{\"begin\":\"00:01\",\"end\":\"23:59\"}],\"sex\":[{\"begin\":\"00:01\",\"end\":\"23:59\"}],\"sab\":[{\"begin\":\"00:01\",\"end\":\"23:59\"}],\"dom\":[{\"begin\":\"00:01\",\"end\":\"23:59\"}]},\"out_of_hours\":{\"seg\":[{\"begin\":\"00:01\",\"end\":\"07:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"},{\"begin\":\"17:59\",\"end\":\"23:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"}],\"ter\":[{\"begin\":\"00:01\",\"end\":\"07:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"},{\"begin\":\"17:59\",\"end\":\"23:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"}],\"qua\":[{\"begin\":\"00:01\",\"end\":\"07:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"},{\"begin\":\"17:59\",\"end\":\"23:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"}],\"qui\":[{\"begin\":\"00:01\",\"end\":\"07:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"},{\"begin\":\"17:59\",\"end\":\"23:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"}],\"sex\":[{\"begin\":\"00:01\",\"end\":\"07:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"},{\"begin\":\"17:59\",\"end\":\"23:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"}],\"sab\":[{\"begin\":\"00:01\",\"end\":\"07:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"},{\"begin\":\"17:59\",\"end\":\"23:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"}],\"dom\":[{\"begin\":\"00:01\",\"end\":\"07:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"},{\"begin\":\"17:59\",\"end\":\"23:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"}]},\"name\":\"Gare Mar\\u00edtima da Madalena\",\"address\":\"Rua General Ant\\u00f4nio Ribeiro n\\u00ba29\",\"schedule\":{\"working_hours\":{\"seg\":[{\"begin\":\"00:01\",\"end\":\"23:59\"}],\"ter\":[{\"begin\":\"00:01\",\"end\":\"23:59\"}],\"qua\":[{\"begin\":\"00:01\",\"end\":\"23:59\"}],\"qui\":[{\"begin\":\"00:01\",\"end\":\"23:59\"}],\"sex\":[{\"begin\":\"00:01\",\"end\":\"23:59\"}],\"sab\":[{\"begin\":\"00:01\",\"end\":\"23:59\"}],\"dom\":[{\"begin\":\"00:01\",\"end\":\"23:59\"}]},\"out_of_hours\":{\"seg\":[{\"begin\":\"00:01\",\"end\":\"07:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"},{\"begin\":\"17:59\",\"end\":\"23:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"}],\"ter\":[{\"begin\":\"00:01\",\"end\":\"07:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"},{\"begin\":\"17:59\",\"end\":\"23:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"}],\"qua\":[{\"begin\":\"00:01\",\"end\":\"07:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"},{\"begin\":\"17:59\",\"end\":\"23:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"}],\"qui\":[{\"begin\":\"00:01\",\"end\":\"07:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"},{\"begin\":\"17:59\",\"end\":\"23:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"}],\"sex\":[{\"begin\":\"00:01\",\"end\":\"07:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"},{\"begin\":\"17:59\",\"end\":\"23:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"}],\"sab\":[{\"begin\":\"00:01\",\"end\":\"07:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"},{\"begin\":\"17:59\",\"end\":\"23:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"}],\"dom\":[{\"begin\":\"00:01\",\"end\":\"07:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"},{\"begin\":\"17:59\",\"end\":\"23:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"}]}}},{\"id_local\":\"3\",\"designation\":\"Gare Mar\\u00edtima de S\\u00e3o Roque \",\"is_available\":\"1\",\"id_estacao\":\"1\",\"working_hours\":{\"seg\":[{\"begin\":\"00:01\",\"end\":\"23:59\"}],\"ter\":[{\"begin\":\"00:01\",\"end\":\"23:59\"}],\"qua\":[{\"begin\":\"00:01\",\"end\":\"23:59\"}],\"qui\":[{\"begin\":\"00:01\",\"end\":\"23:59\"}],\"sex\":[{\"begin\":\"00:01\",\"end\":\"23:59\"}],\"sab\":[{\"begin\":\"00:01\",\"end\":\"23:59\"}],\"dom\":[{\"begin\":\"00:01\",\"end\":\"23:59\"}]},\"out_of_hours\":{\"seg\":[{\"begin\":\"00:01\",\"end\":\"07:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"},{\"begin\":\"17:59\",\"end\":\"23:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"}],\"ter\":[{\"begin\":\"00:01\",\"end\":\"07:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"},{\"begin\":\"17:59\",\"end\":\"23:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"}],\"qua\":[{\"begin\":\"00:01\",\"end\":\"07:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"},{\"begin\":\"17:59\",\"end\":\"23:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"}],\"qui\":[{\"begin\":\"00:01\",\"end\":\"07:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"},{\"begin\":\"17:59\",\"end\":\"23:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"}],\"sex\":[{\"begin\":\"00:01\",\"end\":\"07:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"},{\"begin\":\"17:59\",\"end\":\"23:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"}],\"sab\":[{\"begin\":\"00:01\",\"end\":\"07:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"},{\"begin\":\"17:59\",\"end\":\"23:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"}],\"dom\":[{\"begin\":\"00:01\",\"end\":\"07:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"},{\"begin\":\"17:59\",\"end\":\"23:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"}]},\"name\":\"Gare Mar\\u00edtima de S\\u00e3o Roque \",\"address\":\"Rua General Ant\\u00f4nio Ribeiro n\\u00ba29\",\"schedule\":{\"working_hours\":{\"seg\":[{\"begin\":\"00:01\",\"end\":\"23:59\"}],\"ter\":[{\"begin\":\"00:01\",\"end\":\"23:59\"}],\"qua\":[{\"begin\":\"00:01\",\"end\":\"23:59\"}],\"qui\":[{\"begin\":\"00:01\",\"end\":\"23:59\"}],\"sex\":[{\"begin\":\"00:01\",\"end\":\"23:59\"}],\"sab\":[{\"begin\":\"00:01\",\"end\":\"23:59\"}],\"dom\":[{\"begin\":\"00:01\",\"end\":\"23:59\"}]},\"out_of_hours\":{\"seg\":[{\"begin\":\"00:01\",\"end\":\"07:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"},{\"begin\":\"17:59\",\"end\":\"23:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"}],\"ter\":[{\"begin\":\"00:01\",\"end\":\"07:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"},{\"begin\":\"17:59\",\"end\":\"23:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"}],\"qua\":[{\"begin\":\"00:01\",\"end\":\"07:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"},{\"begin\":\"17:59\",\"end\":\"23:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"}],\"qui\":[{\"begin\":\"00:01\",\"end\":\"07:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"},{\"begin\":\"17:59\",\"end\":\"23:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"}],\"sex\":[{\"begin\":\"00:01\",\"end\":\"07:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"},{\"begin\":\"17:59\",\"end\":\"23:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"}],\"sab\":[{\"begin\":\"00:01\",\"end\":\"07:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"},{\"begin\":\"17:59\",\"end\":\"23:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"}],\"dom\":[{\"begin\":\"00:01\",\"end\":\"07:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"},{\"begin\":\"17:59\",\"end\":\"23:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"}]}}}]');\nvar allowed_times_pickup = [];\nvar allowed_times_dropoff = [];\n\n\n    function nonWorkingDatesPickup(date){\n    \tvar day = date.getDay();\n        var closedDates = ['2019-11-12'];\n        var selected_date = way2rentals.jQuery('#pickup_date').val();\n     \n        var selected_station = way2rentals.jQuery('#pickup').val();\n        var closedDays = [];\n        \n        var from = way2rentals.jQuery(\"#pickup_date\").val().split(\"-\");\n        var aux = new Date(from[0], from[1] - 1, from[2]);\n        var day_aux = aux.getDay();\n        \n        allowed_times_pickup = [];\n        way2rentals.jQuery.each( entity_out, function( key, value ) {\n        \tvar aux_is_this_entity = false;\n        \t\n            if('id_local' == 'stationid'){\n                if (value.stationid == selected_station) {\n                    aux_is_this_entity = true;\n                }\n            }else{\n                if (value.id_local == selected_station) {\n                    aux_is_this_entity = true;\n                }\n            }\n            \n            if (aux_is_this_entity == true) {\n            \t\n                way2rentals.jQuery.each( value.schedule.working_hours, function( key2, value2 ) {\n                    \n                    switch(day_aux) {\n                        case 1:\n                            if(key2 == 'seg'){\n                                way2rentals.jQuery.each( value2, function( key3, value3 ) {\n                                    var aux_begin = value3.begin.split(':');\n                                    var aux_end = value3.end.split(':');\n                                    for (i = aux_begin[0]; i <= aux_end[0]; i++) {\n                                            allowed_times_pickup.push(i+\":00\");\n                                            allowed_times_pickup.push(i+\":15\");\n                                            allowed_times_pickup.push(i+\":30\");\n                                            allowed_times_pickup.push(i+\":45\");\n                                    }\n                                    \n                                });\n                            }\n                        break\n                        case 2:\n                            if(key2 == 'ter'){\n                                way2rentals.jQuery.each( value2, function( key3, value3 ) {\n                                    var aux_begin = value3.begin.split(':');\n                                    var aux_end = value3.end.split(':');\n                                    for (i = aux_begin[0]; i <= aux_end[0]; i++) {\n                                            allowed_times_pickup.push(i+\":00\");\n                                            allowed_times_pickup.push(i+\":15\");\n                                            allowed_times_pickup.push(i+\":30\");\n                                            allowed_times_pickup.push(i+\":45\");\n                                    }\n                                    \n                                });\n                            }\n                        break\n                        case 3:\n                            if(key2 == 'qua'){\n                                way2rentals.jQuery.each( value2, function( key3, value3 ) {\n                                    var aux_begin = value3.begin.split(':');\n                                    var aux_end = value3.end.split(':');\n                                    for (i = aux_begin[0]; i <= aux_end[0]; i++) {\n                                            allowed_times_pickup.push(i+\":00\");\n                                    }\n                                    \n                                });\n                            }\n                        break\n                        case 4:\n                            if(key2 == 'qui'){\n                                way2rentals.jQuery.each( value2, function( key3, value3 ) {\n                                    var aux_begin = value3.begin.split(':');\n                                    var aux_end = value3.end.split(':');\n                                    for (i = aux_begin[0]; i <= aux_end[0]; i++) {\n                                            allowed_times_pickup.push(i+\":00\");\n                                            allowed_times_pickup.push(i+\":15\");\n                                            allowed_times_pickup.push(i+\":30\");\n                                            allowed_times_pickup.push(i+\":45\");\n                                    }\n                                    \n                                });\n                            }\n                        break\n                        case 5:\n                            if(key2 == 'sex'){\n                                way2rentals.jQuery.each( value2, function( key3, value3 ) {\n                                    var aux_begin = value3.begin.split(':');\n                                    var aux_end = value3.end.split(':');\n                                    for (i = aux_begin[0]; i <= aux_end[0]; i++) {\n                                            allowed_times_pickup.push(i+\":00\");\n                                            allowed_times_pickup.push(i+\":15\");\n                                            allowed_times_pickup.push(i+\":30\");\n                                            allowed_times_pickup.push(i+\":45\");\n                                    }\n                                    \n                                });\n                            }\n                        break\n                        case 6:\n                            if(key2 == 'sab'){\n                                way2rentals.jQuery.each( value2, function( key3, value3 ) {\n                                    var aux_begin = value3.begin.split(':');\n                                    var aux_end = value3.end.split(':');\n                                    for (i = aux_begin[0]; i <= aux_end[0]; i++) {\n                                            allowed_times_pickup.push(i+\":00\");\n                                            allowed_times_pickup.push(i+\":15\");\n                                            allowed_times_pickup.push(i+\":30\");\n                                            allowed_times_pickup.push(i+\":45\");\n                                    }\n                                    \n                                });\n                            }\n                        break\n                        case 0:\n                            if(key2 == 'dom'){\n                                way2rentals.jQuery.each( value2, function( key3, value3 ) {\n                                    var aux_begin = value3.begin.split(':');\n                                    var aux_end = value3.end.split(':');\n                                    for (i = aux_begin[0]; i <= aux_end[0]; i++) {\n                                            allowed_times_pickup.push(i+\":00\");\n                                            allowed_times_pickup.push(i+\":15\");\n                                            allowed_times_pickup.push(i+\":30\");\n                                            allowed_times_pickup.push(i+\":45\");\n                                    }\n                                    \n                                });\n                            }\n                        break\n                        case 7:\n                            if(key2 == 'dom'){\n                                way2rentals.jQuery.each( value2, function( key3, value3 ) {\n                                    var aux_begin = value3.begin.split(':');\n                                    var aux_end = value3.end.split(':');\n                                    for (i = aux_begin[0]; i <= aux_end[0]; i++) {\n                                            allowed_times_pickup.push(i+\":00\");\n                                            allowed_times_pickup.push(i+\":15\");\n                                            allowed_times_pickup.push(i+\":30\");\n                                            allowed_times_pickup.push(i+\":45\");\n                                    }\n                                    \n                                });\n                            }\n                        break\n                    }\n                });\n                \n                \n                addOptionsToTimeField('pickup_hour', allowed_times_pickup);\n\n                way2rentals.jQuery.each( value.open_days, function( day_abreviation, status ) {\n                  if(status == 0){\n                      switch(day_abreviation) {\n                            case \"sun\":\n                            closedDays.push([0]);\n                            break\n                            case \"mon\":\n                            closedDays.push([1]);\n                            break\n                            case \"tue\":\n                            closedDays.push([2]);\n                            break\n                            case \"wed\":\n                            closedDays.push([3]);\n                            break\n                            case \"thu\":\n                            closedDays.push([4]);\n                            break\n                            case \"fri\":\n                            closedDays.push([5]);\n                            break\n                             case \"sat\":\n                            closedDays.push([6]);\n                            break\n                        }\n                  }\n              });\n                  \n             }\n        })\n        \n        var holidays = way2rentals.jQuery.parseJSON('[]');\n        \n        var datestring = way2rentals.jQuery.datepicker.formatDate('yy-mm-dd', date);\n        if(holidays.indexOf(datestring) != -1){\n            return [false];\n        }\n        \n        \n        for (var i = 0; i < closedDays.length; i++) {\n            if (day == closedDays[i][0]) {\n                return [false];\n            }\n\n        }\n\n        for (i = 0; i < closedDates.length; i++) {\n            if ((date.getMonth() == closedDates[i][0] - 1) && (date.getDate() == closedDates[i][1]) && (date.getFullYear() == closedDates[i][2])) {\n                return [false];\n            }\n        }\n\n        return [true];\n    }\n\n    function nonWorkingDatesDropoff(date){\n       var day = date.getDay();\n        var closedDates = [];\n        \n        var selected_station = way2rentals.jQuery('#dropoff').val();\n        var closedDays = [];\n        var from = way2rentals.jQuery(\"#dropoff_date\").val().split(\"-\");\n        var aux = new Date(from[0], from[1] - 1, from[2]);\n        var day_aux = aux.getDay();\n        \n        allowed_times_dropoff = [];\n        way2rentals.jQuery.each( entity_in, function( key, value ) {\n        \tvar aux_is_this_entity = false;\n            if('id_local' == 'stationid'){\n                if (value.stationid == selected_station) {\n                    aux_is_this_entity = true;\n                }\n            }else{\n                if (value.id_local == selected_station) {\n                    aux_is_this_entity = true;\n                }\n            }\n            \n            if (aux_is_this_entity == true) {\n                way2rentals.jQuery.each( value.schedule.working_hours, function( key2, value2 ) {\n                    switch(day_aux) {\n                        case 1:\n                            if(key2 == 'seg'){\n                            \n                                way2rentals.jQuery.each( value2, function( key3, value3 ) {\n                                    var aux_begin = value3.begin.split(':');\n                                    var aux_end = value3.end.split(':');\n                                    for (i = aux_begin[0]; i <= aux_end[0]; i++) {\n                                            allowed_times_dropoff.push(i+\":00\");\n                                            allowed_times_dropoff.push(i+\":15\");\n                                            allowed_times_dropoff.push(i+\":30\");\n                                            allowed_times_dropoff.push(i+\":45\");\n                                    }\n                                    \n                                });\n                            }\n                        break\n                        case 2:\n                            if(key2 == 'ter'){\n                                way2rentals.jQuery.each( value2, function( key3, value3 ) {\n                                    var aux_begin = value3.begin.split(':');\n                                    var aux_end = value3.end.split(':');\n                                    for (i = aux_begin[0]; i <= aux_end[0]; i++) {\n                                            allowed_times_dropoff.push(i+\":00\");\n                                            allowed_times_dropoff.push(i+\":15\");\n                                            allowed_times_dropoff.push(i+\":30\");\n                                            allowed_times_dropoff.push(i+\":45\");\n                                    }\n                                    \n                                });\n                            }\n                        break\n                        case 3:\n                            if(key2 == 'qua'){\n                                way2rentals.jQuery.each( value2, function( key3, value3 ) {\n                                    var aux_begin = value3.begin.split(':');\n                                    var aux_end = value3.end.split(':');\n                                    for (i = aux_begin[0]; i <= aux_end[0]; i++) {\n                                            allowed_times_dropoff.push(i+\":00\");\n                                            allowed_times_dropoff.push(i+\":15\");\n                                            allowed_times_dropoff.push(i+\":30\");\n                                            allowed_times_dropoff.push(i+\":45\");\n                                    }\n                                    \n                                });\n                            }\n                        break\n                        case 4:\n                            if(key2 == 'qui'){\n                                way2rentals.jQuery.each( value2, function( key3, value3 ) {\n                                    var aux_begin = value3.begin.split(':');\n                                    var aux_end = value3.end.split(':');\n                                    for (i = aux_begin[0]; i <= aux_end[0]; i++) {\n                                            allowed_times_dropoff.push(i+\":00\");\n                                            allowed_times_dropoff.push(i+\":15\");\n                                            allowed_times_dropoff.push(i+\":30\");\n                                            allowed_times_dropoff.push(i+\":45\");\n                                    }\n                                    \n                                });\n                            }\n                        break\n                        case 5:\n                            if(key2 == 'sex'){\n                                way2rentals.jQuery.each( value2, function( key3, value3 ) {\n                                    var aux_begin = value3.begin.split(':');\n                                    var aux_end = value3.end.split(':');\n                                    for (i = aux_begin[0]; i <= aux_end[0]; i++) {\n                                            allowed_times_dropoff.push(i+\":00\");\n                                            allowed_times_dropoff.push(i+\":15\");\n                                            allowed_times_dropoff.push(i+\":30\");\n                                            allowed_times_dropoff.push(i+\":45\");\n                                    }\n                                    \n                                });\n                            }\n                        break\n                        case 6:\n                            if(key2 == 'sab'){\n                                way2rentals.jQuery.each( value2, function( key3, value3 ) {\n                                    var aux_begin = value3.begin.split(':');\n                                    var aux_end = value3.end.split(':');\n                                    for (i = aux_begin[0]; i <= aux_end[0]; i++) {\n                                            allowed_times_dropoff.push(i+\":00\");\n                                            allowed_times_dropoff.push(i+\":15\");\n                                            allowed_times_dropoff.push(i+\":30\");\n                                            allowed_times_dropoff.push(i+\":45\");\n                                    }\n                                    \n                                });\n                            }\n                        break\n                        case 0:\n                        \n                            if(key2 == 'dom'){\n                            \n                            \n                                way2rentals.jQuery.each( value2, function( key3, value3 ) {\n                                    var aux_begin = value3.begin.split(':');\n                                    var aux_end = value3.end.split(':');\n                                    for (i = aux_begin[0]; i <= aux_end[0]; i++) {\n                                            allowed_times_dropoff.push(i+\":00\");\n                                            allowed_times_dropoff.push(i+\":15\");\n                                            allowed_times_dropoff.push(i+\":30\");\n                                            allowed_times_dropoff.push(i+\":45\");\n                                    }\n                                    \n                                });\n                            }\n                        break\n                        case 7:\n                        \n                            if(key2 == 'dom'){\n                            \n                            \n                                way2rentals.jQuery.each( value2, function( key3, value3 ) {\n                                    var aux_begin = value3.begin.split(':');\n                                    var aux_end = value3.end.split(':');\n                                    for (i = aux_begin[0]; i <= aux_end[0]; i++) {\n                                            allowed_times_dropoff.push(i+\":00\");\n                                            allowed_times_dropoff.push(i+\":15\");\n                                            allowed_times_dropoff.push(i+\":30\");\n                                            allowed_times_dropoff.push(i+\":45\");\n                                    }\n                                    \n                                });\n                            }\n                        break\n                    }\n                });\n                \n                addOptionsToTimeField('dropoff_hour', allowed_times_dropoff);\n               \n                way2rentals.jQuery.each( value.open_days, function( day_abreviation, status ) {\n                  if(status == 0){\n                      switch(day_abreviation) {\n                            case \"sun\":\n                            closedDays.push([0]);\n                            break\n                            case \"mon\":\n                            closedDays.push([1]);\n                            break\n                            case \"tue\":\n                            closedDays.push([2]);\n                            break\n                            case \"wed\":\n                            closedDays.push([3]);\n                            break\n                            case \"thu\":\n                            closedDays.push([4]);\n                            break\n                            case \"fri\":\n                            closedDays.push([5]);\n                            break\n                             case \"sat\":\n                            closedDays.push([6]);\n                            break\n                        }\n                  }\n              });\n                  \n             }\n        })\n        \n        \n        var holidays = way2rentals.jQuery.parseJSON('[]');\n        \n        var datestring = way2rentals.jQuery.datepicker.formatDate('yy-mm-dd', date);\n        if(holidays.indexOf(datestring) != -1){\n            return [false];\n        }\n        \n        for (var i = 0; i < closedDays.length; i++) {\n            if (day == closedDays[i][0]) {\n                return [false];\n            }\n    \n        }\n    \n        for (i = 0; i < closedDates.length; i++) {\n            if ((date.getMonth() == closedDates[i][0] - 1) && (date.getDate() == closedDates[i][1]) && (date.getFullYear() == closedDates[i][2])) {\n                return [false];\n            }\n        }\n    \n        return [true];\n    }\n\n    way2rentals.jQuery('#pickup_date').datetimepicker({\n        format:\t'Y-m-d',\n        beforeShowDay: nonWorkingDatesPickup,\n        timepicker:false,\n        minDate:'+1970\/01\/01',\n        onShow:function( ct ){\n        this.setOptions({\n            maxDate: false,\n        })\n        }\n    });\n    \n    way2rentals.jQuery('#dropoff_date').datetimepicker({\n        format:'Y-m-d',\n        timepicker:false,\n        beforeShowDay: nonWorkingDatesDropoff,\n        minDate:'+1970\/01\/01',\n        onShow:function( ct ){\n        this.setOptions({\n        \tminDate:jQuery('#pickup_date').val()?jQuery('#pickup_date').val():false,\n        })\n        }\n    });\n\n    \/*way2rentals.jQuery('#pickup_hour').datetimepicker({\n        format: 'H:i',\n        datepicker: false,\n        timepicker:true,\n        closeOnTimeSelect: false,\n        closeOnWithoutClick: true,\n        onShow:function( ct ){\n            this.setOptions({\n                maxDate: false,\n                allowTimes: allowed_times_pickup,\n           })\n        }\n    });\n\n    way2rentals.jQuery('#dropoff_hour').datetimepicker({\n        format: 'H:i',\n        datepicker: false,\n        timepicker:true,\n        closeOnTimeSelect: false,\n        closeOnWithoutClick: true,\n        onShow:function( ct ){\n            this.setOptions({\n                maxDate: false,\n                allowTimes: allowed_times_dropoff,\n           })\n        }\n    });*\/\n\n    function addOptionsToTimeField(field, options){\n        way2rentals.jQuery('#'+field).empty();\n        var selected = '';\n        switch(field) {\n            case 'pickup_hour':\n                if('0' == '1'){\n                    selected = '0';\n                }else{\n                    selected = '15:00';\n                }\n            break\n            case 'dropoff_hour':\n                if('0' == '1'){\n                    \n                    selected = '0';\n                }else{\n                    selected = '11:00';\n                }\n            break\n        }\n\n        for (var i = 0; i < options.length; i++) {\n\n            var time = options[i];\n            var aux = options[i].split(':');\n        \n            if(aux[0].length == 1){\n                time = '0'+aux[0]+':'+aux[1];\n            }\n\n            if(time == selected){\n                way2rentals.jQuery('#'+field).append('<option selected value=\"'+time+'\">'+time+'<\/option>');\n            } else {\n                way2rentals.jQuery('#'+field).append('<option value=\"'+time+'\">'+time+'<\/option>');\n            }\n        }\n\n    }\n    \/\/-->\n<\/script>\n<script async src=\"https:\/\/www.googletagmanager.com\/gtag\/js?id=AW-11191263688\"><\/script>\n<script>\n  window.dataLayer = window.dataLayer || [];\n  function gtag(){dataLayer.push(arguments);}\n  gtag('js', new Date());\n\n  gtag('config', 'AW-11191263688');\n<\/script>\n<p>[\/et_pb_text][\/et_pb_column][\/et_pb_row][\/et_pb_section]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Book your car.<div class=\"et_pb_module lwp_divi_breadcrumbs lwp_divi_breadcrumbs_0\">\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t<div class=\"et_pb_module_inner\">\n\t\t\t\t\t<div class=\"lwp-breadcrumbs\"> <span class=\"before\"><\/span> <span vocab=\"https:\/\/schema.org\/\" typeof=\"BreadcrumbList\"><span property=\"itemListElement\" typeof=\"ListItem\"><a property=\"item\" typeof=\"WebPage\" href=\"https:\/\/rentacarazorestravel.com\/en\/\" class=\"home\"><span property=\"name\">Home<\/span><\/a><meta property=\"position\" content=\"1\"><\/span> <span class=\"separator et-pb-icon\">&#x39;<\/span> <\/span><\/div>\n\t\t\t\t<\/div>\n\t\t\t<\/div>\n<div id=\"bodyreserva\" class=\"bodyreserva2 col-lg-12 col-md-12 col-sm-12 col-xs-12\" style=\"background: rgba(255,255,255,0.6);height: auto;margin-bottom:40px;\">\n  <div class=\"w2r_main_nav col-lg-12 col-md-12 col-sm-12 col-xs-12\" style=\"padding:10px;\">\n      <div class=\"selected\"><a href=\"javascript:void(0)\">1.Dates and Locations<\/a><\/div>\n      <div class=\"w2r_disable\"><a href=\"javascript:void(0)\">2.Vehicle<\/a><\/div>\n      <div class=\"w2r_disable\"><a href=\"javascript:void(0)\">3.Insurances \/ Extras<\/a><\/div>\n      <div class=\"w2r_disable\"><a href=\"javascript:void(0)\">4.Get Quote \/ Book<\/a><\/div>\n  <\/div>\n  \n  <div class=\"col-lg-12 col-md-12 col-sm-12 col-xs-12 w2r_main\" style=\"padding-left:0;padding-right:0;margin-top:20px;\">\n    \n      <form  method=\"post\" id=\"w2rForm\" name=\"w2rForm\" action=\"https:\/\/rentacarazorestravel.com\/en\/bookings?step=2#bodyreserva\" class=\"col-lg-12 col-md-12 col-sm-12 col-xs-12\" style=\"padding-left:0;padding-right:0;\">\n        <div class=\"error-div\" id=\"error-div\"><\/div>\n          <div class=\"w2r_main_data col-lg-12 col-md-12 col-sm-12 col-xs-12\" style=\"padding-left:0;padding-right:0;margin-top:20px;margin-bottom: 20px;\">\n       \n            <!-- REGULAR -->\n                <div class=\"row form-group col-lg-12 col-md-12 col-sm-12 col-xs-12 \" style=\"padding-left:0;padding-right:0;\">\n                    \n                    <div class=\"col-lg-12 col-md-12 col-sm-12 col-xs-12\" style=\"padding-left:0;padding-right:0;\">\n                        <div class=\"col-lg-6 col-md-6 col-sm-6 col-xs-12\">\n                            \n                            <div class=\"col-lg-12 col-md-12 col-sm-12 col-xs-12 icon-modulo2\">\n                                <label>Pick up Location<\/label>\n                            <\/div>\n                            <div class=\"icon-modulo2 col-lg-12 col-md-12 col-sm-12 col-xs-12\">\n                                <select name=\"pickup\" id=\"pickup\" class=\"form-control\">\n                                <option value=\"1\">Aeroporto do Pico<\/option><option value=\"2\">Gare Mar\u00edtima da Madalena<\/option><option value=\"3\">Gare Mar\u00edtima de S\u00e3o Roque <\/option>                                <\/select>\n                                <span ><i class=\"fa fa-map-marker\" aria-hidden=\"true\"><\/i><!--<img decoding=\"async\" src=\"<?\/\/=$media_path?>\/icon_localizacao.png\">--><\/span>                        \n                            <\/div>\n                        <\/div>\n                        <div class=\"col-lg-3 col-md-3 col-sm-3 col-xs-12\">\n                            <div class=\"col-lg-12 col-md-12 col-sm-12 col-xs-12 icon-modulo2\">\n                                <label>Pick up date<\/label>\n                            <\/div>\n                            <div class=\"icon-modulo2 col-lg-12 col-md-12 col-sm-12 col-xs-12\">\n                                <input name=\"pickup_date\"  id=\"pickup_date\" type=\"text\" onfocus=\"blur();\" class=\"form-control\" value=\"2026-06-28\" autocomplete=\"off\"\/>\n                                <span><i class=\"fa fa-calendar\" aria-hidden=\"true\"><\/i><!--<img decoding=\"async\" src=\"<?\/\/=$media_path?>\/icon_calendario.png\">--><\/span>\n                            <\/div>\n                            \n                        <\/div>\n                        <div class=\"col-lg-3 col-md-3 col-sm-3 col-xs-12\">\n                            <div class=\"col-lg-12 col-md-12 col-sm-12 col-xs-12 icon-modulo2\">        \n                                <label>Pick up hour<\/label>\n                            <\/div>\n                            <div class=\"icon-modulo2 col-lg-12 col-md-12 col-sm-12 col-xs-12\">\n                                <select name=\"pickup_hour\"  id=\"pickup_hour\" style=\"z-index: 111111111;\" class=\"form-control\"  value=\"15:00\" autocomplete=\"off\"\/>\n                                <\/select>\n                                <span><i class=\"far fa-clock\" aria-hidden=\"true\"><\/i><!--<img decoding=\"async\" src=\"<?\/\/=$media_path?>\/icon_relogio.png\">--><\/span>\n                            <\/div>\n                            \n                        <\/div>\n                    <\/div>\n                    \n                  \n                  \n                  <!-- Dropoff-->\n                  \n                    <div class=\"col-lg-12 col-md-12 col-sm-12 col-xs-12\" style=\"padding-left:0;padding-right:0;\">\n                        <div class=\"col-lg-6 col-md-6 col-sm-6 col-xs-12\">\n                            <div class=\"col-lg-12 col-md-12 col-sm-12 col-xs-12 icon-modulo2\">\n                                <label>Drop off Location<\/label>\n                            <\/div>\n                            <div class=\"icon-modulo2 col-lg-12 col-md-12 col-sm-12 col-xs-12\">\n                                <select name=\"dropoff\" id=\"dropoff\" class=\"form-control\">\n                                    <option value=\"1\">Aeroporto do Pico<\/option><option value=\"2\">Gare Mar\u00edtima da Madalena<\/option><option value=\"3\">Gare Mar\u00edtima de S\u00e3o Roque <\/option>                                <\/select>\n                                <span ><i class=\"fa fa-map-marker\" aria-hidden=\"true\"><\/i><!--<img decoding=\"async\" src=\"<?\/\/=$media_path?>\/icon_localizacao.png\">--><\/span>\n                            <\/div>\n                            \n                        <\/div>\n                        <div class=\"col-lg-3 col-md-3 col-sm-3 col-xs-12\">\n                        \n                            <div class=\"col-lg-12 col-md-12 col-sm-12 col-xs-12 icon-modulo2\">\n                                    <label>Drop off date<\/label>\n                            <\/div>\n                            <div class=\"icon-modulo2 col-lg-12 col-md-12 col-sm-12 col-xs-12\">\n                                <input name=\"dropoff_date\" id=\"dropoff_date\" type=\"text\" onfocus=\"blur();\" class=\"form-control\" value=\"2026-07-01\" autocomplete=\"off\"\/>\n                                <span><i class=\"fa fa-calendar\" aria-hidden=\"true\"><\/i><!--<img decoding=\"async\" src=\"<?\/\/=$media_path?>\/icon_calendario.png\">--><\/span>\n                            <\/div>\n                            \n                        <\/div>\n                        \n                        <div class=\"col-lg-3 col-md-3 col-sm-3 col-xs-12\">\n                            <div class=\"col-lg-12 col-md-12 col-sm-12 col-xs-12 icon-modulo2\">\n                                <label>Drop off hour<\/label>\n                            <\/div>   \n                            <div class=\"icon-modulo2 col-lg-12 col-md-12 col-sm-12 col-xs-12\">\n                                <select name=\"dropoff_hour\" id=\"dropoff_hour\" class=\"form-control\"  value=\"11:00\" autocomplete=\"off\"\/>\n                                <\/select>\n                                <span><i class=\"far fa-clock\" aria-hidden=\"true\"><\/i><!--<img decoding=\"async\" src=\"<?\/\/=$media_path?>\/icon_relogio.png\">--><\/span>\n                            <\/div>  \n                        <\/div>          \n                    <\/div>\n                    <div class=\"col-lg-12 col-md-12 col-sm-12 col-xs-12\" style=\"padding-left:0;padding-right:0;\">\n\n                        <div class=\"col-lg-12 col-md-12 col-sm-12 col-xs-12\">\n\n                            <div class=\"col-lg-12 col-md-12 col-sm-12 col-xs-12\">\n\n                                <label>Driver Age<\/label>\n\n                            <\/div>\n\n                            <div class=\"icon-modulo2 col-md-3 col-xs-12\">\n\n                                <select name=\"driver_age\" id=\"driver_age\" class=\"form-control\">\n\n                                    <option selected value=\"18\">18<\/option><option value=\"19\">19<\/option><option value=\"20\">20<\/option><option value=\"21\">21<\/option><option value=\"22\">22<\/option><option value=\"23\">23<\/option><option value=\"24\">24<\/option><option value=\"25\">25<\/option><option value=\"26\">26<\/option><option value=\"27\">27<\/option><option value=\"28\">28<\/option><option value=\"29\">29<\/option><option value=\"30\">30<\/option><option value=\"31\">31<\/option><option value=\"32\">32<\/option><option value=\"33\">33<\/option><option value=\"34\">34<\/option><option value=\"35\">35<\/option><option value=\"36\">36<\/option><option value=\"37\">37<\/option><option value=\"38\">38<\/option><option value=\"39\">39<\/option><option value=\"40\">40<\/option><option value=\"41\">41<\/option><option value=\"42\">42<\/option><option value=\"43\">43<\/option><option value=\"44\">44<\/option><option value=\"45\">45<\/option><option value=\"46\">46<\/option><option value=\"47\">47<\/option><option value=\"48\">48<\/option><option value=\"49\">49<\/option><option value=\"50\">50<\/option><option value=\"51\">51<\/option><option value=\"52\">52<\/option><option value=\"53\">53<\/option><option value=\"54\">54<\/option><option value=\"55\">55<\/option><option value=\"56\">56<\/option><option value=\"57\">57<\/option><option value=\"58\">58<\/option><option value=\"59\">59<\/option><option value=\"60\">60<\/option><option value=\"61\">61<\/option><option value=\"62\">62<\/option><option value=\"63\">63<\/option><option value=\"64\">64<\/option><option value=\"65\">65<\/option><option value=\"66\">66<\/option><option value=\"67\">67<\/option><option value=\"68\">68<\/option><option value=\"69\">69<\/option><option value=\"70\">70<\/option><option value=\"71\">71<\/option><option value=\"72\">72<\/option><option value=\"73\">73<\/option><option value=\"74\">74<\/option><option value=\"75\">75<\/option><option value=\"76\">76<\/option><option value=\"77\">77<\/option><option value=\"78\">78<\/option><option value=\"79\">79<\/option><option value=\"80\">80<\/option><option value=\"81\">81<\/option><option value=\"82\">82<\/option><option value=\"83\">83<\/option><option value=\"84\">84<\/option><option value=\"85\">85<\/option><option value=\"86\">86<\/option><option value=\"87\">87<\/option><option value=\"88\">88<\/option><option value=\"89\">89<\/option><option value=\"90\">90<\/option>\n                                <\/select>\n\n                                <span><i class=\"fas fa-user\"><\/i><\/span>\n\n                            <\/div>\n                            \n                        <\/div>\n\n                    <\/div>\n                    <div class=\"col-lg-12 col-md-12 col-sm-12 col-xs-12\" style=\"margin-top:10px;\">\n                        <div class=\"col-md-12 col-xs-12 age_agree\">\n                            <label><input type=\"checkbox\" name=\"agreewithage\" id=\"agreewithage\">\n                            I acknowledge that I must be at least 18 years old.<\/label>\n                        <\/div>\n                    <\/div>\n                        \n                <\/div>\n                  \n\n                <div class=\"col-lg-12 col-md-12 col-sm-12 col-xs-12 button_next\">\n                    <div class=\"col-lg-12 col-md-12 col-sm-12 col-xs-12\" style=\"margin-top:20px;\">\n                        <button type=\"button\" onclick=\"nextStep()\" class=\"btn btn-primary steps_button\">See availabilities<\/button>\n                    <\/div>\n                <\/div>\n                <input type=\"hidden\" name=\"step\" value=\"2\"\/>\n            \n            <\/div>\n            \n    <\/form>\n  <\/div>\n<\/div><?\/\/php if (ICL_LANGUAGE_CODE == 'en') {     ?>    \n            <script>\n                    way2rentals.jQuery(function(){\n                        way2rentals.jQuery.datetimepicker.setLocale('en');\n                        way2rentals.jQuery( \"#pickup_date\" ).datetimepicker({ dayOfWeekStart: 1 });\n                        way2rentals.jQuery( \"#dropoff_date\" ).datetimepicker({ dayOfWeekStart: 1 });\n                    });\n            <\/script>\n            <?\/\/php };  ?>\n\t\n\n<script>\n<!--\nwindow.history.pushState(null, \"\", window.location.href);\n\nwindow.onpopstate = function () {\n\n    window.history.pushState(null, \"\", window.location.href);\n\n};\n\n\n\nway2rentals.jQuery(\"#pickup_date\").on(\"keydown\", function(e) {\n    e.preventDefault();\n});\n\nway2rentals.jQuery(\"#dropoff_date\").on(\"keydown\", function(e) {\n    e.preventDefault();\n});\n\nway2rentals.jQuery('#pickup_hour').on('keydown', function(e) {\n    e.preventDefault();\n});\n\nway2rentals.jQuery('#dropoff_hour').on('keydown', function(e) {\n    e.preventDefault();\n});\n\nway2rentals.jQuery(function(){\n    way2rentals.jQuery( \"#pickup_date\" ).datetimepicker({ dayOfWeekStart: 1 });\n    way2rentals.jQuery( \"#dropoff_date\" ).datetimepicker({ dayOfWeekStart: 1 });\n    way2rentals.jQuery('#transition_loader').fadeOut();\n\n    \/*setTimeout(function(){ \n        showPopUp('Aten\u00e7\u00e3o!','Esta p\u00e1gina est\u00e1 a ser visitada por mais <?\/\/=$_SESSION['people_watch']?> utilizadores'); \n    }, 4000);*\/\n    \n});\n\n\n\nway2rentals.jQuery(\"#pickup\").change(function() {\n     \n\tvar date = new Date(way2rentals.jQuery(\"#pickup_date\").val());\n\tnonWorkingDatesPickup(date);\n});\n\nway2rentals.jQuery(\"#dropoff\").change(function() {\n    \n    var date = new Date(way2rentals.jQuery(\"#dropoff_date\").val());\n    nonWorkingDatesDropoff(date);\n});\n\nway2rentals.jQuery(\"#pickup_date\").change(function() {\n\t \n    if (way2rentals.jQuery('#dropoff_date').val() < way2rentals.jQuery(\"#pickup_date\").val()) {\n       \n    \tvar date = new Date(way2rentals.jQuery(\"#pickup_date\").val());\n        date.setDate(date.getDate() + 1);\n        \n        while (nonWorkingDatesPickup(date)[0] != true) {\n        \tdate.setDate(date.getDate() + 1);\n        }\n        way2rentals.jQuery('#dropoff_date').val(date.toInputFormat());\n    }\n});\n\nDate.prototype.toInputFormat = function() {\n    var yyyy = this.getFullYear().toString();\n    var mm = (this.getMonth()+1).toString(); \/\/ getMonth() is zero-based\n    var dd  = this.getDate().toString();\n    return yyyy + \"-\" + (mm[1]?mm:\"0\"+mm[0]) + \"-\" + (dd[1]?dd:\"0\"+dd[0]); \/\/ padding\n };\n\nfunction nextStep(){\n    var check_dates_filledup = checkData(['pickup_date','dropoff_date', 'pickup_hour', 'dropoff_hour', 'pickup','dropoff']);\n    var check_dates = checkDates('pickup_date','dropoff_date','pickup_hour','dropoff_hour');\n    \/\/var check_dates_range = checkDateRange('pickup_date','dropoff_date','pickup_hour','dropoff_hour');\n    var check_saturdays = checkSaturdays('pickup_date','dropoff_date','pickup_hour','dropoff_hour');\n    var next=true;\n    \n    if(check_dates_filledup == false){\n        next=false;\n        addError(\"- Please make sure all fields are full.<br>\");\n    }\n    \n    if (check_dates == false) {\n        next=false;\n        addError(\"- Please make sure that the pickup date is not longer than the dropoff date and less than the current date.<br>\");\n    }\n    \n    \/*if (check_dates_range == false) {\n        next=false;\n        addError('<? \/\/=__('- The booking cannot exceed 30 days.', 'way2rentals')?><br>');\n    }*\/\n\n    if(next == true){\n    \tway2rentals.jQuery('body').append('<div id=\"transition_loader2\" class=\"loading-w2r\">Loading &#8230;<\/div>');\n    \t\/\/way2rentals.jQuery('#w2rForm').submit();\n    \twp.ajax.post( \"w2r_check_schedules_request\", {\n            pickup: way2rentals.jQuery('#pickup').val(),\n            dropoff: way2rentals.jQuery('#dropoff').val(),\n            pickup_date: way2rentals.jQuery('#pickup_date').val(),\n            pickup_hour: way2rentals.jQuery('#pickup_hour').val(),\n            dropoff_date: way2rentals.jQuery('#dropoff_date').val(),\n            dropoff_hour: way2rentals.jQuery('#dropoff_hour').val(),\n            agreewithage: way2rentals.jQuery('#agreewithage').is(\":checked\")\n            \n        }).done(function(response) {\n        \tresponse = way2rentals.jQuery.parseJSON(response);\n\n            if(response.success == 1){\n                \n\n                way2rentals.jQuery('#w2rForm').submit();\n\n            } else if(response.success == 2) {\n\n                way2rentals.jQuery('#transition_loader').fadeOut();\n                way2rentals.jQuery('#transition_loader2').remove();\n                ConfirmDialog(response.error);\n\n            }else{\n\n            \tway2rentals.jQuery('#transition_loader').fadeOut();\n                way2rentals.jQuery('#transition_loader2').remove();\n            \taddError(response.error);\n\n            }\n    \t});\n    }\n}\n\nfunction ConfirmDialog(message) {\n\n      way2rentals.jQuery('<div><\/div>').appendTo('body')\n\n        .html('<div><p>' + message + '<\/p><\/div>')\n\n        .dialog({\n\n          modal: true,\n\n          title: '',\n\n          zIndex: 10000,\n\n          autoOpen: true,\n\n          width: 'auto',\n\n          resizable: false,\n\n          buttons: {\n\n            \n\n            Cancel: function() {\n\n\n\n              way2rentals.jQuery(this).dialog(\"close\");\n\n            },\n\n            Confirm: function() {\n\n              way2rentals.jQuery('#w2rForm').submit();\n\n\n\n              way2rentals.jQuery(this).dialog(\"close\");\n\n            }\n\n          },\n\n          close: function(event, ui) {\n\n            way2rentals.jQuery(this).remove();\n\n          }\n\n        });\n\n    };\n\nvar entity_out =way2rentals.jQuery.parseJSON('[{\"id_local\":\"1\",\"designation\":\"Aeroporto do Pico\",\"is_available\":\"1\",\"id_estacao\":\"1\",\"working_hours\":{\"seg\":[{\"begin\":\"00:01\",\"end\":\"23:59\"}],\"ter\":[{\"begin\":\"00:01\",\"end\":\"23:59\"}],\"qua\":[{\"begin\":\"00:01\",\"end\":\"23:59\"}],\"qui\":[{\"begin\":\"00:01\",\"end\":\"23:59\"}],\"sex\":[{\"begin\":\"00:01\",\"end\":\"23:59\"}],\"sab\":[{\"begin\":\"00:01\",\"end\":\"23:59\"}],\"dom\":[{\"begin\":\"00:01\",\"end\":\"23:59\"}]},\"out_of_hours\":{\"seg\":[{\"begin\":\"00:01\",\"end\":\"07:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"},{\"begin\":\"17:59\",\"end\":\"23:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"}],\"ter\":[{\"begin\":\"00:01\",\"end\":\"07:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"},{\"begin\":\"17:59\",\"end\":\"23:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"}],\"qua\":[{\"begin\":\"00:01\",\"end\":\"07:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"},{\"begin\":\"17:59\",\"end\":\"23:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"}],\"qui\":[{\"begin\":\"00:01\",\"end\":\"07:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"},{\"begin\":\"17:59\",\"end\":\"23:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"}],\"sex\":[{\"begin\":\"00:01\",\"end\":\"07:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"},{\"begin\":\"17:59\",\"end\":\"23:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"}],\"sab\":[{\"begin\":\"00:01\",\"end\":\"07:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"},{\"begin\":\"17:59\",\"end\":\"23:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"}],\"dom\":[{\"begin\":\"00:01\",\"end\":\"07:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"},{\"begin\":\"17:59\",\"end\":\"23:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"}]},\"name\":\"Aeroporto do Pico\",\"address\":\"Rua General Ant\\u00f4nio Ribeiro n\\u00ba29\",\"schedule\":{\"working_hours\":{\"seg\":[{\"begin\":\"00:01\",\"end\":\"23:59\"}],\"ter\":[{\"begin\":\"00:01\",\"end\":\"23:59\"}],\"qua\":[{\"begin\":\"00:01\",\"end\":\"23:59\"}],\"qui\":[{\"begin\":\"00:01\",\"end\":\"23:59\"}],\"sex\":[{\"begin\":\"00:01\",\"end\":\"23:59\"}],\"sab\":[{\"begin\":\"00:01\",\"end\":\"23:59\"}],\"dom\":[{\"begin\":\"00:01\",\"end\":\"23:59\"}]},\"out_of_hours\":{\"seg\":[{\"begin\":\"00:01\",\"end\":\"07:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"},{\"begin\":\"17:59\",\"end\":\"23:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"}],\"ter\":[{\"begin\":\"00:01\",\"end\":\"07:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"},{\"begin\":\"17:59\",\"end\":\"23:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"}],\"qua\":[{\"begin\":\"00:01\",\"end\":\"07:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"},{\"begin\":\"17:59\",\"end\":\"23:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"}],\"qui\":[{\"begin\":\"00:01\",\"end\":\"07:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"},{\"begin\":\"17:59\",\"end\":\"23:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"}],\"sex\":[{\"begin\":\"00:01\",\"end\":\"07:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"},{\"begin\":\"17:59\",\"end\":\"23:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"}],\"sab\":[{\"begin\":\"00:01\",\"end\":\"07:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"},{\"begin\":\"17:59\",\"end\":\"23:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"}],\"dom\":[{\"begin\":\"00:01\",\"end\":\"07:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"},{\"begin\":\"17:59\",\"end\":\"23:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"}]}}},{\"id_local\":\"2\",\"designation\":\"Gare Mar\\u00edtima da Madalena\",\"is_available\":\"1\",\"id_estacao\":\"1\",\"working_hours\":{\"seg\":[{\"begin\":\"00:01\",\"end\":\"23:59\"}],\"ter\":[{\"begin\":\"00:01\",\"end\":\"23:59\"}],\"qua\":[{\"begin\":\"00:01\",\"end\":\"23:59\"}],\"qui\":[{\"begin\":\"00:01\",\"end\":\"23:59\"}],\"sex\":[{\"begin\":\"00:01\",\"end\":\"23:59\"}],\"sab\":[{\"begin\":\"00:01\",\"end\":\"23:59\"}],\"dom\":[{\"begin\":\"00:01\",\"end\":\"23:59\"}]},\"out_of_hours\":{\"seg\":[{\"begin\":\"00:01\",\"end\":\"07:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"},{\"begin\":\"17:59\",\"end\":\"23:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"}],\"ter\":[{\"begin\":\"00:01\",\"end\":\"07:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"},{\"begin\":\"17:59\",\"end\":\"23:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"}],\"qua\":[{\"begin\":\"00:01\",\"end\":\"07:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"},{\"begin\":\"17:59\",\"end\":\"23:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"}],\"qui\":[{\"begin\":\"00:01\",\"end\":\"07:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"},{\"begin\":\"17:59\",\"end\":\"23:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"}],\"sex\":[{\"begin\":\"00:01\",\"end\":\"07:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"},{\"begin\":\"17:59\",\"end\":\"23:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"}],\"sab\":[{\"begin\":\"00:01\",\"end\":\"07:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"},{\"begin\":\"17:59\",\"end\":\"23:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"}],\"dom\":[{\"begin\":\"00:01\",\"end\":\"07:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"},{\"begin\":\"17:59\",\"end\":\"23:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"}]},\"name\":\"Gare Mar\\u00edtima da Madalena\",\"address\":\"Rua General Ant\\u00f4nio Ribeiro n\\u00ba29\",\"schedule\":{\"working_hours\":{\"seg\":[{\"begin\":\"00:01\",\"end\":\"23:59\"}],\"ter\":[{\"begin\":\"00:01\",\"end\":\"23:59\"}],\"qua\":[{\"begin\":\"00:01\",\"end\":\"23:59\"}],\"qui\":[{\"begin\":\"00:01\",\"end\":\"23:59\"}],\"sex\":[{\"begin\":\"00:01\",\"end\":\"23:59\"}],\"sab\":[{\"begin\":\"00:01\",\"end\":\"23:59\"}],\"dom\":[{\"begin\":\"00:01\",\"end\":\"23:59\"}]},\"out_of_hours\":{\"seg\":[{\"begin\":\"00:01\",\"end\":\"07:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"},{\"begin\":\"17:59\",\"end\":\"23:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"}],\"ter\":[{\"begin\":\"00:01\",\"end\":\"07:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"},{\"begin\":\"17:59\",\"end\":\"23:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"}],\"qua\":[{\"begin\":\"00:01\",\"end\":\"07:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"},{\"begin\":\"17:59\",\"end\":\"23:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"}],\"qui\":[{\"begin\":\"00:01\",\"end\":\"07:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"},{\"begin\":\"17:59\",\"end\":\"23:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"}],\"sex\":[{\"begin\":\"00:01\",\"end\":\"07:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"},{\"begin\":\"17:59\",\"end\":\"23:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"}],\"sab\":[{\"begin\":\"00:01\",\"end\":\"07:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"},{\"begin\":\"17:59\",\"end\":\"23:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"}],\"dom\":[{\"begin\":\"00:01\",\"end\":\"07:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"},{\"begin\":\"17:59\",\"end\":\"23:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"}]}}},{\"id_local\":\"3\",\"designation\":\"Gare Mar\\u00edtima de S\\u00e3o Roque \",\"is_available\":\"1\",\"id_estacao\":\"1\",\"working_hours\":{\"seg\":[{\"begin\":\"00:01\",\"end\":\"23:59\"}],\"ter\":[{\"begin\":\"00:01\",\"end\":\"23:59\"}],\"qua\":[{\"begin\":\"00:01\",\"end\":\"23:59\"}],\"qui\":[{\"begin\":\"00:01\",\"end\":\"23:59\"}],\"sex\":[{\"begin\":\"00:01\",\"end\":\"23:59\"}],\"sab\":[{\"begin\":\"00:01\",\"end\":\"23:59\"}],\"dom\":[{\"begin\":\"00:01\",\"end\":\"23:59\"}]},\"out_of_hours\":{\"seg\":[{\"begin\":\"00:01\",\"end\":\"07:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"},{\"begin\":\"17:59\",\"end\":\"23:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"}],\"ter\":[{\"begin\":\"00:01\",\"end\":\"07:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"},{\"begin\":\"17:59\",\"end\":\"23:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"}],\"qua\":[{\"begin\":\"00:01\",\"end\":\"07:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"},{\"begin\":\"17:59\",\"end\":\"23:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"}],\"qui\":[{\"begin\":\"00:01\",\"end\":\"07:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"},{\"begin\":\"17:59\",\"end\":\"23:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"}],\"sex\":[{\"begin\":\"00:01\",\"end\":\"07:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"},{\"begin\":\"17:59\",\"end\":\"23:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"}],\"sab\":[{\"begin\":\"00:01\",\"end\":\"07:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"},{\"begin\":\"17:59\",\"end\":\"23:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"}],\"dom\":[{\"begin\":\"00:01\",\"end\":\"07:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"},{\"begin\":\"17:59\",\"end\":\"23:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"}]},\"name\":\"Gare Mar\\u00edtima de S\\u00e3o Roque \",\"address\":\"Rua General Ant\\u00f4nio Ribeiro n\\u00ba29\",\"schedule\":{\"working_hours\":{\"seg\":[{\"begin\":\"00:01\",\"end\":\"23:59\"}],\"ter\":[{\"begin\":\"00:01\",\"end\":\"23:59\"}],\"qua\":[{\"begin\":\"00:01\",\"end\":\"23:59\"}],\"qui\":[{\"begin\":\"00:01\",\"end\":\"23:59\"}],\"sex\":[{\"begin\":\"00:01\",\"end\":\"23:59\"}],\"sab\":[{\"begin\":\"00:01\",\"end\":\"23:59\"}],\"dom\":[{\"begin\":\"00:01\",\"end\":\"23:59\"}]},\"out_of_hours\":{\"seg\":[{\"begin\":\"00:01\",\"end\":\"07:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"},{\"begin\":\"17:59\",\"end\":\"23:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"}],\"ter\":[{\"begin\":\"00:01\",\"end\":\"07:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"},{\"begin\":\"17:59\",\"end\":\"23:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"}],\"qua\":[{\"begin\":\"00:01\",\"end\":\"07:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"},{\"begin\":\"17:59\",\"end\":\"23:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"}],\"qui\":[{\"begin\":\"00:01\",\"end\":\"07:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"},{\"begin\":\"17:59\",\"end\":\"23:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"}],\"sex\":[{\"begin\":\"00:01\",\"end\":\"07:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"},{\"begin\":\"17:59\",\"end\":\"23:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"}],\"sab\":[{\"begin\":\"00:01\",\"end\":\"07:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"},{\"begin\":\"17:59\",\"end\":\"23:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"}],\"dom\":[{\"begin\":\"00:01\",\"end\":\"07:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"},{\"begin\":\"17:59\",\"end\":\"23:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"}]}}}]');\nvar entity_in =way2rentals.jQuery.parseJSON('[{\"id_local\":\"1\",\"designation\":\"Aeroporto do Pico\",\"is_available\":\"1\",\"id_estacao\":\"1\",\"working_hours\":{\"seg\":[{\"begin\":\"00:01\",\"end\":\"23:59\"}],\"ter\":[{\"begin\":\"00:01\",\"end\":\"23:59\"}],\"qua\":[{\"begin\":\"00:01\",\"end\":\"23:59\"}],\"qui\":[{\"begin\":\"00:01\",\"end\":\"23:59\"}],\"sex\":[{\"begin\":\"00:01\",\"end\":\"23:59\"}],\"sab\":[{\"begin\":\"00:01\",\"end\":\"23:59\"}],\"dom\":[{\"begin\":\"00:01\",\"end\":\"23:59\"}]},\"out_of_hours\":{\"seg\":[{\"begin\":\"00:01\",\"end\":\"07:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"},{\"begin\":\"17:59\",\"end\":\"23:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"}],\"ter\":[{\"begin\":\"00:01\",\"end\":\"07:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"},{\"begin\":\"17:59\",\"end\":\"23:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"}],\"qua\":[{\"begin\":\"00:01\",\"end\":\"07:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"},{\"begin\":\"17:59\",\"end\":\"23:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"}],\"qui\":[{\"begin\":\"00:01\",\"end\":\"07:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"},{\"begin\":\"17:59\",\"end\":\"23:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"}],\"sex\":[{\"begin\":\"00:01\",\"end\":\"07:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"},{\"begin\":\"17:59\",\"end\":\"23:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"}],\"sab\":[{\"begin\":\"00:01\",\"end\":\"07:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"},{\"begin\":\"17:59\",\"end\":\"23:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"}],\"dom\":[{\"begin\":\"00:01\",\"end\":\"07:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"},{\"begin\":\"17:59\",\"end\":\"23:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"}]},\"name\":\"Aeroporto do Pico\",\"address\":\"Rua General Ant\\u00f4nio Ribeiro n\\u00ba29\",\"schedule\":{\"working_hours\":{\"seg\":[{\"begin\":\"00:01\",\"end\":\"23:59\"}],\"ter\":[{\"begin\":\"00:01\",\"end\":\"23:59\"}],\"qua\":[{\"begin\":\"00:01\",\"end\":\"23:59\"}],\"qui\":[{\"begin\":\"00:01\",\"end\":\"23:59\"}],\"sex\":[{\"begin\":\"00:01\",\"end\":\"23:59\"}],\"sab\":[{\"begin\":\"00:01\",\"end\":\"23:59\"}],\"dom\":[{\"begin\":\"00:01\",\"end\":\"23:59\"}]},\"out_of_hours\":{\"seg\":[{\"begin\":\"00:01\",\"end\":\"07:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"},{\"begin\":\"17:59\",\"end\":\"23:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"}],\"ter\":[{\"begin\":\"00:01\",\"end\":\"07:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"},{\"begin\":\"17:59\",\"end\":\"23:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"}],\"qua\":[{\"begin\":\"00:01\",\"end\":\"07:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"},{\"begin\":\"17:59\",\"end\":\"23:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"}],\"qui\":[{\"begin\":\"00:01\",\"end\":\"07:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"},{\"begin\":\"17:59\",\"end\":\"23:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"}],\"sex\":[{\"begin\":\"00:01\",\"end\":\"07:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"},{\"begin\":\"17:59\",\"end\":\"23:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"}],\"sab\":[{\"begin\":\"00:01\",\"end\":\"07:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"},{\"begin\":\"17:59\",\"end\":\"23:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"}],\"dom\":[{\"begin\":\"00:01\",\"end\":\"07:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"},{\"begin\":\"17:59\",\"end\":\"23:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"}]}}},{\"id_local\":\"2\",\"designation\":\"Gare Mar\\u00edtima da Madalena\",\"is_available\":\"1\",\"id_estacao\":\"1\",\"working_hours\":{\"seg\":[{\"begin\":\"00:01\",\"end\":\"23:59\"}],\"ter\":[{\"begin\":\"00:01\",\"end\":\"23:59\"}],\"qua\":[{\"begin\":\"00:01\",\"end\":\"23:59\"}],\"qui\":[{\"begin\":\"00:01\",\"end\":\"23:59\"}],\"sex\":[{\"begin\":\"00:01\",\"end\":\"23:59\"}],\"sab\":[{\"begin\":\"00:01\",\"end\":\"23:59\"}],\"dom\":[{\"begin\":\"00:01\",\"end\":\"23:59\"}]},\"out_of_hours\":{\"seg\":[{\"begin\":\"00:01\",\"end\":\"07:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"},{\"begin\":\"17:59\",\"end\":\"23:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"}],\"ter\":[{\"begin\":\"00:01\",\"end\":\"07:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"},{\"begin\":\"17:59\",\"end\":\"23:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"}],\"qua\":[{\"begin\":\"00:01\",\"end\":\"07:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"},{\"begin\":\"17:59\",\"end\":\"23:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"}],\"qui\":[{\"begin\":\"00:01\",\"end\":\"07:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"},{\"begin\":\"17:59\",\"end\":\"23:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"}],\"sex\":[{\"begin\":\"00:01\",\"end\":\"07:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"},{\"begin\":\"17:59\",\"end\":\"23:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"}],\"sab\":[{\"begin\":\"00:01\",\"end\":\"07:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"},{\"begin\":\"17:59\",\"end\":\"23:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"}],\"dom\":[{\"begin\":\"00:01\",\"end\":\"07:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"},{\"begin\":\"17:59\",\"end\":\"23:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"}]},\"name\":\"Gare Mar\\u00edtima da Madalena\",\"address\":\"Rua General Ant\\u00f4nio Ribeiro n\\u00ba29\",\"schedule\":{\"working_hours\":{\"seg\":[{\"begin\":\"00:01\",\"end\":\"23:59\"}],\"ter\":[{\"begin\":\"00:01\",\"end\":\"23:59\"}],\"qua\":[{\"begin\":\"00:01\",\"end\":\"23:59\"}],\"qui\":[{\"begin\":\"00:01\",\"end\":\"23:59\"}],\"sex\":[{\"begin\":\"00:01\",\"end\":\"23:59\"}],\"sab\":[{\"begin\":\"00:01\",\"end\":\"23:59\"}],\"dom\":[{\"begin\":\"00:01\",\"end\":\"23:59\"}]},\"out_of_hours\":{\"seg\":[{\"begin\":\"00:01\",\"end\":\"07:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"},{\"begin\":\"17:59\",\"end\":\"23:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"}],\"ter\":[{\"begin\":\"00:01\",\"end\":\"07:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"},{\"begin\":\"17:59\",\"end\":\"23:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"}],\"qua\":[{\"begin\":\"00:01\",\"end\":\"07:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"},{\"begin\":\"17:59\",\"end\":\"23:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"}],\"qui\":[{\"begin\":\"00:01\",\"end\":\"07:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"},{\"begin\":\"17:59\",\"end\":\"23:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"}],\"sex\":[{\"begin\":\"00:01\",\"end\":\"07:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"},{\"begin\":\"17:59\",\"end\":\"23:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"}],\"sab\":[{\"begin\":\"00:01\",\"end\":\"07:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"},{\"begin\":\"17:59\",\"end\":\"23:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"}],\"dom\":[{\"begin\":\"00:01\",\"end\":\"07:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"},{\"begin\":\"17:59\",\"end\":\"23:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"}]}}},{\"id_local\":\"3\",\"designation\":\"Gare Mar\\u00edtima de S\\u00e3o Roque \",\"is_available\":\"1\",\"id_estacao\":\"1\",\"working_hours\":{\"seg\":[{\"begin\":\"00:01\",\"end\":\"23:59\"}],\"ter\":[{\"begin\":\"00:01\",\"end\":\"23:59\"}],\"qua\":[{\"begin\":\"00:01\",\"end\":\"23:59\"}],\"qui\":[{\"begin\":\"00:01\",\"end\":\"23:59\"}],\"sex\":[{\"begin\":\"00:01\",\"end\":\"23:59\"}],\"sab\":[{\"begin\":\"00:01\",\"end\":\"23:59\"}],\"dom\":[{\"begin\":\"00:01\",\"end\":\"23:59\"}]},\"out_of_hours\":{\"seg\":[{\"begin\":\"00:01\",\"end\":\"07:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"},{\"begin\":\"17:59\",\"end\":\"23:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"}],\"ter\":[{\"begin\":\"00:01\",\"end\":\"07:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"},{\"begin\":\"17:59\",\"end\":\"23:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"}],\"qua\":[{\"begin\":\"00:01\",\"end\":\"07:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"},{\"begin\":\"17:59\",\"end\":\"23:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"}],\"qui\":[{\"begin\":\"00:01\",\"end\":\"07:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"},{\"begin\":\"17:59\",\"end\":\"23:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"}],\"sex\":[{\"begin\":\"00:01\",\"end\":\"07:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"},{\"begin\":\"17:59\",\"end\":\"23:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"}],\"sab\":[{\"begin\":\"00:01\",\"end\":\"07:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"},{\"begin\":\"17:59\",\"end\":\"23:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"}],\"dom\":[{\"begin\":\"00:01\",\"end\":\"07:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"},{\"begin\":\"17:59\",\"end\":\"23:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"}]},\"name\":\"Gare Mar\\u00edtima de S\\u00e3o Roque \",\"address\":\"Rua General Ant\\u00f4nio Ribeiro n\\u00ba29\",\"schedule\":{\"working_hours\":{\"seg\":[{\"begin\":\"00:01\",\"end\":\"23:59\"}],\"ter\":[{\"begin\":\"00:01\",\"end\":\"23:59\"}],\"qua\":[{\"begin\":\"00:01\",\"end\":\"23:59\"}],\"qui\":[{\"begin\":\"00:01\",\"end\":\"23:59\"}],\"sex\":[{\"begin\":\"00:01\",\"end\":\"23:59\"}],\"sab\":[{\"begin\":\"00:01\",\"end\":\"23:59\"}],\"dom\":[{\"begin\":\"00:01\",\"end\":\"23:59\"}]},\"out_of_hours\":{\"seg\":[{\"begin\":\"00:01\",\"end\":\"07:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"},{\"begin\":\"17:59\",\"end\":\"23:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"}],\"ter\":[{\"begin\":\"00:01\",\"end\":\"07:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"},{\"begin\":\"17:59\",\"end\":\"23:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"}],\"qua\":[{\"begin\":\"00:01\",\"end\":\"07:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"},{\"begin\":\"17:59\",\"end\":\"23:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"}],\"qui\":[{\"begin\":\"00:01\",\"end\":\"07:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"},{\"begin\":\"17:59\",\"end\":\"23:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"}],\"sex\":[{\"begin\":\"00:01\",\"end\":\"07:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"},{\"begin\":\"17:59\",\"end\":\"23:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"}],\"sab\":[{\"begin\":\"00:01\",\"end\":\"07:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"},{\"begin\":\"17:59\",\"end\":\"23:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"}],\"dom\":[{\"begin\":\"00:01\",\"end\":\"07:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"},{\"begin\":\"17:59\",\"end\":\"23:59\",\"type\":\"both\",\"object_type\":\"40\",\"id_object\":\"5\"}]}}}]');\nvar allowed_times_pickup = [];\nvar allowed_times_dropoff = [];\n\n\n    function nonWorkingDatesPickup(date){\n    \tvar day = date.getDay();\n        var closedDates = ['2019-11-12'];\n        var selected_date = way2rentals.jQuery('#pickup_date').val();\n     \n        var selected_station = way2rentals.jQuery('#pickup').val();\n        var closedDays = [];\n        \n        var from = way2rentals.jQuery(\"#pickup_date\").val().split(\"-\");\n        var aux = new Date(from[0], from[1] - 1, from[2]);\n        var day_aux = aux.getDay();\n        \n        allowed_times_pickup = [];\n        way2rentals.jQuery.each( entity_out, function( key, value ) {\n        \tvar aux_is_this_entity = false;\n        \t\n            if('id_local' == 'stationid'){\n                if (value.stationid == selected_station) {\n                    aux_is_this_entity = true;\n                }\n            }else{\n                if (value.id_local == selected_station) {\n                    aux_is_this_entity = true;\n                }\n            }\n            \n            if (aux_is_this_entity == true) {\n            \t\n                way2rentals.jQuery.each( value.schedule.working_hours, function( key2, value2 ) {\n                    \n                    switch(day_aux) {\n                        case 1:\n                            if(key2 == 'seg'){\n                                way2rentals.jQuery.each( value2, function( key3, value3 ) {\n                                    var aux_begin = value3.begin.split(':');\n                                    var aux_end = value3.end.split(':');\n                                    for (i = aux_begin[0]; i <= aux_end[0]; i++) {\n                                            allowed_times_pickup.push(i+\":00\");\n                                            allowed_times_pickup.push(i+\":15\");\n                                            allowed_times_pickup.push(i+\":30\");\n                                            allowed_times_pickup.push(i+\":45\");\n                                    }\n                                    \n                                });\n                            }\n                        break\n                        case 2:\n                            if(key2 == 'ter'){\n                                way2rentals.jQuery.each( value2, function( key3, value3 ) {\n                                    var aux_begin = value3.begin.split(':');\n                                    var aux_end = value3.end.split(':');\n                                    for (i = aux_begin[0]; i <= aux_end[0]; i++) {\n                                            allowed_times_pickup.push(i+\":00\");\n                                            allowed_times_pickup.push(i+\":15\");\n                                            allowed_times_pickup.push(i+\":30\");\n                                            allowed_times_pickup.push(i+\":45\");\n                                    }\n                                    \n                                });\n                            }\n                        break\n                        case 3:\n                            if(key2 == 'qua'){\n                                way2rentals.jQuery.each( value2, function( key3, value3 ) {\n                                    var aux_begin = value3.begin.split(':');\n                                    var aux_end = value3.end.split(':');\n                                    for (i = aux_begin[0]; i <= aux_end[0]; i++) {\n                                            allowed_times_pickup.push(i+\":00\");\n                                    }\n                                    \n                                });\n                            }\n                        break\n                        case 4:\n                            if(key2 == 'qui'){\n                                way2rentals.jQuery.each( value2, function( key3, value3 ) {\n                                    var aux_begin = value3.begin.split(':');\n                                    var aux_end = value3.end.split(':');\n                                    for (i = aux_begin[0]; i <= aux_end[0]; i++) {\n                                            allowed_times_pickup.push(i+\":00\");\n                                            allowed_times_pickup.push(i+\":15\");\n                                            allowed_times_pickup.push(i+\":30\");\n                                            allowed_times_pickup.push(i+\":45\");\n                                    }\n                                    \n                                });\n                            }\n                        break\n                        case 5:\n                            if(key2 == 'sex'){\n                                way2rentals.jQuery.each( value2, function( key3, value3 ) {\n                                    var aux_begin = value3.begin.split(':');\n                                    var aux_end = value3.end.split(':');\n                                    for (i = aux_begin[0]; i <= aux_end[0]; i++) {\n                                            allowed_times_pickup.push(i+\":00\");\n                                            allowed_times_pickup.push(i+\":15\");\n                                            allowed_times_pickup.push(i+\":30\");\n                                            allowed_times_pickup.push(i+\":45\");\n                                    }\n                                    \n                                });\n                            }\n                        break\n                        case 6:\n                            if(key2 == 'sab'){\n                                way2rentals.jQuery.each( value2, function( key3, value3 ) {\n                                    var aux_begin = value3.begin.split(':');\n                                    var aux_end = value3.end.split(':');\n                                    for (i = aux_begin[0]; i <= aux_end[0]; i++) {\n                                            allowed_times_pickup.push(i+\":00\");\n                                            allowed_times_pickup.push(i+\":15\");\n                                            allowed_times_pickup.push(i+\":30\");\n                                            allowed_times_pickup.push(i+\":45\");\n                                    }\n                                    \n                                });\n                            }\n                        break\n                        case 0:\n                            if(key2 == 'dom'){\n                                way2rentals.jQuery.each( value2, function( key3, value3 ) {\n                                    var aux_begin = value3.begin.split(':');\n                                    var aux_end = value3.end.split(':');\n                                    for (i = aux_begin[0]; i <= aux_end[0]; i++) {\n                                            allowed_times_pickup.push(i+\":00\");\n                                            allowed_times_pickup.push(i+\":15\");\n                                            allowed_times_pickup.push(i+\":30\");\n                                            allowed_times_pickup.push(i+\":45\");\n                                    }\n                                    \n                                });\n                            }\n                        break\n                        case 7:\n                            if(key2 == 'dom'){\n                                way2rentals.jQuery.each( value2, function( key3, value3 ) {\n                                    var aux_begin = value3.begin.split(':');\n                                    var aux_end = value3.end.split(':');\n                                    for (i = aux_begin[0]; i <= aux_end[0]; i++) {\n                                            allowed_times_pickup.push(i+\":00\");\n                                            allowed_times_pickup.push(i+\":15\");\n                                            allowed_times_pickup.push(i+\":30\");\n                                            allowed_times_pickup.push(i+\":45\");\n                                    }\n                                    \n                                });\n                            }\n                        break\n                    }\n                });\n                \n                \n                addOptionsToTimeField('pickup_hour', allowed_times_pickup);\n\n                way2rentals.jQuery.each( value.open_days, function( day_abreviation, status ) {\n                  if(status == 0){\n                      switch(day_abreviation) {\n                            case \"sun\":\n                            closedDays.push([0]);\n                            break\n                            case \"mon\":\n                            closedDays.push([1]);\n                            break\n                            case \"tue\":\n                            closedDays.push([2]);\n                            break\n                            case \"wed\":\n                            closedDays.push([3]);\n                            break\n                            case \"thu\":\n                            closedDays.push([4]);\n                            break\n                            case \"fri\":\n                            closedDays.push([5]);\n                            break\n                             case \"sat\":\n                            closedDays.push([6]);\n                            break\n                        }\n                  }\n              });\n                  \n             }\n        })\n        \n        var holidays = way2rentals.jQuery.parseJSON('[]');\n        \n        var datestring = way2rentals.jQuery.datepicker.formatDate('yy-mm-dd', date);\n        if(holidays.indexOf(datestring) != -1){\n            return [false];\n        }\n        \n        \n        for (var i = 0; i < closedDays.length; i++) {\n            if (day == closedDays[i][0]) {\n                return [false];\n            }\n\n        }\n\n        for (i = 0; i < closedDates.length; i++) {\n            if ((date.getMonth() == closedDates[i][0] - 1) && (date.getDate() == closedDates[i][1]) && (date.getFullYear() == closedDates[i][2])) {\n                return [false];\n            }\n        }\n\n        return [true];\n    }\n\n    function nonWorkingDatesDropoff(date){\n       var day = date.getDay();\n        var closedDates = [];\n        \n        var selected_station = way2rentals.jQuery('#dropoff').val();\n        var closedDays = [];\n        var from = way2rentals.jQuery(\"#dropoff_date\").val().split(\"-\");\n        var aux = new Date(from[0], from[1] - 1, from[2]);\n        var day_aux = aux.getDay();\n        \n        allowed_times_dropoff = [];\n        way2rentals.jQuery.each( entity_in, function( key, value ) {\n        \tvar aux_is_this_entity = false;\n            if('id_local' == 'stationid'){\n                if (value.stationid == selected_station) {\n                    aux_is_this_entity = true;\n                }\n            }else{\n                if (value.id_local == selected_station) {\n                    aux_is_this_entity = true;\n                }\n            }\n            \n            if (aux_is_this_entity == true) {\n                way2rentals.jQuery.each( value.schedule.working_hours, function( key2, value2 ) {\n                    switch(day_aux) {\n                        case 1:\n                            if(key2 == 'seg'){\n                            \n                                way2rentals.jQuery.each( value2, function( key3, value3 ) {\n                                    var aux_begin = value3.begin.split(':');\n                                    var aux_end = value3.end.split(':');\n                                    for (i = aux_begin[0]; i <= aux_end[0]; i++) {\n                                            allowed_times_dropoff.push(i+\":00\");\n                                            allowed_times_dropoff.push(i+\":15\");\n                                            allowed_times_dropoff.push(i+\":30\");\n                                            allowed_times_dropoff.push(i+\":45\");\n                                    }\n                                    \n                                });\n                            }\n                        break\n                        case 2:\n                            if(key2 == 'ter'){\n                                way2rentals.jQuery.each( value2, function( key3, value3 ) {\n                                    var aux_begin = value3.begin.split(':');\n                                    var aux_end = value3.end.split(':');\n                                    for (i = aux_begin[0]; i <= aux_end[0]; i++) {\n                                            allowed_times_dropoff.push(i+\":00\");\n                                            allowed_times_dropoff.push(i+\":15\");\n                                            allowed_times_dropoff.push(i+\":30\");\n                                            allowed_times_dropoff.push(i+\":45\");\n                                    }\n                                    \n                                });\n                            }\n                        break\n                        case 3:\n                            if(key2 == 'qua'){\n                                way2rentals.jQuery.each( value2, function( key3, value3 ) {\n                                    var aux_begin = value3.begin.split(':');\n                                    var aux_end = value3.end.split(':');\n                                    for (i = aux_begin[0]; i <= aux_end[0]; i++) {\n                                            allowed_times_dropoff.push(i+\":00\");\n                                            allowed_times_dropoff.push(i+\":15\");\n                                            allowed_times_dropoff.push(i+\":30\");\n                                            allowed_times_dropoff.push(i+\":45\");\n                                    }\n                                    \n                                });\n                            }\n                        break\n                        case 4:\n                            if(key2 == 'qui'){\n                                way2rentals.jQuery.each( value2, function( key3, value3 ) {\n                                    var aux_begin = value3.begin.split(':');\n                                    var aux_end = value3.end.split(':');\n                                    for (i = aux_begin[0]; i <= aux_end[0]; i++) {\n                                            allowed_times_dropoff.push(i+\":00\");\n                                            allowed_times_dropoff.push(i+\":15\");\n                                            allowed_times_dropoff.push(i+\":30\");\n                                            allowed_times_dropoff.push(i+\":45\");\n                                    }\n                                    \n                                });\n                            }\n                        break\n                        case 5:\n                            if(key2 == 'sex'){\n                                way2rentals.jQuery.each( value2, function( key3, value3 ) {\n                                    var aux_begin = value3.begin.split(':');\n                                    var aux_end = value3.end.split(':');\n                                    for (i = aux_begin[0]; i <= aux_end[0]; i++) {\n                                            allowed_times_dropoff.push(i+\":00\");\n                                            allowed_times_dropoff.push(i+\":15\");\n                                            allowed_times_dropoff.push(i+\":30\");\n                                            allowed_times_dropoff.push(i+\":45\");\n                                    }\n                                    \n                                });\n                            }\n                        break\n                        case 6:\n                            if(key2 == 'sab'){\n                                way2rentals.jQuery.each( value2, function( key3, value3 ) {\n                                    var aux_begin = value3.begin.split(':');\n                                    var aux_end = value3.end.split(':');\n                                    for (i = aux_begin[0]; i <= aux_end[0]; i++) {\n                                            allowed_times_dropoff.push(i+\":00\");\n                                            allowed_times_dropoff.push(i+\":15\");\n                                            allowed_times_dropoff.push(i+\":30\");\n                                            allowed_times_dropoff.push(i+\":45\");\n                                    }\n                                    \n                                });\n                            }\n                        break\n                        case 0:\n                        \n                            if(key2 == 'dom'){\n                            \n                            \n                                way2rentals.jQuery.each( value2, function( key3, value3 ) {\n                                    var aux_begin = value3.begin.split(':');\n                                    var aux_end = value3.end.split(':');\n                                    for (i = aux_begin[0]; i <= aux_end[0]; i++) {\n                                            allowed_times_dropoff.push(i+\":00\");\n                                            allowed_times_dropoff.push(i+\":15\");\n                                            allowed_times_dropoff.push(i+\":30\");\n                                            allowed_times_dropoff.push(i+\":45\");\n                                    }\n                                    \n                                });\n                            }\n                        break\n                        case 7:\n                        \n                            if(key2 == 'dom'){\n                            \n                            \n                                way2rentals.jQuery.each( value2, function( key3, value3 ) {\n                                    var aux_begin = value3.begin.split(':');\n                                    var aux_end = value3.end.split(':');\n                                    for (i = aux_begin[0]; i <= aux_end[0]; i++) {\n                                            allowed_times_dropoff.push(i+\":00\");\n                                            allowed_times_dropoff.push(i+\":15\");\n                                            allowed_times_dropoff.push(i+\":30\");\n                                            allowed_times_dropoff.push(i+\":45\");\n                                    }\n                                    \n                                });\n                            }\n                        break\n                    }\n                });\n                \n                addOptionsToTimeField('dropoff_hour', allowed_times_dropoff);\n               \n                way2rentals.jQuery.each( value.open_days, function( day_abreviation, status ) {\n                  if(status == 0){\n                      switch(day_abreviation) {\n                            case \"sun\":\n                            closedDays.push([0]);\n                            break\n                            case \"mon\":\n                            closedDays.push([1]);\n                            break\n                            case \"tue\":\n                            closedDays.push([2]);\n                            break\n                            case \"wed\":\n                            closedDays.push([3]);\n                            break\n                            case \"thu\":\n                            closedDays.push([4]);\n                            break\n                            case \"fri\":\n                            closedDays.push([5]);\n                            break\n                             case \"sat\":\n                            closedDays.push([6]);\n                            break\n                        }\n                  }\n              });\n                  \n             }\n        })\n        \n        \n        var holidays = way2rentals.jQuery.parseJSON('[]');\n        \n        var datestring = way2rentals.jQuery.datepicker.formatDate('yy-mm-dd', date);\n        if(holidays.indexOf(datestring) != -1){\n            return [false];\n        }\n        \n        for (var i = 0; i < closedDays.length; i++) {\n            if (day == closedDays[i][0]) {\n                return [false];\n            }\n    \n        }\n    \n        for (i = 0; i < closedDates.length; i++) {\n            if ((date.getMonth() == closedDates[i][0] - 1) && (date.getDate() == closedDates[i][1]) && (date.getFullYear() == closedDates[i][2])) {\n                return [false];\n            }\n        }\n    \n        return [true];\n    }\n\n    way2rentals.jQuery('#pickup_date').datetimepicker({\n        format:\t'Y-m-d',\n        beforeShowDay: nonWorkingDatesPickup,\n        timepicker:false,\n        minDate:'+1970\/01\/01',\n        onShow:function( ct ){\n        this.setOptions({\n            maxDate: false,\n        })\n        }\n    });\n    \n    way2rentals.jQuery('#dropoff_date').datetimepicker({\n        format:'Y-m-d',\n        timepicker:false,\n        beforeShowDay: nonWorkingDatesDropoff,\n        minDate:'+1970\/01\/01',\n        onShow:function( ct ){\n        this.setOptions({\n        \tminDate:jQuery('#pickup_date').val()?jQuery('#pickup_date').val():false,\n        })\n        }\n    });\n\n    \/*way2rentals.jQuery('#pickup_hour').datetimepicker({\n        format: 'H:i',\n        datepicker: false,\n        timepicker:true,\n        closeOnTimeSelect: false,\n        closeOnWithoutClick: true,\n        onShow:function( ct ){\n            this.setOptions({\n                maxDate: false,\n                allowTimes: allowed_times_pickup,\n           })\n        }\n    });\n\n    way2rentals.jQuery('#dropoff_hour').datetimepicker({\n        format: 'H:i',\n        datepicker: false,\n        timepicker:true,\n        closeOnTimeSelect: false,\n        closeOnWithoutClick: true,\n        onShow:function( ct ){\n            this.setOptions({\n                maxDate: false,\n                allowTimes: allowed_times_dropoff,\n           })\n        }\n    });*\/\n\n    function addOptionsToTimeField(field, options){\n        way2rentals.jQuery('#'+field).empty();\n        var selected = '';\n        switch(field) {\n            case 'pickup_hour':\n                if('0' == '1'){\n                    selected = '0';\n                }else{\n                    selected = '15:00';\n                }\n            break\n            case 'dropoff_hour':\n                if('0' == '1'){\n                    \n                    selected = '0';\n                }else{\n                    selected = '11:00';\n                }\n            break\n        }\n\n        for (var i = 0; i < options.length; i++) {\n\n            var time = options[i];\n            var aux = options[i].split(':');\n        \n            if(aux[0].length == 1){\n                time = '0'+aux[0]+':'+aux[1];\n            }\n\n            if(time == selected){\n                way2rentals.jQuery('#'+field).append('<option selected value=\"'+time+'\">'+time+'<\/option>');\n            } else {\n                way2rentals.jQuery('#'+field).append('<option value=\"'+time+'\">'+time+'<\/option>');\n            }\n        }\n\n    }\n    \/\/-->\n<\/script>\n<script async src=\"https:\/\/www.googletagmanager.com\/gtag\/js?id=AW-11191263688\"><\/script>\n<script>\n  window.dataLayer = window.dataLayer || [];\n  function gtag(){dataLayer.push(arguments);}\n  gtag('js', new Date());\n\n  gtag('config', 'AW-11191263688');\n<\/script><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_seopress_titles_title":"","_seopress_titles_desc":"","_seopress_robots_index":"","_seopress_robots_follow":"","_seopress_robots_imageindex":"","_seopress_robots_snippet":"","_seopress_robots_primary_cat":"","_seopress_robots_breadcrumbs":"","_seopress_robots_freeze_modified_date":"","_seopress_robots_custom_modified_date":"","_seopress_robots_canonical":"","_seopress_social_fb_title":"","_seopress_social_fb_desc":"","_seopress_social_fb_img":"","_seopress_social_fb_img_attachment_id":0,"_seopress_social_fb_img_width":0,"_seopress_social_fb_img_height":0,"_seopress_social_twitter_title":"","_seopress_social_twitter_desc":"","_seopress_social_twitter_img":"","_seopress_social_twitter_img_attachment_id":0,"_seopress_social_twitter_img_width":0,"_seopress_social_twitter_img_height":0,"_seopress_redirections_value":"","_seopress_redirections_enabled":"","_seopress_redirections_enabled_regex":"","_seopress_redirections_logged_status":"","_seopress_redirections_param":"","_seopress_redirections_type":0,"_seopress_analysis_target_kw":"","_et_pb_use_builder":"on","_et_pb_old_content":"","_et_gb_content_width":"","footnotes":""},"class_list":["post-252","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/rentacarazorestravel.com\/en\/wp-json\/wp\/v2\/pages\/252","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/rentacarazorestravel.com\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/rentacarazorestravel.com\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/rentacarazorestravel.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/rentacarazorestravel.com\/en\/wp-json\/wp\/v2\/comments?post=252"}],"version-history":[{"count":11,"href":"https:\/\/rentacarazorestravel.com\/en\/wp-json\/wp\/v2\/pages\/252\/revisions"}],"predecessor-version":[{"id":291,"href":"https:\/\/rentacarazorestravel.com\/en\/wp-json\/wp\/v2\/pages\/252\/revisions\/291"}],"wp:attachment":[{"href":"https:\/\/rentacarazorestravel.com\/en\/wp-json\/wp\/v2\/media?parent=252"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}