How to serve the Istanbul Metro Map as a progressive web app

The Istanbul Metro Map suits a Progressive Web App because travellers need route information under poor connectivity, unfamiliar surroundings and time pressure. An installable browser map can open from a home screen and keep the core station map available when a tunnel interrupts reception.

A PWA is more than a shortcut: its web manifest defines identity and launch behaviour, while a service worker controls browser storage. This combination delivers an app-like experience without requiring a separate native release on Google Play or the Australian App Store.

For a metro map, the best architecture is a small static shell with interactive data stored locally. Route lines, station names and interchange geometry can load first; live departures, disruption alerts and optional directions can follow. The result is dependable while keeping initial downloads modest.

Australian travellers bring different network and device expectations. Sydney and Melbourne commuters know Opal and Myki-style transport information, while regional Western Australia can have patchy coverage. Supporting iPhones and older Androids, using Australian English and showing Istanbul time clearly makes the app feel familiar without changing its identity.

Prepare the map and application shell

Start with the source data and a static app shell. GeoJSON for lines, stations and interchanges is easier to control than a general city map. Leaflet or MapLibre can render it responsively, while a JSON directory keeps stations searchable if rendering fails.

Keep base-map tiles optional and separate from owned assets. Do not bulk-cache third-party tiles without permission, and check their terms before promising offline use. If tiles fail, retain the metro overlay and station list with a clear offline notice.

Organise the build around index.html, styles, JavaScript, GeoJSON, icons, manifest.webmanifest and sw.js. Keep sw.js at the site root so its scope covers the map. Minify assets, create responsive images and record each source-data version.

Create the installable web app manifest

Give the manifest name, short_name, start_url, scope, display, theme_color, background_color and a stable id. Use display: standalone, choose a short name such as “Istanbul Map”, and keep start_url and scope inside the deployed directory if the project may later move to a subfolder.

Supply 192-pixel and 512-pixel icons, including a padded maskable icon. Add an Apple touch icon and suitable status-bar colours because iOS handles installation differently from Android and may ignore parts of the manifest.

The manifest describes how the app appears and where it starts; it does not create offline support. The service worker performs caching, and the site must use HTTPS outside localhost.

Build an offline-first service worker

Install the service worker from the site root and precache only the versioned shell, icons and owned map data. Name each cache with a build version, then remove older versions during activation to control storage use.

Use cache-first for fingerprinted files and local GeoJSON, and network-first for fresh departure or disruption data with a cached fallback. Avoid caching unknown API responses or third-party tiles unless their licences and size limits allow it.

A fetch handler should return the cached shell when navigation fails instead of a browser error, while handling quota errors, rejected requests and slow connections. When a new worker is ready, show a subtle update message so the user can refresh without losing the current search.

Design the map for touch and accessibility

Design for a phone held in one hand, with large station targets, short labels and controls that do not cover the route. Support pinch zoom and scrolling without trapping gestures. Bright Australian summer light is a useful test because pale lines and tiny labels can disappear outdoors.

Do not make the canvas the only navigation method. Provide a searchable station list, visible focus states, keyboard controls and live-region announcements for search results. Distinguish route lines with colour plus patterns or labels, and test colour contrast.

Keep geolocation optional and request it only when useful. Store recent searches on the device rather than profiling station views, and make error messages understandable without exposing technical status codes.

Add useful station and attraction context

Each station entry can include Turkish and English names, line connections, a map reference and latest departures when available. Distinguish railway lines, walking links and attractions to prevent confusion around dense interchanges such as Taksim or Şişli.

Travellers can pair the map with an Istanbul attraction guide to connect stations with nearby sights without leaving the planning flow. Keep those links descriptive, open them safely and avoid presenting them as guaranteed walking routes.

Use Istanbul’s Europe/Istanbul time zone rather than the traveller’s device setting. Live data needs a visible updated time and a graceful message when the operator endpoint is unavailable.

Run practical checks for Australian devices and travel conditions

Testing should cover real devices, poor networks and the moments when travellers lose signal.

Device and interaction checks

Network conditions deserve separate attention.

Network and field checks

Also test the details that can trip up Australian visitors: Istanbul drives on the right, heat and glare can hide labels, and the map must clarify direction rather than assume left-side traffic. A field test with someone unfamiliar with the city often reveals more than another desktop review.

Deploy, maintain and remember the PWA

Because the domain currently shows the default FastComet cloud-hosting placeholder, replace it with the production build through cPanel File Manager or SFTP. Upload assets to the public web root, confirm that the primary domain and www version share one origin, and force HTTPS.

Set sw.js and index.html to short or no-cache lifetimes so browsers check for updates, while hashed assets receive long cache headers. Ensure the fallback route returns index.html and that the service worker remains at root scope.

Monitor errors, cache misses, API failures and data freshness after launch. Version the application and map data so stale route information never hides behind a successful cached response.

The essential lesson is that a useful metro-map PWA is not simply an icon on a home screen. It is a fast, accessible and resilient web app whose station information survives unreliable networks and stale journey data on unfamiliar devices; that reliability is what travellers should remember.