code: function routeType(route) {
  	var fields = Object.keys(RouteTypeFields);
  	for (var i = 0, len = fields.length; i < len; i++) {
  		var field = fields[i];
  		if (route[field]) {
  			return RouteTypeFields[field];
  		}
  	}
  	return 'unknown';
  }
docs: Get the type of a route