SwiftUI
FindToilets
Personal Project | Offline-Ready Taiwan Public Restroom Map
Created to relieve the stress of finding a clean, open restroom while out in Taiwan—putting 12,000+ public locations into a fast offline map. Migrated data sources in 2026 to add operating hours, accessible/family filters, and a no-install companion web map requested by users.
Project Background
01
User Feedback
Great reviews. Finally I do not have to panic when I need a restroom outside.
Finding restrooms is really useful. Have you considered a web version for people who do not want to download an app?
Adding ratings and comments to FindToilets is smart because users can help each other filter for quality.
02
Development Process
Design Process
- Designed from my own need:Instead of drawing Figma screens, I built and adjusted directly in Xcode around the core need of finding a restroom quickly.
- iOS 26 design adaptation:During development, Apple introduced Liquid Glass, so the UI adopted glass materials and a modern system-aligned visual style.
- Map-first structure:The main interface is a full-screen map with a bottom sheet for nearby restroom lists and search, allowing most tasks to happen without leaving the map.
Engineering Process
- Data source validation:Before development, I confirmed that Taiwan's Ministry of Environment provided a complete public restroom API.
- Three-layer data loading:The app loads from cache first, then bundled JSON, then updates from the API in the background to balance startup speed and data freshness.
- Map and annotation system:MapKit powers the interactive map, dynamic annotation clustering, debounce updates, user location, and nearby sorting.
- Community features:CloudKit public database stores ratings and reviews, while Google Places API enriches detail pages with opening-hour information.
03
Technical Challenges & Solutions
Improving Performance with Many Map Markers
- Situation
- The app needed to show thousands of public restroom points across Taiwan on a map.
- Challenge
- Loading all markers at once caused serious performance issues. Zooming and dragging became laggy, hurting the user experience.
- Solution
- I implemented dynamic marker management based on map zoom level: clustered markers when zoomed out and individual markers when zoomed in. A 0.3-second debounce prevents excessive redraws while users drag the map.
- Result
- The map remains smooth even with large datasets, allowing users to browse and search restrooms comfortably.
Cleaning Government Open Data
- Situation
- The app relies on public restroom data from Taiwan's Ministry of Environment.
- Challenge
- The raw data included duplicate records, swapped latitude/longitude values, and coordinates outside Taiwan, causing incorrect or repeated map markers.
- Solution
- I built coordinate validation for Taiwan's geographic range, detected common latitude/longitude swaps, and merged duplicate or nearby records with the place grouping algorithm.
- Result
- Users see cleaner and more accurate restroom locations instead of messy raw data.
04
Design & Technical Highlights
Smooth Clustered Map Across 12,000+ Locations
Opens straight to nearby restrooms around your location. Zoom-aware clustering automatically groups dense areas when zoomed out and expands individual pins as you zoom in, keeping panning and zooming smooth.
Clean Building Grouping & Floor Labels
Raw public datasets often split one mall or train station into a dozen overlapping entries. Automatic place grouping and floor parsing merge nearby duplicates into one clear pin showing exact floors (B2, B1, 1F, 2F) at a glance.
Community Cleanliness Ratings & Reviews
Users can leave star ratings, cleanliness scores, and quick notes that sync publicly, helping everyone avoid poorly maintained restrooms and spot reliable ones faster.
Offline Lookup, 4 Languages & 2026 Hours Upgrade
With 12,000+ records stored on-device, lookup still works inside basements, MRT corridors, or mountain trails without reception. The 2026 update added 24-hour estimates, operating hours, accessible/family filters, and four languages for both locals and travelers.
05
Learning & Reflection
- Solving a real pain point:The biggest reward was seeing that the app genuinely helped people with the same need I had. Downloads and feedback made the work feel concrete and useful.
- Practical iOS design experience:Adapting to iOS 26 Liquid Glass helped me understand Apple's design direction more deeply and prepare for future Swift development.
- Data and map performance experience:Handling government data issues and map marker performance gave me real map-app development experience that cannot be learned from tutorials alone.
- Iterating from feedback:After launch, user feedback helped me prioritize improvements based on real needs rather than only my own assumptions.
- Shipping a web map directly from user feedback:After a user asked for a browser version without needing to install an app, I built a companion Leaflet web map and regional guide pages powered by the same 12,866-location dataset—reinforcing the habit of turning real user feedback into shipped iterations.