A modular solution for exporting maps from the Beer Sheva Hospital Accessibility Analysis tool. This README contains comprehensive instructions for setting up the analysis tool and using the export functionality.
- Node.js (v14 or higher)
- Python (for local web server)
- OpenTripPlanner (OTP) server (for routing analysis)
This locally hosted application requires running three separate processes simultaneously, each in its own terminal window:
- OpenTripPlanner (OTP) Server - For routing calculations
- Export Server - For image and HTML generation
- Local Web Server - To serve your HTML application
# Navigate to the OTP directory
cd /Users/noamgal/Downloads/NUR/otp_project
# Run the OTP server
java -Xmx8G -jar otp-2.5.0-shaded.jar --load --serve graphs
# Navigate to the export server directory
cd map-export-server
# Install dependencies (first time only)
npm install
# Start the server
npm start
# Navigate to the directory containing your HTML file
cd hospital-analysis
# Start a Python web server
python -m http.server 8000
Open your browser and go to:
http://localhost:8000/hosp_access.html
The system now supports two export formats:
- Image Export (PNG) - For static image exports including all analysis points
- Interactive HTML Export - For interactive visualization with all functionality
- Run the analysis by clicking "Run Analysis"
- Once complete, go to the "Export" tab
- Choose your preferred export format:
- "Export as PNG" for a static image
- "Export as Interactive HTML" for a fully interactive version
- Customize the title and subtitle if needed
- Click the export button and wait for the download
- Missing analysis points in export: Make sure to complete the analysis before exporting
- Browser freezes during export: Large analyses may take time to process
- "CORS error" in console: Make sure all three servers are running
- OTP Server: http://localhost:8080
- Export Server: http://localhost:3000
- Local Web Server: http://localhost:8000
If any of these URLs don't load, that server isn't running correctly.