', "description": '

\0

1

',"id":'' },{"is_start_end": 2,"typeflag": 1,"lat": '1', "lng": '1',"title": '1', "description": '

1

1

',"id":'' },{"is_start_end": 2,"typeflag": 1,"lat": '1', "lng": '1',"title": '1', "description": '

1

\0

',"id":'' },{"is_start_end": 2,"typeflag": 1,"lat": '1', "lng": '1',"title": '1', "description": '

1

1

',"id":'' },{"is_start_end": 2,"typeflag": 1,"lat": '1', "lng": '1',"title": '1 ', "description": '

1

1

',"id":'' },{"is_start_end": 2,"typeflag": 1,"lat": '1', "lng": '1',"title": '1', "description": '

1

1

',"id":'' },{"is_start_end": 2,"typeflag": 1,"lat": '1', "lng": '1',"title": '1', "description": '

1

1

',"id":'' },{"is_start_end": 2,"typeflag": 1,"lat": '1', "lng": '1',"title": '1', "description": '

1

1

',"id":'' },{"is_start_end": 2,"typeflag": 1,"lat": '1', "lng": '1',"title": '1', "description": '

1

1

',"id":'' },{"is_start_end": 2,"typeflag": 1,"lat": '1', "lng": '1',"title": '', "description": '

\0

1

',"id":'' },{"is_start_end": 2,"typeflag": 1,"lat": '1', "lng": '1',"title": '1', "description": '

1

1

',"id":'' },{"is_start_end": 2,"typeflag": 1,"lat": '1', "lng": '1',"title": '1', "description": '

1

\0

',"id":'' },{"is_start_end": 2,"typeflag": 1,"lat": '1', "lng": '1',"title": '1', "description": '

1

1

',"id":'' },{"is_start_end": 2,"typeflag": 1,"lat": '1', "lng": '1',"title": '1 ', "description": '

1

1

',"id":'' },{"is_start_end": 2,"typeflag": 1,"lat": '1', "lng": '1',"title": '1', "description": '

1

1

',"id":'' },{"is_start_end": 2,"typeflag": 1,"lat": '1', "lng": '1',"title": '1', "description": '

1

1

',"id":'' },{"is_start_end": 2,"typeflag": 1,"lat": '1', "lng": '1',"title": '1', "description": '

1

1

',"id":'' },{"is_start_end": 2,"typeflag": 1,"lat": '1', "lng": '1',"title": '1', "description": '

1

1

',"id":'' },{"is_start_end": 2,"typeflag": 1,"lat": '1', "lng": '1',"title": '', "description": '

\"\'><

1

',"id":'' },{"is_start_end": 2,"typeflag": 1,"lat": '1', "lng": '1',"title": '1', "description": '

1

1

',"id":'' },{"is_start_end": 2,"typeflag": 1,"lat": '1', "lng": '1',"title": '1', "description": '

1

\"\'><

',"id":'' },{"is_start_end": 2,"typeflag": 1,"lat": '1', "lng": '1',"title": '1', "description": '

1

1

',"id":'' },{"is_start_end": 2,"typeflag": 1,"lat": '1', "lng": '1',"title": '', "description": '

1

',"id":'' },{"is_start_end": 2,"typeflag": 1,"lat": '1', "lng": '1',"title": '1', "description": '

1

',"id":'' },{"is_start_end": 2,"typeflag": 1,"lat": '1', "lng": '1',"title": '1', "description": '

1

1

',"id":'' },{"is_start_end": 2,"typeflag": 1,"lat": '1', "lng": '1',"title": '1', "description": '

1

1

',"id":'' },{"is_start_end": 2,"typeflag": 1,"lat": '1', "lng": '1',"title": '1', "description": '

1

1

',"id":'' },{"is_start_end": 2,"typeflag": 1,"lat": '1', "lng": '1',"title": '', "description": '

1

',"id":'' },{"is_start_end": 2,"typeflag": 1,"lat": '1', "lng": '1',"title": '1', "description": '

