|
|
#1 (permalink) |
|
Neuer Benutzer
Registriert seit: 19.11.2010
Ort: Regensburg
Beiträge: 20
![]() |
Hi@Forum,
bin schoin fast am verzweifeln und brauch eure Hilfe. Seit Tagen funktioniert plötzlich die Berechnung der Route nicht mehr. Vorher hat Monate lang alles prima funktioniert. Bekomme immer den Error Code 602. Ich poste mal den Code. Bitte um Tips, woran es liegen könnte. Danke im voraus ! Code: <script src="http://maps.google.com/maps?file=api&v=2&key=ABQIAAAAyqPb90oxBYky pH6h458UjRTjF_3zdCnEr64hz8UUFKUt5oOgVxQ3ZdbgQGCJq4 dXtPpEWwjsCsiwXQ" type="text/javascript"></script> <style type="text/css"> v\:* { behavior:url(#default#VML); } table.directions th { background-color:#888888; } img { color: #000000; } </style> <script type="text/javascript"> //<![CDATA[ var map; var gdir; var geocoder = null; var addressMarker; function load() { if (GBrowserIsCompatible()) { map = new GMap2(document.getElementById("map")); map.addControl(new GLargeMapControl()); gdir = new GDirections(map, document.getElementById("directions")); GEvent.addListener(gdir, "load", onGDirectionsLoad); GEvent.addListener(gdir, "error", handleErrors); setDirections("Regensburg", "93138 Pielmühle, Regendorferstrasse 24", "de"); } } function setDirections(fromAddress, toAddress, locale) { gdir.load("from: " + fromAddress + " to: " + toAddress, { "locale": locale }); } function handleErrors(){ if (gdir.getStatus().code == G_GEO_UNKNOWN_ADDRESS) alert("Es wurde kein entsprechender Ort zu Ihrer Routenberechnung gefunden!\nError code: " + gdir.getStatus().code); else if (gdir.getStatus().code == G_GEO_SERVER_ERROR) alert("Leider konnte keine Route berechnet werden!\n Error code: " + gdir.getStatus().code); else if (gdir.getStatus().code == G_GEO_MISSING_QUERY) alert("Der HTTP q Parameter fehlt oder hat keinen Inhalt!\n Error code: " + gdir.getStatus().code); // else if (gdir.getStatus().code == G_UNAVAILABLE_ADDRESS) <--- Doc bug... this is either not defined, or Doc is wrong // alert("Der Geocode für die angegebene Adresse ist fehlerhaft.\n Error code: " + gdir.getStatus().code); else if (gdir.getStatus().code == G_GEO_BAD_KEY) alert("Der angegeben API Key ist für eine andere Domain. \n Error code: " + gdir.getStatus().code); else if (gdir.getStatus().code == G_GEO_BAD_REQUEST) alert("Leider ist ein Fehler bei der Routenberechnung aufgetreten.\n Error code: " + gdir.getStatus().code); else alert("Ein unbekannter Fehler trat auf!"); } function onGDirectionsLoad(){ } //]]> </script> <body onload="load()" onunload="GUnload()"> <h2>Bitte Startadresse eingeben:</h2> <form action="#" onsubmit="setDirections(this.from.value, this.to.value, this.locale.value); return false"> <table> <tr><th align="right">Start: </th> <td><input type="text" size="25" id="fromAddress" name="from" value=""/></td> <th align="right"> Zielort: </th> <td align="right"><input type="text" size="25" id="toAddress" name="to" value="93138 Pielmühle,Regendorferstrasse 24" /></td></tr> <tr><th>Sprachauswahl: </th> <td colspan="3"><select id="locale" name="locale"> <option value="de" selectet>Deutsch</option> <option value="en">English</option> <option value="fr">French</option> <option value="it">Italian</option> <option value="eu">Basque</option> <option value="nl">Dutch</option> </select> <input name="submit" type="submit" value="Routenplanung" /> </td></tr> </table> </form> <br/> <table class="directions"> <tr><th>Hier gehts lang:</th><th>Map</th></tr> <tr> <td valign="top"><div id="directions" style="width: 275px"></div></td> <td valign="top"><div id="map" style="width: 310px; height: 400px"></div></td> </tr> </table> |
|
|
|
|
|
#2 (permalink) |
|
Erfahrener Benutzer
Registriert seit: 24.09.2009
Ort: Etsdorf
Beiträge: 354
![]() |
Deine Adresse wird von Google nicht mehr erkannt, die mußt anscheinend jetzt anders eingeben. Das versuchts du am besten auf
93138 Pielmühle,Regendorferstrasse 24 Google Maps VG Robert PS.: Du mußt deinen Wohnort jetzt auf 93138 Pielmühle,Regendorfer Straße 24 ändern.
__________________
WebToDate Erweiterungen |
|
|
|
![]() |
| Lesezeichen |
| Themen-Optionen | Thema durchsuchen |
| Ansicht | |
|
|
Ähnliche Themen
|
||||
| Thema | Autor | Forum | Antworten | Letzter Beitrag |
| Passwortgeschützter Bereich funzt nicht | jimbo_319 | Web to Date 5.0 | 6 | 27.07.2011 15:05 |
| Google Maps und KML | gandalf | Web to Date 7.0 | 0 | 24.12.2010 04:10 |
| WTD basic: Formular funzt nicht richtig | louis.bergmann | Web to Date allgemein | 0 | 17.11.2010 11:41 |
| web to date 5.0 veröffentlichen geht plötzlich nicht mehr | ratlos | Web to Date 5.0 | 3 | 20.02.2010 13:33 |
| Google Maps | dialogius | Web to Date 6.0 | 3 | 30.12.2009 20:29 |