Hi folks,
I've been migrating from google maps to gothere, due to the need for fare estimation on our site. and gothere provides it.
if (GBrowserIsCompatible()) {
var map = new GMap2(document.getElementById("map"));
map.setCenter(new GLatLng(1.362083, 103.819836), 11);
map.addControl(new GSmallMapControl());
map.addControl(new GScaleControl());
directions = new GDirections(map, document.getElementById("panel"));
directions.load("from: 018956 to: 049835", {travelMode: G_TRAVEL_MODE_TRANSIT});
console.log(directions.getDuration());
I got the following error:
Uncaught TypeError: Cannot read property 'Duration' of undefined
Please advice
Regards,
Anton