1

1

',"id":'' },{"is_start_end": 2,"typeflag": 1,"lat": '1', "lng": '1',"title": '1', "description": '

1

',"id":'' },{"is_start_end": 2,"typeflag": 1,"lat": '1', "lng": '1',"title": '1\">
', "description": '

1\">

1

',"id":'' },{"is_start_end": 2,"typeflag": 1,"lat": '1', "lng": '1',"title": '1', "description": '

1

1\">

',"id":'' },{"is_start_end": 2,"typeflag": 1,"lat": '1', "lng": '1',"title": '1', "description": '

1

1

',"id":'' },{"is_start_end": 2,"typeflag": 1,"lat": '1', "lng": '1',"title": '1', "description": '

1

1

',"id":'' },{"is_start_end": 2,"typeflag": 1,"lat": '1', "lng": '1',"title": '1', "description": '

1

1

',"id":'' },{"is_start_end": 2,"typeflag": 1,"lat": '1', "lng": '1',"title": '', "description": '

1

',"id":'' },{"is_start_end": 2,"typeflag": 1,"lat": '1', "lng": '1',"title": '1', "description": '

1

',"id":'' },{"is_start_end": 2,"typeflag": 1,"lat": '1', "lng": '1',"title": '1', "description": '

1

1

',"id":'' },{"is_start_end": 2,"typeflag": 1,"lat": '1', "lng": '1',"title": '1', "description": '

1

1

