| 環境設定の例: configuration.xml |
<Michi> <!--Configuration file for Michi--> <apiKey>YourAPIKey</apiKey> <defaultTitle>[ タイトル ]</defaultTitle> <templateFileName>template.html</templateFileName> <!--yearMode; 0=DEFAULT_YEAR, 1=実行時の年, 2=ファイルの作成年--> <yearMode>1</yearMode> <defaultYear>1999</defaultYear> <lowestVelocity>3.0</lowestVelocity> <highestVelocity>50.0</highestVelocity> <breakTimeSpan>1.5</breakTimeSpan> <graphWidth>700</graphWidth> <graphHeight>250</graphHeight> </Michi> |
| テンプレートの例: template.html |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
<title><!--michi:title--> <!--michi:date--></title>
<!--<!--michi:version-->-->
<!--michi:script-->
</head>
<body onload="displayMap()" onUnload="GUnload()">
<div id="container" style="padding:10px; padding-top:50px; padding-bottom:50px; width: 1024px">
<h1><!--michi:title--></h1>
<h2><!--michi:date--></h2>
<div id="map" style="padding:10px; width:1004px; height:480px"></div>
<br /><br />
<div style="padding:10px">
<h3>トータル</h3>
<table bgcolor="#dddddd" cellspacing="1" cellpadding="5">
<tr bgcolor="#ffffff"><td>スタート</td><td>ゴール</td>
<td>総走行時間</td><td>総走行距離</td><td>平均速度</td><td>最高速度</td></tr>
<tr bgcolor="#ffffff"><td><!--michi:time-start--></td><td><!--michi:time-end--></td>
<td><!--michi:time-span--></td><td><!--michi:distance-all--> <!--michi:distance-unit--></td>
<td><!--michi:speed-average--> <!--michi:speed-unit--></td>
<td><!--michi:speed-max--> <!--michi:speed-unit--></td></tr>
</table>
</div>
<br /><br />
<!--michi:route-start-->
<div style="padding:10px">
<table bgcolor="#<!--michi:route-line-color-->" cellspacing="2" width="100%"><tr bgcolor="#ffffff"><td>
<h3><font color="#<!--michi:route-line-color-->">■</font> ルート: <!--michi:route-log-filename--></h3>
<table bgcolor="#dddddd" cellspacing="1" cellpadding="5">
<tr bgcolor="#ffffff"><td>スタート</td><td>ゴール</td><td>走行時間</td><td>走行距離</td>
<td>平均速度</td><td>最高速度</td></tr>
<tr bgcolor="#ffffff"><td><!--michi:route-time-start--></td><td><!--michi:route-time-end--></td>
<td><!--michi:route-time-span--></td><td><!--michi:route-distance-all--> <!--michi:distance-unit--></td>
<td><!--michi:route-speed-average--> <!--michi:speed-unit--></td>
<td><!--michi:route-speed-max--> <!--michi:speed-unit--></td></tr>
</table>
<div align="right">
<!--michi:route-graph-altitude--><br />
<!--michi:route-graph-speed-->
</div>
</td></tr></table>
</div>
<!--michi:route-padding-->
<br /><br />
<!--michi:route-end-->
<div align="right">
<!--michi:link-page-->
</div>
</div>
</body>
</html>
|