Witam
Na
http://serwis.magazynyinternetowe.pl/ znalazłem artykuł opisujący tworzenie narzedzią do wytyczania tras na podstawie Google Maps, tylko że nie działający. Proszę o pomoc.
Ps Czy ktoś wie w jaki sposób pobrać szerokość i gługość geograficzna z Google Maps korzystajać z adresowania "Dworzec Centralny, Warszawa"??
<!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"> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2"> <title>GeoFinder - Google Maps JavaScript API Example
</title> <script src="http://maps.google.com/maps?file=api&v=2&key=ABQIAAAArcTI4AUms-Ap0pzyv8VmiRRdludAuV2N6ZNTdeB76hcXJHnZNBQrzcKEIAzMpfYBL9pOLLzjcMznMQ" type="text/javascript"></script>
<script type="text/javascript"> //<![CDATA[
var tim = 1000;
var geodecoder = null;
var map = null;
function load() {
if (GBrowserIsCompatible()) {
map = new GMap2(document.getElementById("map"));
geocoder = new GClientGeocoder();
makeRoute('Dworzec Centralny, Warszawa, Poland', 'Uniwersytet Warszawski, Warszawa, Poland');
}
}
function makeRoute(fromAddress, toAddress){
directions = new GDirections(map, document.getElementById("directions"));
directions.load("from: " + fromAddress + " to: " + toAddress)
}
//]]>
<div id="map" style="width: 500px; height:400px"></div><br> <div id="directions" style="width: 500px; height: 400px;"></div>