File: example.html

Recommend this page to a friend!
  Classes of David Castillo  >  Google Maps Big Distance Matrix  >  example.html  >  Download  
File: example.html
Role: Example script
Content type: text/plain
Description: Example of usage
Class: Google Maps Big Distance Matrix
Get Google Maps distance matrix for many locations
Author: By
Last change: JS in separated file
Date: 7 years ago
Size: 1,465 bytes
 

Contents

Class file image Download
<!DOCTYPE html>
<html lang="es">
  	<head>
		<meta charset="utf-8">
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
		<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
		<title>GMaps v3 - Big Distance Matrix</title>
		<link href="css/bootstrap.min.css" rel="stylesheet">
	</head>
	<body class="roboto">
		<div class="container">
			<h3>GMaps API v3 - Big Distance Matrix</h3>
			<div class="row">
				<div class="col-md-12">
					<table class="table table-responsive table-striped table-bordered table-hover" id="table_route_matrix"></table>
				</div>
			</div>
			<div class="row">
				<div class="col-md-12 text-right">
					<button class="btn btn-success" id="btnExport">Export Data</button>
				</div>
			</div>
			<div class="row">
				<div class="col-md-12">
					<div id="export_data_div"></div>
				</div>
			</div>
			<div class="row">
				<div class="col-md-12">
					<div id="console_route_matrix"></div>
				</div>
			</div>
		</div>
		<script type="application/javascript" src="js/jquery.min.js"></script>
		<script type="application/javascript" src="js/json2.min.js"></script>
		<script type="application/javascript" src="https://maps.googleapis.com/maps/api/js?v=3"></script>
		<script type="application/javascript" src="gmaps-distancematrix.js"></script>
		<script type="application/javascript" src="example.js"></script>
	</body>
</html>