From: maxious Date: Wed, 16 Mar 2011 07:24:01 +0000 Subject: More lax geolocation X-Git-Url: https://maxious.lambdacomplex.org/git/?p=busui.git&a=commitdiff&h=c6a81e7cb2be952cfca5805d5af6f8ce0bf70b6c --- More lax geolocation --- --- a/common-template.inc.php +++ b/common-template.inc.php @@ -65,7 +65,12 @@ } if (navigator.geolocation) { - navigator.geolocation.getCurrentPosition(success, error); +var options = { + enableHighAccuracy: false, + timeout: 60000, + maximumAge: 10000 +} + navigator.geolocation.getCurrentPosition(success, error, options); } "; --- a/index.php +++ b/index.php @@ -19,6 +19,7 @@
  • Timetables - Routes
  • Routes By Final Destination
  • Routes By Number
  • +
  • Stops By Suburb
  • Nearby Routes