function getRouteNotes(div, routeID) {

        // For local testing add - _MMF_GLOBAL.api.server +
        var notes_url = _MMF_GLOBAL.api.url4 + "routes/get_route?consumer_key=" + _MMF_GLOBAL.api.key + "&o=json&notes_only=true&route_id="+routeID;
        var notes_html = '';

         $.getJSON(notes_url, function(data) {

            for (var i = 0; i < data.result.output.markers.length; i++) {

                var note = data.result.output.markers[i].notes,
                    note_type = data.result.output.markers[i].type,
                    distance_unit = "km",
                    distance = data.result.output.markers[i].meters,
                    additional_classes = '';
                
                // Convert Units
                if (_MMF_GLOBAL.units.distance && _MMF_GLOBAL.units.distance != "km") {
                    distance = (parseFloat(distance) / 1609.344);
                    distance = Math.round(distance*100)/100;
                    distance_unit = "mi";
                } else {
                    distance = (parseFloat(distance) / 1000);
                    distance = Math.round(distance*100)/100;
                }
				
				if(note_type > 2000) {
				    note_type = note_type - 2000;	
				} else if (note_type > 1000) {
				    note_type = note_type - 1000;	
				} else if (note_type == 1000 || note_type < 2) {
				    note_type = 0;
				}
				                
                var icon = '';

                try {
                    // Remove lat long from note
                    note  = note.replace(/:(.+)~/, " ");
                }
                catch(err) {
                    // There was an error
                }

                if (note === 0) {
                    // Note is 0
                } else {

                    try {
                        if (i%2 !== 0) {
                            additional_classes = additional_classes + ' odd';
                        }
                    }
                    catch(err) {
                        // There was an error
                    }
					
                    notes_html = notes_html + "<div class='mmf_note_row" +  additional_classes + "'><span class='mmf_note_distance'>"+distance+"</span><span class='mmf_note_distance_unit'>"+distance_unit+"</span>" + (note_type > 0 ? ("<img class='mmf_marker_img' src='" + _MMF_GLOBAL.route_icons['i'][note_type] + "' />") : "") + "<span class='mmf_note_text'>" + note + "&nbsp;</span></div>";

                }
            }

            if (notes_html !== '') {
                $(div).html(notes_html);
            } else {
                $(div).html("<br /><br />Notes could not be found for this route.<br /><br />");
            }

         });

}
