{"id":1558,"date":"2022-09-21T09:22:53","date_gmt":"2022-09-21T06:22:53","guid":{"rendered":"https:\/\/www.almicove-villas.gr\/travel-helper\/"},"modified":"2022-11-03T15:15:38","modified_gmt":"2022-11-03T13:15:38","slug":"travel-helper","status":"publish","type":"page","link":"https:\/\/www.almicove-villas.gr\/el\/travel-helper\/","title":{"rendered":"\u0394\u03b9\u03b1\u03b4\u03c1\u03bf\u03bc\u03ae"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-page\" data-elementor-id=\"1558\" class=\"elementor elementor-1558 elementor-524\">\n\t\t\t\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-87a2f96 elementor-section-full_width elementor-section-height-min-height elementor-section-height-default elementor-section-items-middle\" data-id=\"87a2f96\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-a8e4eb5\" data-id=\"a8e4eb5\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-element elementor-element-5332882 travel-location elementor-widget elementor-widget-html\" data-id=\"5332882\" data-element_type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<a href=\"#!\" onclick=\"fromYourLocation()\">\u0391\u03c0\u03bf \u03c4\u03b7\u03bd \u03c4\u03bf\u03c0\u03bf\u03b8\u03b5\u03c3\u03af\u03b1 \u03c3\u03b1\u03c2<\/a>\n<a href=\"#!\" onclick=\"initMap(35.540328192421704, 24.13043975830078,'35.45010503081898, 24.2051224397843')\">\u0391\u03c0\u03bf \u03c4\u03bf \u03b1\u03b5\u03c1\u03bf\u03b4\u03c1\u03cc\u03bc\u03b9\u03bf \u03a7\u03b1\u03bd\u03af\u03c9\u03bd<\/a>\n<a href=\"#!\" onclick=\"initMap(35.48936300690188, 24.076838493347168,'35.45010503081898, 24.2051224397843')\">\u0391\u03c0\u03bf \u03c4\u03bf \u03bb\u03b9\u03bc\u03ac\u03bd\u03b9 \u03a3\u03bf\u03cd\u03b4\u03b1\u03c2<\/a>\n<a href=\"#!\" onclick=\"initMap(35.33601110658638, 25.17414110577397,'35.45010503081898, 24.2051224397843')\">\u0391\u03c0\u03bf \u03c4\u03bf \u03b1\u03b5\u03c1\u03bf\u03b4\u03c1\u03cc\u03bc\u03b9\u03bf \u0397\u03c1\u03b1\u03ba\u03bb\u03b5\u03af\u03bf\u03c5<\/a>\n<a href=\"#!\" onclick=\"initMap(35.343507, 25.150937,'35.45010503081898, 24.20512243978433')\">\u0391\u03c0\u03bf \u03c4\u03bf \u03bb\u03b9\u03bc\u03ac\u03bd\u03b9 \u0397\u03c1\u03b1\u03ba\u03bb\u03b5\u03af\u03bf\u03c5<\/a>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t<div class=\"elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-184db8f\" data-id=\"184db8f\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-element elementor-element-fd938e9 travel-helper-element elementor-widget elementor-widget-html\" data-id=\"fd938e9\" data-element_type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<div id=\"map\" style=\"width: 100%; height: 550px; float: left;\"><\/div> \n<div id=\"panel\" style=\"width: 100%; float: right;\"><\/div> \n\n <script src=\"https:\/\/maps.google.com\/maps\/api\/js?key=AIzaSyAdl-1diJgY7gF35lwi7Tkq8hrRKlQ3OPA&language=en\"><\/script>\n<script type=\"text\/javascript\"> \n  var directionsService = new google.maps.DirectionsService();\n    var destinationCords = '35.45010503081898, 24.2051224397843';\n  \n  function fromYourLocation() {\n    if (location.protocol == 'https:'){\n      if (navigator.geolocation) {\n        navigator.geolocation.getCurrentPosition(function (position) {                                                              \n          initMap(position.coords.latitude,position.coords.longitude,destinationCords)\n        });\n      }\n    }\n  }\n\n  initMap();\n  \n  function initMap(lat,long,destinationCordss){\n    if (lat && long && destinationCordss) {\n      originx = lat+','+long;\n      destinx = destinationCordss;\n    } else{\n      originx = '35.506283, 23.996429';\n      destinx = destinationCords;\n    }\n    document.getElementById('panel').innerHTML = \"\"\n    var directionsDisplay = new google.maps.DirectionsRenderer({\n      draggable: true,\n      map: map,\n      panel: document.getElementById('panel')\n    });\n    var map = new google.maps.Map(document.getElementById('map'), {\n      zoom:7,\n      scrollwheel: false,\n      draggable: true,\n      mapTypeId: google.maps.MapTypeId.ROADMAP,\n      styles: [\n  {\n    \"elementType\": \"geometry\",\n    \"stylers\": [\n      {\n        \"color\": \"#f5f5f5\"\n      }\n    ]\n  },\n  {\n    \"elementType\": \"labels.icon\",\n    \"stylers\": [\n      {\n        \"visibility\": \"off\"\n      }\n    ]\n  },\n  {\n    \"elementType\": \"labels.text.fill\",\n    \"stylers\": [\n      {\n        \"color\": \"#616161\"\n      }\n    ]\n  },\n  {\n    \"elementType\": \"labels.text.stroke\",\n    \"stylers\": [\n      {\n        \"color\": \"#f5f5f5\"\n      }\n    ]\n  },\n  {\n    \"featureType\": \"administrative.land_parcel\",\n    \"elementType\": \"labels.text.fill\",\n    \"stylers\": [\n      {\n        \"color\": \"#bdbdbd\"\n      }\n    ]\n  },\n  {\n    \"featureType\": \"poi\",\n    \"elementType\": \"geometry\",\n    \"stylers\": [\n      {\n        \"color\": \"#eeeeee\"\n      }\n    ]\n  },\n  {\n    \"featureType\": \"poi\",\n    \"elementType\": \"labels.text.fill\",\n    \"stylers\": [\n      {\n        \"color\": \"#757575\"\n      }\n    ]\n  },\n  {\n    \"featureType\": \"poi.park\",\n    \"elementType\": \"geometry\",\n    \"stylers\": [\n      {\n        \"color\": \"#e5e5e5\"\n      }\n    ]\n  },\n  {\n    \"featureType\": \"poi.park\",\n    \"elementType\": \"labels.text.fill\",\n    \"stylers\": [\n      {\n        \"color\": \"#9e9e9e\"\n      }\n    ]\n  },\n  {\n    \"featureType\": \"road\",\n    \"elementType\": \"geometry\",\n    \"stylers\": [\n      {\n        \"color\": \"#ffffff\"\n      }\n    ]\n  },\n  {\n    \"featureType\": \"road.arterial\",\n    \"elementType\": \"geometry.fill\",\n    \"stylers\": [\n      {\n        \"color\": \"#000000\"\n      }\n    ]\n  },\n  {\n    \"featureType\": \"road.arterial\",\n    \"elementType\": \"labels.text.fill\",\n    \"stylers\": [\n      {\n        \"color\": \"#757575\"\n      }\n    ]\n  },\n  {\n    \"featureType\": \"road.highway\",\n    \"elementType\": \"geometry\",\n    \"stylers\": [\n      {\n        \"color\": \"#dadada\"\n      }\n    ]\n  },\n  {\n    \"featureType\": \"road.highway\",\n    \"elementType\": \"geometry.stroke\",\n    \"stylers\": [\n      {\n        \"color\": \"#000000\"\n      }\n    ]\n  },\n  {\n    \"featureType\": \"road.highway\",\n    \"elementType\": \"labels.text.fill\",\n    \"stylers\": [\n      {\n        \"color\": \"#616161\"\n      }\n    ]\n  },\n  {\n    \"featureType\": \"road.highway.controlled_access\",\n    \"elementType\": \"geometry.stroke\",\n    \"stylers\": [\n      {\n        \"color\": \"#000000\"\n      }\n    ]\n  },\n  {\n    \"featureType\": \"road.local\",\n    \"elementType\": \"geometry.fill\",\n    \"stylers\": [\n      {\n        \"color\": \"#000000\"\n      }\n    ]\n  },\n  {\n    \"featureType\": \"road.local\",\n    \"elementType\": \"labels.text.fill\",\n    \"stylers\": [\n      {\n        \"color\": \"#9e9e9e\"\n      }\n    ]\n  },\n  {\n    \"featureType\": \"transit.line\",\n    \"elementType\": \"geometry\",\n    \"stylers\": [\n      {\n        \"color\": \"#e5e5e5\"\n      }\n    ]\n  },\n  {\n    \"featureType\": \"transit.station\",\n    \"elementType\": \"geometry\",\n    \"stylers\": [\n      {\n        \"color\": \"#eeeeee\"\n      }\n    ]\n  },\n  {\n    \"featureType\": \"water\",\n    \"elementType\": \"geometry\",\n    \"stylers\": [\n      {\n        \"color\": \"#c9c9c9\"\n      }\n    ]\n  },\n  {\n    \"featureType\": \"water\",\n    \"elementType\": \"geometry.fill\",\n    \"stylers\": [\n      {\n        \"color\": \"#545454\"\n      }\n    ]\n  },\n  {\n    \"featureType\": \"water\",\n    \"elementType\": \"labels.text.fill\",\n    \"stylers\": [\n      {\n        \"color\": \"#9e9e9e\"\n      }\n    ]\n  }\n]\n    });\n    directionsDisplay.setMap(map);\n    directionsDisplay.setPanel(document.getElementById('panel'));\n    var request = {\n      origin: originx,\n      destination: destinx,\n      travelMode: google.maps.DirectionsTravelMode.DRIVING\n    };\n    directionsService.route(request, function(response, status) {\n      if (status == google.maps.DirectionsStatus.OK) {\n        directionsDisplay.setDirections(response);\n      }\n    });\n  }\n<\/script>  \t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>\u0391\u03c0\u03bf \u03c4\u03b7\u03bd \u03c4\u03bf\u03c0\u03bf\u03b8\u03b5\u03c3\u03af\u03b1 \u03c3\u03b1\u03c2 \u0391\u03c0\u03bf \u03c4\u03bf \u03b1\u03b5\u03c1\u03bf\u03b4\u03c1\u03cc\u03bc\u03b9\u03bf \u03a7\u03b1\u03bd\u03af\u03c9\u03bd \u0391\u03c0\u03bf \u03c4\u03bf \u03bb\u03b9\u03bc\u03ac\u03bd\u03b9 \u03a3\u03bf\u03cd\u03b4\u03b1\u03c2 \u0391\u03c0\u03bf \u03c4\u03bf \u03b1\u03b5\u03c1\u03bf\u03b4\u03c1\u03cc\u03bc\u03b9\u03bf \u0397\u03c1\u03b1\u03ba\u03bb\u03b5\u03af\u03bf\u03c5 \u0391\u03c0\u03bf \u03c4\u03bf \u03bb\u03b9\u03bc\u03ac\u03bd\u03b9 \u0397\u03c1\u03b1\u03ba\u03bb\u03b5\u03af\u03bf\u03c5<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_seopress_robots_primary_cat":"","site-sidebar-layout":"no-sidebar","site-content-layout":"page-builder","ast-global-header-display":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"disabled","ast-breadcrumbs-content":"","ast-featured-img":"disabled","footer-sml-layout":"","theme-transparent-header-meta":"default","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","footnotes":""},"class_list":["post-1558","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.almicove-villas.gr\/el\/wp-json\/wp\/v2\/pages\/1558","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.almicove-villas.gr\/el\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.almicove-villas.gr\/el\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.almicove-villas.gr\/el\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.almicove-villas.gr\/el\/wp-json\/wp\/v2\/comments?post=1558"}],"version-history":[{"count":16,"href":"https:\/\/www.almicove-villas.gr\/el\/wp-json\/wp\/v2\/pages\/1558\/revisions"}],"predecessor-version":[{"id":2090,"href":"https:\/\/www.almicove-villas.gr\/el\/wp-json\/wp\/v2\/pages\/1558\/revisions\/2090"}],"wp:attachment":[{"href":"https:\/\/www.almicove-villas.gr\/el\/wp-json\/wp\/v2\/media?parent=1558"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}