Short-Term Rental Regulation Checker

Short-Term Rental Regulation Checker

Check Local STR Rules

Select a city to get an overview of its short-term rental (STR) regulations. This information is for guidance only.

Disclaimer: Regulations change frequently. This is not legal advice. Always verify information with the official city government website before making any decisions.

No information available for this city.

'; } else { data.rules.forEach(rule => { const ruleCard = `

${rule.title}

${rule.desc}

`; resultsList.innerHTML += ruleCard; }); } } // --- PDF GENERATION --- function generatePdf() { const { jsPDF } = window.jspdf; const content = document.getElementById('pdf-content'); html2canvas(content, { scale: 2, backgroundColor: '#ffffff' }).then(canvas => { const imgData = canvas.toDataURL('image/png'); const pdf = new jsPDF({ orientation: 'portrait', unit: 'pt', format: 'a4' }); const pdfWidth = pdf.internal.pageSize.getWidth(); const canvasWidth = canvas.width; const canvasHeight = canvas.height; const ratio = canvasWidth / canvasHeight; const imgHeight = (pdfWidth - 40) / ratio; pdf.addImage(imgData, 'PNG', 20, 20, pdfWidth - 40, imgHeight); pdf.save('Short-Term-Rental-Regulations.pdf'); }).catch(err => { console.error("PDF generation failed:", err); }); } pdfDownloadButton.addEventListener('click', generatePdf); });
Scroll to Top