{"id":781,"date":"2017-06-23T20:26:08","date_gmt":"2017-06-23T20:26:08","guid":{"rendered":"http:\/\/ferrycroatia.dev\/en\/?p=781"},"modified":"2018-02-07T11:58:29","modified_gmt":"2018-02-07T11:58:29","slug":"route-search","status":"publish","type":"post","link":"https:\/\/www.traincroatia.com\/en\/route-search\/","title":{"rendered":"Search results"},"content":{"rendered":"        <!--<div id=\"ship-wrapper\">\n            <div id=\"ship-preloader\">\n                <div class=\"wrap\">\n                <\/div>\n                <div class=\"ocean\"><\/div>\n                <div class=\"ocean-overlay\"><\/div>\n                <div class=\"here-there\">\n                    <div class=\"traslate\">\n                        <div class=\"ship\">\n                            <div class=\"bottom-1\">\n                                <div class=\"bottom-1-top\"><\/div>\n                                <div class=\"bottom-1-top-left\"><\/div>\n                                <div class=\"bottom-1-top-right\">\n                                    <div class=\"bottom-1-top-right-window\"><\/div>\n                                <\/div>\n                            <\/div>\n                            <div class=\"ship-body\">\n                                <div class=\"middle-window\"><\/div>\n                                <div class=\"blue-strip-top\"><\/div>\n                                <div class=\"blue-strip-bottom\"><\/div>\n                                <div class=\"ship-body-top-back\">\n                                    <div class=\"blue-strip-top-half\"><\/div>\n                                <\/div>\n                                <div class=\"chimney-base\">\n                                    <div class=\"chimney\"><\/div>\n                                    <div class=\"chimney\"><\/div>\n                                <\/div>\n                            <\/div>\n                            <div class=\"ship-body-top-front\">\n                                <div class=\"top-antenna\"><\/div>\n                                <div class=\"circular-base\"><\/div>\n                                <div class=\"circular-base-1\"><\/div>\n                            <\/div>\n                            <div class=\"ship-body-top-front-mirror\"><\/div>\n                        <\/div>\n                    <\/div>\n                <\/div>\n            <\/div>\n        <\/div>-->\n                    <!--<script type=\"text\/javascript\">\n            window.location = \"get_site_url() . '\/no-results\/'\";\n            <\/script>-->\n            \n        <style>\n            .search-result-top-message {\n                display: block;\n                clear: both;\n                width: 100%;\n                min-height: 10px;\n                font-size: 14px;\n            }\n\n            .map-description {\n                line-height: 1.35;\n                overflow: hidden;\n                white-space: nowrap;\n            }\n\n            #showMap {\n                height: 400px;\n                width: 100%;\n                margin: 10px 0px;\n            }\n\n        <\/style>\n\n                \n        <div class=\"repeated-search\">\n                Dear traveller, currently we have no information about scheduled ferry or catamaran \n                departures between  \n                and , if you wish to be informed about new departures, please add your email address here:\n            <span class='error-email'><\/span>\n            \n            <form action='https:\/\/www.traincroatia.com\/en\/wp-json\/wp\/v2\/posts\/781' method='post' class='email-form' id='subscription-form'>\n                <input type='email' name='email' class='place-input' required \/>\n                <input type='submit' class='submit-email-button' value='Submit' id='subscription-submit' \/>\n            <\/form>\n            \n            <div class='confirmation-box'>\n                <input type='checkbox' id='privacy-checkbox' value='0'>\n                <label for='privacy-checkbox'>\n                    <span>I have read and agreed to the <a href ='\/\/getbybus.com\/en\/general-terms' target='_blank'>terms & conditions<\/a> and <a href='\/\/getbybus.com\/en\/privacy-policy' target='_blank'>privacy policy<\/a><\/span>\n                <\/label>\n            <\/div>\n            \n            <div id='privacy-modal' role='dialog' class='modal hide fade' aria-hidden='true'>\n                <div class='modal-header'>\n                    <button type='button' class='close' data-dismiss='modal' aria-hidden='true'>\n                        &times;\n                    <\/button>\n                    <h4>You missed something ...<\/h4>\n                <\/div>\n                <div class='modal-body'>\n                    <p>You must accept general terms and privacy before submit.<\/p>\n                <\/div>\n                \n                <div class='modal-footer'>\n                    <button type='button' class='close btn' data-dismiss='modal' aria-hidden='true'>Close<\/button>\n                <\/div>\n            <\/div>\n             \n                <\/div>\n        <div class=\"search-results\">\n            <div class=\"search-results__content\">\n                <div id=\"gbb-search-rez-separator\"><\/div>\n                <div id=\"search-banner-icons-wrapper\">\n                    <a class=\"item hotel\" rel=\"nofollow\" target=\"_blank\" href=\"http:\/\/www.booking.com\/en\/searchresults.html?aid=359634&radius=1&label=FerryCro\">\n                        <span class=\"item hotel\">\n                            <i class=\"far fa-building fa-3x\"><\/i>\n                            <span class=\"txt\">Hotel<\/span>\n                        <\/span>\n                    <\/a>\n                    <span class=\"separator-width\"><\/span>\n                    <a class=\"item hostel\" rel=\"nofollow\" target=\"_blank\" href=\"http:\/\/www.booking.com\/en\/searchresults.html?aid=359634&radius=1&label=FerryCro\">\n                        <span class=\"item hostel\">\n                            <i class=\"fas fa-bed fa-3x\"><\/i>\n                            <span class=\"txt\">Hostel<\/span>\n                        <\/span>\n                    <\/a>\n                    <span class=\"separator-width\"><\/span>\n                    <a class=\"item transfers\" target=\"_blank\" href=\"https:\/\/transfers.getbybus.com\">\n                        <span class=\"item transfers\">\n                            <i class=\"fas fa-taxi fa-3x\"><\/i>\n                            <span class=\"txt\">Transfer<\/span>\n                        <\/span>\n                    <\/a>\n                    <span class=\"separator-width\"><\/span>\n                    <a class=\"item rent-a-car\" rel=\"nofollow\" target=\"_blank\" href=\"https:\/\/www.economycarrentals.com\/default.aspx?x02=726&resellerid=726&lang=01\">\n                        <span class=\"item rent-a-car\">\n                            <i class=\"fas fa-car fa-3x\"><\/i>\n                            <span class=\"txt\">Rent a car<\/span>\n                        <\/span>\n                    <\/a>\n                <\/div>\n\n                <em class=\"bus-table__note\">\n                    There are 4 people currently looking how to get from <strong><\/strong> to <strong><\/strong>!                <\/em>\n\n                                                                                    <div id=\"popupMap\"><\/div>\n                <div class=\"showMap-wrap\">\n                    <h3><\/h3>\n                                        <div id=\"showMap\"\n                         a_lat=\"\"\n                         a_lon=\"\"\n                         a_name=\"\"\n                         b_lat=\"\"\n                         b_lon=\"\"\n                         b_name=\"\"\n                    ><\/div>\n                <\/div>\n                                <div id=\"mapModal\" class=\"map-modal\">\n                    <div class=\"modal-content\">\n                        <span class=\"close\">&times;<\/span>\n                        <div id=\"mapPopup\">\n                            <div class='map-title'>\n                                <h3 class='red'> - <\/h3>\n                            <\/div>\n                            <div id='dvMap'><\/div>\n                        <\/div>\n                    <\/div>\n                <\/div>\n            <\/div>\n        <\/div>\n            <script type=\"text\/javascript\"\n                src=\"\/\/maps.googleapis.com\/maps\/api\/js?sensor=false&key=AIzaSyBxxWcswG7XIc5bQV6MFIDg0QwlgsRK1Ig\"><\/script>\n        <script>\n            \/\/jQuery.noConflict();\n            var ratios = JSON.parse('');\n            var stations = JSON.parse('');\n            var startImage = 'https:\/\/www.traincroatia.com\/en\/wp-content\/plugins\/getbyaps-routes-train\/assets\/images\/start.png',\n                endImage = 'https:\/\/www.traincroatia.com\/en\/wp-content\/plugins\/getbyaps-routes-train\/assets\/images\/end.png',\n                pinImage = 'https:\/\/www.traincroatia.com\/en\/wp-content\/plugins\/getbyaps-routes-train\/assets\/images\/pin.png';\n            var messages = new Object();\n            messages.click_to_see_map = \"Click to see map\";\n                        \/\/$('header .adsense').hide();\n            \n            function showMaps(div) {\n                var aLat = div.attr('a_lat'),\n                    aLon = div.attr('a_lon'),\n                    bLat = div.attr('b_lat'),\n                    bLon = div.attr('b_lon'),\n                    aName = div.attr('a_name'),\n                    bName = div.attr('b_name');\n\n\n                var start = new google.maps.LatLng(aLat, aLon);\n                var end = new google.maps.LatLng(bLat, bLon);\n\n                var directionsDisplay = new google.maps.DirectionsRenderer({\n                    polylineOptions: {\n                        strokeColor: \"transparent\"\n                    }\n                });\n                var directionsService = new google.maps.DirectionsService();\n\n                var mapOptions;\n\n                mapOptions = {\n                    center: start,\n                    zoom: 7,\n                    mapTypeId: google.maps.MapTypeId.ROADMAP\n                };\n\n                var map = new google.maps.Map(div[0], mapOptions);\n                directionsDisplay.setMap(map);\n                directionsDisplay.setOptions({suppressMarkers: true});\n                createMarker(start, map, aName);\n                createMarker(end, map, bName);\n                var request = {\n                    origin: start,\n                    destination: end,\n                    travelMode: google.maps.TravelMode.DRIVING\n                };\n                directionsService.route(request, function (response, status) {\n                    if (status == google.maps.DirectionsStatus.OK) {\n                        directionsDisplay.setDirections(response);\n                    }\n                });\n            }\n\n            function createMarker(latLon, map, title) {\n                var infoWindow = new google.maps.InfoWindow({maxWidth: 420});\n                var marker = new google.maps.Marker({\n                    position: latLon,\n                    map: map,\n                    title: title\n                });\n                google.maps.event.addListener(marker, \"click\", function () {\n                    infoWindow.setContent(\"<div class='map-description'><h3'>\" + title + \"<\/h3><\/div>\");\n                    infoWindow.open(map, marker);\n                });\n            }\n\n\n            function fetchLiveApiPrices() {\n                var $item = [];\n                $('#page_main_wrap').find('.search-results img.price-loading-gif').each(function (index, item) {\n                    $item[index] = $(item);\n                    try {\n                        $.ajax({\n                            \/\/url: 'http:\/\/getbybus.dev\/fetch-api-live-price',\n                            url: 'https:\/\/getbybus.com\/fetch-api-live-price',\n                            dataType: \"json\",\n                            data: {\n                                data: $item[index].data('live_connection_params'),\n                                currency: 'HRK',\n                                index: index\n                            },\n                            type: 'POST'\n                        }).done(function (data) {\n\n                            var livePrice = 0;\n                            if (js_isset(data, 'data', 'attributes', 'price_per_seat')) {\n                                livePrice = Math.round(Number((data.data.attributes.price_per_seat)));\n                                $item[data.data.index].parent()\n                                    .find('.price-value')\n                                    .html(\n                                        livePrice\n                                        \/\/'<span style=\"color:#d0b802!important\">'+livePrice+'<\/span>'\n                                        \/\/+ ' <span class=\"currency\">'\n                                        \/\/+ currentCurrencyRatio.currency\n                                        \/\/+ '<\/span>'\n                                    );\n                                \/\/$item[data.data.index].hide();\n                            }\n\n                            \/\/ hide gif loader\n                            $item[index].attr('style', 'display:none!important');\n\n                            if (0 == livePrice) {\n                                var $holder = $item[data.data.index].closest('.bus-table__row');\n                                $holder.hide();\n                            }\n                        }).fail(function (xhr, err) {\n                        });\n                    }\n                    catch (e) {\n                    }\n                });\n\n            }\n\n            jQuery(document).ready(function ($) {\n\n                $('.datepicker-redirect').each(function() {\n                    $(this).datepicker({\n                        dateFormat: \"yy-mm-dd\",\n                        minDate: \"now\",\n                    });\n                });\n\n                $(\"#ship-wrapper\").remove();\n\n                $('.disable-click').click(function (e) {\n                    e.preventDefault();\n                });\n\n                showMaps($(\"#showMap\"));\n\n                if ($('.price-rates').length > 0)\n                    $('.price-rates').qtip({\n                        show: {\n                            effect: function () {\n                                $(this).fadeIn(150);\n                            }\n                        },\n                        hide: {\n                            delay: 200,\n                            fixed: true,\n                            effect: function () {\n                                $(this).fadeOut(150);\n                            }\n                        },\n                        content: {\n                            text: function (api) {\n                                var selected;\n                                return createPriceList($(this).text());\n                            }\n                        },\n                        style: {\n                            classes: 'ui-tooltip-light'\n                        },\n                        position: {\n                            my: 'center left',\n                            at: 'center right'\n                        }\n                    });\n\n                function createPriceList(priceInKN) {\n                    if (!priceInKN) return \"\";\n                    var resultCode = \"<ol class='price-list'>\",\n                        priceInKN = Number(priceInKN.replace(\/[^0-9\\.]+\/g, \"\"));\n                    $.each(ratios, function (i, val) {\n                        resultCode += \"<li><span class='approx'>Approx. <\/span>\";\n                        resultCode += (Number(val.ratio) * priceInKN).toFixed(2) + \" \" + val.val + \"<\/li>\";\n                    });\n                    resultCode += \"<\/ol>\";\n                    return resultCode;\n                }\n\n                $('.datepicker-redirect').on('click', function () {\n                    var href = $(this).data('redirect-url');\n\n                    var elementIndex = $('.datepicker-redirect').index(this);\n                    var datePickerInput = $('.datepicker-redirect').eq(elementIndex);\n\n                    if ($('#datepicker').val()) {\n                        window.location.replace(href);\n                        return false;\n                    }\n\n                    window.scrollTo(0,0);\n\n                    datePickerInput.show();\n                    return false;\n                });\n\n                $('.datepicker-redirect').on('change', function () {\n                    var href = $(this).data('redirect-url');\n                    var regex = \/\\d{4}-\\d{2}-\\d{2}#\/;\n                    href = href.replace(regex, $(this).val() + \"#\");\n\n                    window.location.replace(href);\n                    return false;\n                });\n\n\n            });\n        <\/script>\n        \n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"aioseo_notices":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v19.8 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Search results - Train Croatia<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.traincroatia.com\/en\/route-search\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Search results - Train Croatia\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.traincroatia.com\/en\/route-search\/\" \/>\n<meta property=\"og:site_name\" content=\"Train Croatia\" \/>\n<meta property=\"article:published_time\" content=\"2017-06-23T20:26:08+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2018-02-07T11:58:29+00:00\" \/>\n<meta name=\"author\" content=\"Ferry Man\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Ferry Man\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.traincroatia.com\/en\/route-search\/\",\"url\":\"https:\/\/www.traincroatia.com\/en\/route-search\/\",\"name\":\"Search results - Train Croatia\",\"isPartOf\":{\"@id\":\"https:\/\/www.traincroatia.com\/en\/#website\"},\"datePublished\":\"2017-06-23T20:26:08+00:00\",\"dateModified\":\"2018-02-07T11:58:29+00:00\",\"author\":{\"@id\":\"https:\/\/www.traincroatia.com\/en\/#\/schema\/person\/e3cebc6a0599f9cf92a6a080b6b1f20d\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.traincroatia.com\/en\/route-search\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.traincroatia.com\/en\/route-search\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.traincroatia.com\/en\/route-search\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.traincroatia.com\/en\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Search results\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.traincroatia.com\/en\/#website\",\"url\":\"https:\/\/www.traincroatia.com\/en\/\",\"name\":\"Train Croatia\",\"description\":\"Info and timetables - all locomotives and trains in Croatia\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.traincroatia.com\/en\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.traincroatia.com\/en\/#\/schema\/person\/e3cebc6a0599f9cf92a6a080b6b1f20d\",\"name\":\"Ferry Man\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.traincroatia.com\/en\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/d50da27cb6fe0a08c2369ff31adf3266?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/d50da27cb6fe0a08c2369ff31adf3266?s=96&d=mm&r=g\",\"caption\":\"Ferry Man\"},\"url\":\"https:\/\/www.traincroatia.com\/en\/author\/ferryadmin\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Search results - Train Croatia","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.traincroatia.com\/en\/route-search\/","og_locale":"en_US","og_type":"article","og_title":"Search results - Train Croatia","og_url":"https:\/\/www.traincroatia.com\/en\/route-search\/","og_site_name":"Train Croatia","article_published_time":"2017-06-23T20:26:08+00:00","article_modified_time":"2018-02-07T11:58:29+00:00","author":"Ferry Man","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Ferry Man"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.traincroatia.com\/en\/route-search\/","url":"https:\/\/www.traincroatia.com\/en\/route-search\/","name":"Search results - Train Croatia","isPartOf":{"@id":"https:\/\/www.traincroatia.com\/en\/#website"},"datePublished":"2017-06-23T20:26:08+00:00","dateModified":"2018-02-07T11:58:29+00:00","author":{"@id":"https:\/\/www.traincroatia.com\/en\/#\/schema\/person\/e3cebc6a0599f9cf92a6a080b6b1f20d"},"breadcrumb":{"@id":"https:\/\/www.traincroatia.com\/en\/route-search\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.traincroatia.com\/en\/route-search\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.traincroatia.com\/en\/route-search\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.traincroatia.com\/en\/"},{"@type":"ListItem","position":2,"name":"Search results"}]},{"@type":"WebSite","@id":"https:\/\/www.traincroatia.com\/en\/#website","url":"https:\/\/www.traincroatia.com\/en\/","name":"Train Croatia","description":"Info and timetables - all locomotives and trains in Croatia","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.traincroatia.com\/en\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.traincroatia.com\/en\/#\/schema\/person\/e3cebc6a0599f9cf92a6a080b6b1f20d","name":"Ferry Man","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.traincroatia.com\/en\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/d50da27cb6fe0a08c2369ff31adf3266?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/d50da27cb6fe0a08c2369ff31adf3266?s=96&d=mm&r=g","caption":"Ferry Man"},"url":"https:\/\/www.traincroatia.com\/en\/author\/ferryadmin\/"}]}},"_links":{"self":[{"href":"https:\/\/www.traincroatia.com\/en\/wp-json\/wp\/v2\/posts\/781"}],"collection":[{"href":"https:\/\/www.traincroatia.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.traincroatia.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.traincroatia.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.traincroatia.com\/en\/wp-json\/wp\/v2\/comments?post=781"}],"version-history":[{"count":4,"href":"https:\/\/www.traincroatia.com\/en\/wp-json\/wp\/v2\/posts\/781\/revisions"}],"predecessor-version":[{"id":785,"href":"https:\/\/www.traincroatia.com\/en\/wp-json\/wp\/v2\/posts\/781\/revisions\/785"}],"wp:attachment":[{"href":"https:\/\/www.traincroatia.com\/en\/wp-json\/wp\/v2\/media?parent=781"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.traincroatia.com\/en\/wp-json\/wp\/v2\/categories?post=781"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.traincroatia.com\/en\/wp-json\/wp\/v2\/tags?post=781"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}