{"id":99,"date":"2014-07-09T09:55:40","date_gmt":"2014-07-09T07:55:40","guid":{"rendered":"http:\/\/www.coelte.local\/?page_id=99"},"modified":"2014-07-09T12:35:43","modified_gmt":"2014-07-09T10:35:43","slug":"where-we-are","status":"publish","type":"page","link":"https:\/\/coelte.net\/en\/where-we-are\/","title":{"rendered":"where are we"},"content":{"rendered":"<script src=\"https:\/\/maps.googleapis.com\/maps\/api\/js?v=3&sensor=false\"><\/script>\r\n\t<script type=\"text\/javascript\">\r\n\t\tvar directionsDisplay;\r\n\t\tvar directionsService = new google.maps.DirectionsService();\r\n\t\tvar map;\r\n\t\tvar geocoder;\r\n\t\t\r\n\t\tfunction initialize() {\r\n\t\t\tgeocoder = new google.maps.Geocoder();\r\n\t\t\tdirectionsDisplay = new google.maps.DirectionsRenderer();\r\n\t\t\tvar mapOptions = {\r\n\t\t\t  center: new google.maps.LatLng(41.137853, 14.456603),\r\n\t\t\t  zoom: 13,\r\n\t\t\t  mapTypeId: google.maps.MapTypeId.ROADMAP\r\n\t\t\t};\r\n\t\t\tvar map = new google.maps.Map(document.getElementById(\"map_canvas\"),mapOptions);\r\n\t\r\n\t\t\tvar marker = new google.maps.Marker({\r\n\t\t\tposition: new google.maps.LatLng(41.137853, 14.456603),\r\n\t\t\tmap: map\r\n\t\t\t});\r\n\t\r\n\t\t\tvar infowindow = new google.maps.InfoWindow({ \r\n\t\t\t\tcontent: '',\r\n\t\t\t\tsize: new google.maps.Size(100,200)\r\n\t\t\t});\r\n\t\r\n\t\t\tgoogle.maps.event.addListener(marker, 'click', function() {\r\n\t\t\t\tinfowindow.open(map,marker);\r\n\t\t\t});\r\n\t\t\t\r\n\t\t\tdirectionsDisplay.setMap(map);\r\n\t\t\tdirectionsDisplay.setPanel(document.getElementById(\"percorso\"));\r\n\t\t}\r\n\t\r\n\t\tfunction codeAddress() {\r\n\t\t\tvar comune = document.getElementById(\"comune\").value;\r\n\t\t\tvar via = document.getElementById(\"via\").value;\r\n\t\t\tconsole.log(comune+' , '+via);\r\n\t\t\t\tgeocoder.geocode( { 'address': comune+' , '+via}, function(results, status) {\r\n\t\t\t\tif (status == google.maps.GeocoderStatus.OK) {\r\n\t\t\t\t\tvar start = results[0].geometry.location;\r\n\t\t\t\t\tvar end = new google.maps.LatLng(41.137853, 14.456603);\r\n\t\t\t\t\tcalcRoute(start,end);\r\n\t\t\t\t} else {\r\n\t\t\t\t\talert(\"La geocodifica non \u00e8 andata a buon fine per il seguente motivo : \" + status);\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t}\r\n\t\t\r\n\t\tfunction calcRoute(start,end) {\r\n\t\t\tvar request = {\r\n\t\t\t\torigin:start,\r\n\t\t\t\tdestination:end,\r\n\t\t\t\ttravelMode: google.maps.TravelMode.DRIVING\r\n\t\t\t};\r\n\t\t\t\r\n\t\t\tdirectionsService.route(request, function(response, status) {\r\n\t\t\t\tif (status == google.maps.DirectionsStatus.OK) {\r\n\t\t\t\t\tdirectionsDisplay.setDirections(response);\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t}\r\n\t<\/script>\r\n\t<div id=\"map_canvas\" style=\"width:100%; height:350px;\">&nbsp;<\/div>\r\n\t<script type=\"text\/javascript\"> initialize(); <\/script>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1001002,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"ngg_post_thumbnail":0,"footnotes":""},"class_list":["post-99","page","type-page","status-publish","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.1.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>where are we - CO.EL.TE<\/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:\/\/coelte.net\/en\/where-we-are\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"where are we - CO.EL.TE\" \/>\n<meta property=\"og:url\" content=\"https:\/\/coelte.net\/en\/where-we-are\/\" \/>\n<meta property=\"og:site_name\" content=\"CO.EL.TE\" \/>\n<meta property=\"article:modified_time\" content=\"2014-07-09T10:35:43+00:00\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/coelte.net\/en\/where-we-are\/\",\"url\":\"https:\/\/coelte.net\/en\/where-we-are\/\",\"name\":\"where are we - CO.EL.TE\",\"isPartOf\":{\"@id\":\"https:\/\/coelte.net\/#website\"},\"datePublished\":\"2014-07-09T07:55:40+00:00\",\"dateModified\":\"2014-07-09T10:35:43+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/coelte.net\/en\/where-we-are\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/coelte.net\/en\/where-we-are\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/coelte.net\/en\/where-we-are\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/coelte.net\/en\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"where are we\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/coelte.net\/#website\",\"url\":\"https:\/\/coelte.net\/\",\"name\":\"CO.EL.TE\",\"description\":\"Costruzioni Elettroniche Telesine\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/coelte.net\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"where are we - CO.EL.TE","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:\/\/coelte.net\/en\/where-we-are\/","og_locale":"en_US","og_type":"article","og_title":"where are we - CO.EL.TE","og_url":"https:\/\/coelte.net\/en\/where-we-are\/","og_site_name":"CO.EL.TE","article_modified_time":"2014-07-09T10:35:43+00:00","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/coelte.net\/en\/where-we-are\/","url":"https:\/\/coelte.net\/en\/where-we-are\/","name":"where are we - CO.EL.TE","isPartOf":{"@id":"https:\/\/coelte.net\/#website"},"datePublished":"2014-07-09T07:55:40+00:00","dateModified":"2014-07-09T10:35:43+00:00","breadcrumb":{"@id":"https:\/\/coelte.net\/en\/where-we-are\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/coelte.net\/en\/where-we-are\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/coelte.net\/en\/where-we-are\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/coelte.net\/en\/"},{"@type":"ListItem","position":2,"name":"where are we"}]},{"@type":"WebSite","@id":"https:\/\/coelte.net\/#website","url":"https:\/\/coelte.net\/","name":"CO.EL.TE","description":"Costruzioni Elettroniche Telesine","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/coelte.net\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/coelte.net\/en\/wp-json\/wp\/v2\/pages\/99","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/coelte.net\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/coelte.net\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/coelte.net\/en\/wp-json\/wp\/v2\/users\/1001002"}],"replies":[{"embeddable":true,"href":"https:\/\/coelte.net\/en\/wp-json\/wp\/v2\/comments?post=99"}],"version-history":[{"count":3,"href":"https:\/\/coelte.net\/en\/wp-json\/wp\/v2\/pages\/99\/revisions"}],"predecessor-version":[{"id":148,"href":"https:\/\/coelte.net\/en\/wp-json\/wp\/v2\/pages\/99\/revisions\/148"}],"wp:attachment":[{"href":"https:\/\/coelte.net\/en\/wp-json\/wp\/v2\/media?parent=99"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}