',"id":'' },{"is_start_end": 1,"title": 'Harsil, Uttarakhand 249135, India', "lat": '31.0373637', "lng": '78.737557', "description": 'Harsil, Uttarakhand 249135, India', "id": '' }]; var wps = []; /* var totalwps = '[]'; var totalwps = jQuery.parseJSON(totalwps); console.log(totalwps); var waypts = []; for (var i = 0; i < totalwps.length; i++) { if (totalwps[i]) { waypts.push({ //location: new google.maps.LatLng(totalwps[i].latitude, totalwps[i].longitude), location: totalwps[i].place+", IN", stopover: true }); } } console.log(waypts); */ var org = new google.maps.LatLng(30.31649,78.032195); var dest = new google.maps.LatLng(31.0373637,78.737557); var infoWindow = new google.maps.InfoWindow(); var lat_lng = new Array(); var latlngbounds = new google.maps.LatLngBounds(); //new google.maps.MarkerImage("https://www.trailsofindia.com/wp-content/uploads/trails/default-images/hotsopts_web.png",new google.maps.Size(30, 30)) for (i = 0; i < markers.length; i++) { var data = markers[i]; var newlat = data.lat; var newlng = data.lng; //console.log(newlat+'----'+newlng); var myLatlng = new google.maps.LatLng(newlat, newlng); lat_lng.push(myLatlng); // alert(lat_lng.push(myLatlng)); var icondata; //console.log(data); if(data.is_start_end != 2) { if(data.is_start_end == 0) { var icondata = { url : "https://www.trailsofindia.com/wp-content/uploads/trails/default-images/green_pin.png", scaledSize: new google.maps.Size(60, 60) }; } else { var icondata = { url : "https://www.trailsofindia.com/wp-content/uploads/trails/default-images/red_pin.png", scaledSize: new google.maps.Size(60, 60) }; } } else { if(data.typeflag == 1) { var icondata = { url : "https://www.trailsofindia.com/wp-content/uploads/trails/default-images/hotsopts_web.png", scaledSize: new google.maps.Size(60, 60) }; } else { var icondata = { url : "https://www.trailsofindia.com/wp-content/uploads/trails/default-images/orange_pin.png", scaledSize: new google.maps.Size(60, 60) }; } } var marker = new google.maps.Marker({ position: myLatlng, map: map, title: decodeURIComponent(data.title), icon: icondata }); latlngbounds.extend(marker.position); (function (marker, data) { google.maps.event.addListener(marker, "click", function (e) { infoWindow.setContent(decodeURIComponent(data.description)); infoWindow.open(map, marker); }); })(marker, data); } map.setCenter(latlngbounds.getCenter()); map.fitBounds(latlngbounds); //Loop and Draw Path Route between the Points on MAP var request = { origin: org, destination: dest, waypoints: wps, //waypoints: waypts, //optimizeWaypoints: true, //partial_match: true, travelMode: google.maps.DirectionsTravelMode.DRIVING }; var directionsService = new google.maps.DirectionsService(); directionsService.route(request, function (response, status) { console.log(status); if (status == google.maps.DirectionsStatus.OK) { directionsDisplay.setDirections(response); } else { //alert('failed to get directions'); console.log('failed to get directions'); } }); /** * Concatenates given lat and lng with an underscore and returns it. * This id will be used as a key of marker to cache the marker in markers object. * @param {!number} lat Latitude. * @param {!number} lng Longitude. * @return {string} Concatenated marker id. */ var getMarkerUniqueId = function (lat, lng) { return lat + '_' + lng; } /** * Creates an instance of google.maps.LatLng by given lat and lng values and returns it. * This function can be useful for getting new coordinates quickly. * @param {!number} lat Latitude. * @param {!number} lng Longitude. * @return {google.maps.LatLng} An instance of google.maps.LatLng object */ var getLatLng = function (lat, lng) { return new google.maps.LatLng(lat, lng); }; /** * Binds click event to given map and invokes a callback that appends a new marker to clicked location. */ $v = 0; var addMarker = google.maps.event.addListener(map, 'dblclick', function (e) { if ($v == 0) { var lat = e.latLng.lat(); // lat of clicked point var lng = e.latLng.lng(); // lng of clicked point var markerId = getMarkerUniqueId(lat, lng); // an that will be used to cache this marker in markers object. var marker = new google.maps.Marker({ position: getLatLng(lat, lng), map: map, id: 'marker_' + markerId }); $v = 1; document.getElementById("lat").value = lat; document.getElementById("long").value = lng; markers[markerId] = marker; // cache marker in markers object bindMarkerEvents(marker); // bind right click event to marker } }); /** * Binds right click event to given marker and invokes a callback function that will remove the marker from map. * @param {!google.maps.Marker} marker A google.maps.Marker instance that the handler will binded. */ var bindMarkerEvents = function (marker) { google.maps.event.addListener(marker, "rightclick", function (point) { var markerId = getMarkerUniqueId(point.latLng.lat(), point.latLng.lng()); // get marker id by using clicked point's coordinate var marker = markers[markerId]; // find marker //console.log(marker); //console.log(markerId); removeMarker(marker, markerId); // remove it $v = 0; }); }; /** * Removes given marker from map. * @param {!google.maps.Marker} marker A google.maps.Marker instance that will be removed. * @param {!string} markerId Id of marker. */ var removeMarker = function (marker, markerId) { marker.setMap(null); // set markers setMap to null to remove it from map delete markers[markerId]; // delete marker instance from markers object }; var dialog, form, lat = jQuery("#lat"), long = jQuery("#long"), title = jQuery("#title"), description = jQuery("#desc"), allFields = jQuery([]).add(lat).add(long).add(title).add(description), tips = jQuery(".validateTips"); function updateTips(t) { tips .text(t) .addClass("ui-state-highlight"); setTimeout(function () { tips.removeClass("ui-state-highlight", 1500); }, 500); } function checkLength(o, n, min, max) { if (o.val().length > max || o.val().length < min) { o.addClass("ui-state-error"); updateTips("Length of " + n + " must be between " + min + " and " + max + "."); return false; } else { return true; } } function addUser() { var valid = true; allFields.removeClass("ui-state-error"); valid = valid && checkLength(lat, "Latitude", 7, 100); valid = valid && checkLength(long, "Longitude", 7, 100); valid = valid && checkLength(title, "Title", 1, 100); valid = valid && checkLength(description, "Description", 1, 15000); if (valid) { dialog.dialog("close"); } return valid; } dialog = jQuery("#dialog-form").dialog({ autoOpen: false, height: 400, width: 350, modal: true, close: function () { allFields.removeClass("ui-state-error"); } });/* jQuery("#dvMap").on("dblclick", function () { jQuery("#dialog-form").css('display','block'); dialog.dialog("open"); }); */ jQuery("#cancel").click(function(){ dialog.dialog("close"); }) jQuery("#hssubmit").click(function(){ valid=addUser(); if(valid==false) return false; //event.preventDefault(); }); jQuery('#ms,#group_trail').change(function() { //console.log(jQuery(this).val()); //jQuery("#store_user").val(jQuery(this).val()); }).multipleSelect({ width: '100%' }); }); function canceltrail(id){ jQuery('#loader').css('display','block'); var ajaxurl=jQuery("#ajax_url").val(); jQuery.post( ajaxurl, { action: 'cancel_trail', id:id, }, function(response) { if(response){ jQuery('#loader').css('display','none'); jQuery(".hidebutton").remove(); } }); }

