{"id":796,"date":"2023-09-13T14:06:32","date_gmt":"2023-09-13T14:06:32","guid":{"rendered":"https:\/\/tenerifeentaxi.es\/Taxi-Santa-Cruz\/?page_id=796"},"modified":"2025-06-22T23:26:27","modified_gmt":"2025-06-22T23:26:27","slug":"calculadora-de-precios","status":"publish","type":"page","link":"https:\/\/tenerifeentaxi.es\/Taxi-Santa-Cruz\/calculadora-de-precios\/","title":{"rendered":"Calculadora de Precios"},"content":{"rendered":"\n<p><\/p>\n\n\n\n<!-- NUEVA CALCULADORA CON GOOGLE MAPS INTEGRADO -->\n<!DOCTYPE html>\n<html>\n<head>\n  <title>Calculadora Taxi Tenerife con Google Maps<\/title>\n  <meta charset=\"UTF-8\">\n  <style>\n    .calculadora-taxi {\n      max-width: 500px;\n      margin: 30px auto;\n      padding: 20px;\n      border: 2px solid #0074D9;\n      border-radius: 10px;\n      font-family: Arial, sans-serif;\n      background: #f9f9f9;\n    }\n\n    .calculadora-taxi h2 {\n      text-align: center;\n      color: #0074D9;\n    }\n\n    .calculadora-taxi label {\n      display: block;\n      margin-top: 10px;\n      font-weight: bold;\n    }\n\n    .calculadora-taxi input, .calculadora-taxi select {\n      width: 100%;\n      padding: 8px;\n      margin-top: 5px;\n      border-radius: 5px;\n      border: 1px solid #ccc;\n    }\n\n    .calculadora-taxi button {\n      margin-top: 15px;\n      width: 100%;\n      background-color: #0074D9;\n      color: white;\n      border: none;\n      padding: 10px;\n      font-size: 16px;\n      border-radius: 5px;\n      cursor: pointer;\n    }\n\n    .calculadora-taxi button:hover {\n      background-color: #005fa3;\n    }\n\n    .calculadora-taxi p {\n      text-align: center;\n      font-size: 18px;\n      margin-top: 15px;\n      color: green;\n      font-weight: bold;\n    }\n\n    #map {\n      height: 400px;\n      width: 100%;\n      margin-top: 20px;\n    }\n  <\/style>\n<\/head>\n<body>\n<div class=\"calculadora-taxi\">\n  <h2>Calcula tu tarifa de taxi<\/h2>\n\n  <label>Punto de inicio:<\/label>\n  <input id=\"origen\" type=\"text\" placeholder=\"Ej. Hotel Silken Atlantida\" \/>\n\n  <label>Destino:<\/label>\n  <input id=\"destino\" type=\"text\" placeholder=\"Ej. Aeropuerto Tenerife Norte\" \/>\n\n  <label>Horario:<\/label>\n  <select id=\"horario\">\n    <option value=\"dia\">Laborable (06:00 &#8211; 22:00)<\/option>\n    <option value=\"noche\">Nocturno (22:00 &#8211; 06:00) \/ Festivo<\/option>\n  <\/select>\n\n  <label><input type=\"checkbox\" id=\"radio\" \/> Servicio de Radio Taxi<\/label>\n  <label><input type=\"checkbox\" id=\"aeropuerto\" \/> Destino Aeropuerto\/Puerto<\/label>\n\n  <button onclick=\"calcularDistancia()\">Calcular Precio<\/button>\n\n  <p id=\"resultado\"><\/p>\n  <div id=\"map\"><\/div>\n<\/div>\n\n<script>\nlet directionsService;\nlet directionsRenderer;\nlet map;\n\nfunction initMap() {\n  map = new google.maps.Map(document.getElementById(\"map\"), {\n    zoom: 10,\n    center: { lat: 28.2916, lng: -16.6291 }\n  });\n\n  directionsService = new google.maps.DirectionsService();\n  directionsRenderer = new google.maps.DirectionsRenderer();\n  directionsRenderer.setMap(map);\n\n  if (navigator.geolocation) {\n    navigator.geolocation.getCurrentPosition(function(position) {\n      const userLocation = {\n        lat: position.coords.latitude,\n        lng: position.coords.longitude\n      };\n\n      const options = {\n        bounds: new google.maps.LatLngBounds(userLocation),\n        componentRestrictions: { country: 'es' }\n      };\n\n      new google.maps.places.Autocomplete(document.getElementById('origen'), options);\n      new google.maps.places.Autocomplete(document.getElementById('destino'), options);\n    }, function() {\n      const fallbackOptions = { componentRestrictions: { country: 'es' } };\n      new google.maps.places.Autocomplete(document.getElementById('origen'), fallbackOptions);\n      new google.maps.places.Autocomplete(document.getElementById('destino'), fallbackOptions);\n    });\n  } else {\n    const fallbackOptions = { componentRestrictions: { country: 'es' } };\n    new google.maps.places.Autocomplete(document.getElementById('origen'), fallbackOptions);\n    new google.maps.places.Autocomplete(document.getElementById('destino'), fallbackOptions);\n  }\n}\n\nfunction calcularDistancia() {\n  const origen = document.getElementById('origen').value;\n  const destino = document.getElementById('destino').value;\n  const horario = document.getElementById('horario').value;\n  const radio = document.getElementById('radio').checked ? 0.60 : 0;\n  const aeropuerto = document.getElementById('aeropuerto').checked ? 2.10 : 0;\n\n  if (!origen || !destino) {\n    document.getElementById('resultado').innerText = \"Por favor, introduce origen y destino.\";\n    return;\n  }\n\n  const request = {\n    origin: origen,\n    destination: destino,\n    travelMode: google.maps.TravelMode.DRIVING\n  };\n\n  directionsService.route(request, function(response, status) {\n    if (status === 'OK') {\n      directionsRenderer.setDirections(response);\n      const leg = response.routes[0].legs[0];\n      const distanciaKm = leg.distance.value \/ 1000;\n      const duracion = leg.duration.text;\n      calcularPrecioFinal(distanciaKm, horario, radio, aeropuerto, duracion);\n    } else {\n      document.getElementById('resultado').innerText = \"Error al calcular la distancia.\";\n    }\n  });\n}\n\nfunction calcularPrecioFinal(distancia, horario, radio, aeropuerto, duracion) {\n  let minimo, precioKm;\n  if (horario === \"dia\") {\n    minimo = 3.85;\n    precioKm = 1.35;\n  } else {\n    minimo = 4.25;\n    precioKm = 1.55;\n  }\n\n  let precio;\n  if (distancia <= 1.5) {\n    precio = minimo;\n  } else {\n    precio = minimo + ((distancia - 1.5) * precioKm);\n  }\n\n  precio += 2.00 + radio + aeropuerto;\n  precio = Math.round(precio * 20) \/ 20;\n\n  document.getElementById('resultado').innerText = `Distancia: ${distancia.toFixed(2)} km\\nTiempo estimado: ${duracion}\\n\ud83d\udcb6 Precio estimado: ${precio.toFixed(2)} \u20ac`;\n}\n<\/script>\n\n<script async\n  src=\"https:\/\/maps.googleapis.com\/maps\/api\/js?key=AIzaSyCJitaKLfo3TA0OQmwQpsIWtENWAucQmKs&#038;libraries=places&#038;callback=initMap\">\n<\/script>\n<\/body>\n<\/html>\n\n","protected":false},"excerpt":{"rendered":"<p>Calculadora Taxi Tenerife con Google Maps Calcula tu tarifa de taxi Punto de inicio: Destino: Horario: Laborable (06:00 &#8211; 22:00)Nocturno (22:00 &#8211; 06:00) \/ Festivo Servicio de Radio Taxi Destino Aeropuerto\/Puerto Calcular Precio<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"two_page_speed":{"previous_score":{"desktop_score":85,"desktop_tti":"3.7\u00a0","mobile_score":55.00000000000001,"mobile_tti":"19.3\u00a0","date":"01.02.2026 09:42:15 pm","status":"completed"}},"footnotes":""},"class_list":["post-796","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>Calculadora de Precios - Tenerife en Taxi<\/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:\/\/tenerifeentaxi.es\/Taxi-Santa-Cruz\/calculadora-de-precios\/\" \/>\n<meta property=\"og:locale\" content=\"es_ES\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Calculadora de Precios - Tenerife en Taxi\" \/>\n<meta property=\"og:description\" content=\"Calculadora Taxi Tenerife con Google Maps Calcula tu tarifa de taxi Punto de inicio: Destino: Horario: Laborable (06:00 &#8211; 22:00)Nocturno (22:00 &#8211; 06:00) \/ Festivo Servicio de Radio Taxi Destino Aeropuerto\/Puerto Calcular Precio\" \/>\n<meta property=\"og:url\" content=\"https:\/\/tenerifeentaxi.es\/Taxi-Santa-Cruz\/calculadora-de-precios\/\" \/>\n<meta property=\"og:site_name\" content=\"Tenerife en Taxi\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/Tenerifeentaxi\" \/>\n<meta property=\"article:modified_time\" content=\"2025-06-22T23:26:27+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/tenerifeentaxi.es\/wp-content\/uploads\/2022\/12\/Logo2.png\" \/>\n\t<meta property=\"og:image:width\" content=\"401\" \/>\n\t<meta property=\"og:image:height\" content=\"402\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:site\" content=\"@Tenerifeentaxi\" \/>\n<meta name=\"twitter:label1\" content=\"Tiempo de lectura\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minuto\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/tenerifeentaxi.es\/Taxi-Santa-Cruz\/calculadora-de-precios\/\",\"url\":\"https:\/\/tenerifeentaxi.es\/Taxi-Santa-Cruz\/calculadora-de-precios\/\",\"name\":\"Calculadora de Precios - Tenerife en Taxi\",\"isPartOf\":{\"@id\":\"https:\/\/tenerifeentaxi.es\/Taxi-Santa-Cruz\/#website\"},\"datePublished\":\"2023-09-13T14:06:32+00:00\",\"dateModified\":\"2025-06-22T23:26:27+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/tenerifeentaxi.es\/Taxi-Santa-Cruz\/calculadora-de-precios\/#breadcrumb\"},\"inLanguage\":\"es\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/tenerifeentaxi.es\/Taxi-Santa-Cruz\/calculadora-de-precios\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/tenerifeentaxi.es\/Taxi-Santa-Cruz\/calculadora-de-precios\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Portada\",\"item\":\"https:\/\/tenerifeentaxi.es\/Taxi-Santa-Cruz\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Calculadora de Precios\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/tenerifeentaxi.es\/Taxi-Santa-Cruz\/#website\",\"url\":\"https:\/\/tenerifeentaxi.es\/Taxi-Santa-Cruz\/\",\"name\":\"Tenerife en Taxi\",\"description\":\"Servicio de Taxi en Santa Cruz de Tenerife\",\"publisher\":{\"@id\":\"https:\/\/tenerifeentaxi.es\/Taxi-Santa-Cruz\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/tenerifeentaxi.es\/Taxi-Santa-Cruz\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"es\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/tenerifeentaxi.es\/Taxi-Santa-Cruz\/#organization\",\"name\":\"Tenerife en Taxi\",\"url\":\"https:\/\/tenerifeentaxi.es\/Taxi-Santa-Cruz\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"es\",\"@id\":\"https:\/\/tenerifeentaxi.es\/Taxi-Santa-Cruz\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/tenerifeentaxi.es\/wp-content\/uploads\/2021\/11\/Logo2.jpg\",\"contentUrl\":\"https:\/\/tenerifeentaxi.es\/wp-content\/uploads\/2021\/11\/Logo2.jpg\",\"width\":401,\"height\":402,\"caption\":\"Tenerife en Taxi\"},\"image\":{\"@id\":\"https:\/\/tenerifeentaxi.es\/Taxi-Santa-Cruz\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/Tenerifeentaxi\",\"https:\/\/x.com\/Tenerifeentaxi\",\"https:\/\/www.instagram.com\/tenerifeentaxi\/\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Calculadora de Precios - Tenerife en Taxi","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:\/\/tenerifeentaxi.es\/Taxi-Santa-Cruz\/calculadora-de-precios\/","og_locale":"es_ES","og_type":"article","og_title":"Calculadora de Precios - Tenerife en Taxi","og_description":"Calculadora Taxi Tenerife con Google Maps Calcula tu tarifa de taxi Punto de inicio: Destino: Horario: Laborable (06:00 &#8211; 22:00)Nocturno (22:00 &#8211; 06:00) \/ Festivo Servicio de Radio Taxi Destino Aeropuerto\/Puerto Calcular Precio","og_url":"https:\/\/tenerifeentaxi.es\/Taxi-Santa-Cruz\/calculadora-de-precios\/","og_site_name":"Tenerife en Taxi","article_publisher":"https:\/\/www.facebook.com\/Tenerifeentaxi","article_modified_time":"2025-06-22T23:26:27+00:00","og_image":[{"width":401,"height":402,"url":"https:\/\/tenerifeentaxi.es\/wp-content\/uploads\/2022\/12\/Logo2.png","type":"image\/png"}],"twitter_card":"summary_large_image","twitter_site":"@Tenerifeentaxi","twitter_misc":{"Tiempo de lectura":"1 minuto"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/tenerifeentaxi.es\/Taxi-Santa-Cruz\/calculadora-de-precios\/","url":"https:\/\/tenerifeentaxi.es\/Taxi-Santa-Cruz\/calculadora-de-precios\/","name":"Calculadora de Precios - Tenerife en Taxi","isPartOf":{"@id":"https:\/\/tenerifeentaxi.es\/Taxi-Santa-Cruz\/#website"},"datePublished":"2023-09-13T14:06:32+00:00","dateModified":"2025-06-22T23:26:27+00:00","breadcrumb":{"@id":"https:\/\/tenerifeentaxi.es\/Taxi-Santa-Cruz\/calculadora-de-precios\/#breadcrumb"},"inLanguage":"es","potentialAction":[{"@type":"ReadAction","target":["https:\/\/tenerifeentaxi.es\/Taxi-Santa-Cruz\/calculadora-de-precios\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/tenerifeentaxi.es\/Taxi-Santa-Cruz\/calculadora-de-precios\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Portada","item":"https:\/\/tenerifeentaxi.es\/Taxi-Santa-Cruz\/"},{"@type":"ListItem","position":2,"name":"Calculadora de Precios"}]},{"@type":"WebSite","@id":"https:\/\/tenerifeentaxi.es\/Taxi-Santa-Cruz\/#website","url":"https:\/\/tenerifeentaxi.es\/Taxi-Santa-Cruz\/","name":"Tenerife en Taxi","description":"Servicio de Taxi en Santa Cruz de Tenerife","publisher":{"@id":"https:\/\/tenerifeentaxi.es\/Taxi-Santa-Cruz\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/tenerifeentaxi.es\/Taxi-Santa-Cruz\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"es"},{"@type":"Organization","@id":"https:\/\/tenerifeentaxi.es\/Taxi-Santa-Cruz\/#organization","name":"Tenerife en Taxi","url":"https:\/\/tenerifeentaxi.es\/Taxi-Santa-Cruz\/","logo":{"@type":"ImageObject","inLanguage":"es","@id":"https:\/\/tenerifeentaxi.es\/Taxi-Santa-Cruz\/#\/schema\/logo\/image\/","url":"https:\/\/tenerifeentaxi.es\/wp-content\/uploads\/2021\/11\/Logo2.jpg","contentUrl":"https:\/\/tenerifeentaxi.es\/wp-content\/uploads\/2021\/11\/Logo2.jpg","width":401,"height":402,"caption":"Tenerife en Taxi"},"image":{"@id":"https:\/\/tenerifeentaxi.es\/Taxi-Santa-Cruz\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/Tenerifeentaxi","https:\/\/x.com\/Tenerifeentaxi","https:\/\/www.instagram.com\/tenerifeentaxi\/"]}]}},"_links":{"self":[{"href":"https:\/\/tenerifeentaxi.es\/Taxi-Santa-Cruz\/wp-json\/wp\/v2\/pages\/796","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tenerifeentaxi.es\/Taxi-Santa-Cruz\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/tenerifeentaxi.es\/Taxi-Santa-Cruz\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/tenerifeentaxi.es\/Taxi-Santa-Cruz\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tenerifeentaxi.es\/Taxi-Santa-Cruz\/wp-json\/wp\/v2\/comments?post=796"}],"version-history":[{"count":6,"href":"https:\/\/tenerifeentaxi.es\/Taxi-Santa-Cruz\/wp-json\/wp\/v2\/pages\/796\/revisions"}],"predecessor-version":[{"id":951,"href":"https:\/\/tenerifeentaxi.es\/Taxi-Santa-Cruz\/wp-json\/wp\/v2\/pages\/796\/revisions\/951"}],"wp:attachment":[{"href":"https:\/\/tenerifeentaxi.es\/Taxi-Santa-Cruz\/wp-json\/wp\/v2\/media?parent=796"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}