', "description": '

\0

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": '1', "description": '

1

1

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

',"id":'' },{"is_start_end": 2,"typeflag": 1,"lat": '1', "lng": '1',"title": '\0', "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

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

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

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": '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

1

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

1

',"id":'' },{"is_start_end": 1,"title": 'Noida, Uttar Pradesh, India', "lat": '28.535522', "lng": '77.3910381', "description": 'Noida, Uttar Pradesh, 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(28.535522,77.3910381); var dest = new google.maps.LatLng(28.535522,77.3910381); 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


  • The Wettest Trail Ever: The Road To Kaza

    1498116180

    Start Destination: Noida, Uttar Pradesh, India    End Destination: Noida, Uttar Pradesh, India
    Distance: 1 m    Bike: Royal Enfield ,
    Start Date: 07/01/2016    End Date: 07/10/2016

    In trying to check another destination off my list, I experienced one of the wettest trips of my life. The trip wasn’t exactly planned, but not really spontaneous. The trail we took was a 9 day journey along Noida-Narkanda-Reckong Peo-Kalpa-Nako-Tabo-Kaza(Spiti Valley)-Kunzum Paas- Batal-Chandratal- Rohtang Paas - Manali- Noida

    We started planning 12 days before the trip. Our top priority- we finalized the routes, blocked the dated and prepared our rides (Bullets). Our excitement was as high as the peaks of the Himalayas. Booze was the final thing we packed. Kidding, it was one of the first things; the final round included basic and useful medicine, health support, and dry fruits, water and rain coats.

    The ride was difficult from the get-go. None of the patches in the road were smooth, as we rode in the rain from day 1. The only stretch that didn’t give us any trouble was from Kaza to Chandratal on Day 7. However the journey from Narkanda to Kalpa was the worst. Heavy rains on Day 1 and Day 2 had caused us lot of trouble and wasted time, but with our essential gear we managed to best the weather, despite the harsh conditions. Strong winds on Day 7 in Batal, not to mention the temperature was around 2 degrees, really hampered our journey, but also urged us to move on. Crossing rivulets and open drains on day 8 from Batal towards Rohtang Paas was one hell of an experience. And, we realized, the uphill road with over a foot of water is called 'Pagal Nalla' for a reason.

    There were many scenic stops on the way, which came as a great relief. The Falling Mountains Road in the Kinnaur Valley was one of the few good stops; the loops after Nako towards Tabo were the best, beside the Kunzum Stupas.

    After the trip, the condition of my bike was great considering the terrain. Only that my bike's rear brake shoes were gone, and it was covered in dirt and grime, but that had its own charm, as it had just conquered one of the toughest terrains in the country.

    What I learned (and also advise future riders to do), is just enjoy the journey; plan according to the weather. Prepare your bikes or cars well, as getting a mechanic is very difficult in the area. Also, know your bike’s working and also the type of roads that you’ll be traveling on. If you aren’t even slightly initiated, it becomes pretty cumbersome.

    PIT STOPS

    1