2�_�Ԃ̋��������߂�
�i���ӁI�j���̋L���́A��API�ł���Google Maps API version 2������������̂ł��Bversion 2�̗��p�͐�������Ă��Ȃ��̂ŁA�Ӑ}�I�ɋ��o�[�W�����̏���T���Ă��Ȃ��ꍇ�́A�V�����o�[�W�����̉���������������B
�����ł́AGLanLng��distanceFrom�𗘗p����2�_�Ԃ̋������v��������@������������Ǝv���܂��B
�T���v��
���̃T���v���ł́A���������߂Ă���_���킩��₷�����邽�߂�GPolyline�Ő��������Ă��܂��B ���̈������Ɋւ��ẮuGPolyline�Ő��������v�������������B
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:v="urn:schemas-microsoft-com:vml">
<head>
<script src="http://maps.google.com/maps?file=api&v=2&key=aaaa"
type="text/javascript" charset="UTF-8"></script>
<style type="text/css">
v\:* {
behavior:url(#default#VML);
}
</style>
</head>
<body>
<div id="map" style="width:450px; height:400px"></div>
<script type="text/javascript">
//<![CDATA[
if (GBrowserIsCompatible()) {
var map = new GMap2(document.getElementById("map"));
map.setCenter(new GLatLng(36.033333, 139.15), 11);
var points = [];
points[0] = new GLatLng(36.060, 139.15);
points[1] = new GLatLng(36.020, 139.15);
var polyline = new GPolyline(points);
map.addOverlay(polyline);
var distance = points[0].distanceFrom(points[1]);
map.openInfoWindow(points[0], distance + " meters");
}
//]]>
</script>
</body>
</html>
distanceFrom��2�_�Ԃ̋��������[�g���P�ʂŕԂ��܂��B �������A������l�ɂ�0.3���قǂ̌덷�����邻���ł��B
��L�T���v���ł́A����ꂽ����(���[�g��)��openInfoWindow�ŕ\�����Ă��܂��B
�\����
�\����ł��B