Frage

I am using this example: http://gmaps-samples-v3.googlecode.com/svn/trunk/transit/transit.html but when I modified the code with the info related to my location, the departure code is not working. I only changed the origin and the destination.

This is the page with my code: http://goo.gl/fgmB9e

Any advice or suggestion?

War es hilfreich?

Lösung

I replaced the line:

var tzOffset = (now.getTimezoneOffset() + 60) * 60 * 1000;

with:

var tzOffset = now.getTimezoneOffset();

and it looks like working properly.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top