SHARE WITH YOUR FRIEND


SHARE WITH


  • Himalayan Diaries – This time HARSIL-GANGOTRI

    1498059291

    Start Destination: Dehradun, Uttarakhand, India    End Destination: Harsil, Uttarakhand 249135, India
    Distance: 216 km    Bike: Royal Enfield ,
    Start Date: 04/30/2017    End Date: 05/01/2017

    A Day With A Traveler


    Story by Danish Umar


     


    Route: Dehradoon-Suwakholi-Chinyalisaur-Uttarkashi-Bhatwari-Harsil-Gangotri

    Ride Time: 20 Hours (To and fro)

    On Sunday, 30th April, along with a few close friends, I took my first biking trip ever. It was a 20 hour ride both ways. There wasn’t exactly a plan; we had only 60 hours to complete the trip (delhi-gangotri-delhi), we have planned to take the rented bikes from Dehradun, and we didnt even made the booking for bikes. We decided to get the bikes on the spot, as number of riders was not even final at the time of leaving the delhi. The only thing planned was that we have to return Delhi by 2nd of May (morning). We rode out on a couple of Royal Enfield Himalayans.

    The journey was smooth in patches. Dehradoon - mussoorie (JP Gate) was smooth sailing, and with the weather being cooler and cleaner than Delhi, I got a whiff of the ‘fresh air’ that everyone keeps talking about. The Almos – Chinyalisour was good for the most part; the Uttarakashi – Harsil stretch was good, but not as great as the Harsil – Gangotri stretch. There was a newly constructed road, and there was still some work going on in the last few kilometers. There were also some bad patches, about 200metres to 1km along the route of Chinyalisour to uttarkashi

    The weather was a major factor in our trip. On the first day, heavy rain and hail caused long breaks in our journey. But since we we were on a tight schedule and were running out of time, we were forced to move when the pouring reduced to a drizzle after Gangnani. We  were  cold and drenched and tired. We didn’t even reach Harsil, and were forced to stay the night at Sukhi top (6-7 km before harsil). However on the second day, clear and pleasant weather motivated us to go to Gangotri and then return to dehradun on the same day. While the bad weather forced us to stop 7kms before our destination, the good weather allowed us to travel 280kms on the same day! I guess that is why weather conditions are important in the mountains and hill stations.

    Riding in the mountains for the first time is a pretty unique experience. Our bikes were pretty supportive all through the trip. They were in good condition but during the last leg of trip there were some issues in the braking system due to heating up. For anyone taking this route for the first time, I’d say carry rain gear as the weather is unpredictable on that trail, especially after uttarkashi. It can rain anytime. Also, keep an eye on the fuel meter. Petrol pumps along the route are hard to find and if you get stranded you’ll end up walking with your bike for a really long stretch. It’s advisable to check the fuel at Uttarkashi, since there are no petrol pumps in last 90 km of the route.
    Lastly,always move with your group. It is easy to get lost. Ride safe.

    PIT STOPS



    1