mhlw-ec-pharmacy-finder Feature Specification

Overview

This document specifies features to be added to the emergency contraceptive pill (EC) pharmacy finder site: https://odakin.github.io/mhlw-ec-pharmacy-finder/. The goal is to close the gap with competing sites (e.g., EPARK Kusuri no Madoguchi https://www.kusurinomadoguchi.com/s?is_ecp=1) while preserving existing strengths (11,000+ pharmacies from official MHLW data, female pharmacist filter, no-appointment-needed filter, etc.).

Constraints: - Static hosting on GitHub Pages. No server-side processing - Avoid services that require external API keys (e.g., Google Maps Platform); prefer free, key-free alternatives - Do not break existing UI/UX. Existing features (prefecture selector, free-text search, checkbox filters) remain as-is



Feature 1: Map View -- Implemented (commits 514ad56, 3c3c685)

Requirements

Technical Approach


Feature 2: Distance from Current Location and Sort by Proximity -- Implemented (commit 3c3c685)

Requirements

Technical Approach


Feature 3: Business Hours Display -- Implemented (parser coverage: pharmacy 98.2% / clinic 88.3%)

Challenges

Implementation Details


Implementation Priority

  1. ~~Feature 4 (Google Maps Link)~~ -- Done (d83b795)
  2. ~~Feature 1 (Map View)~~ -- Done (514ad56, 3c3c685)
  3. ~~Feature 2 (Sort by Proximity)~~ -- Done (3c3c685)
  4. ~~Feature 3 (Business Hours Display)~~ -- Done (pharmacy 98.2% / clinic 88.3% coverage)

Data Structure (Investigated)


Other Decisions