unsprawl.providers.data.sg

Singapore data providers.

Submodules

Classes

GovSGProvider

Provider for Singapore open data via data.gov.sg.

Package Contents

class GovSGProvider(*, data_root=None, dataset_ids=None)[source]

Provider for Singapore open data via data.gov.sg.

data_root
dataset_ids
property resale_prices_path: Path

Default cache location for resale prices CSV.

property mrt_exits_path: Path

Default cache location for MRT exits GeoJSON.

fetch_resale_prices(*, limit=5000, force=False)[source]

Fetch resale prices dataset as a DataFrame.

Network-first, synthetic fallback.

Parameters:
  • limit – Row cap for synthetic fallback.

  • force – If True, re-download/re-generate even if cache exists.

fetch_mrt_exits(*, force=False)[source]

Fetch MRT exits GeoJSON as a dict.

Network-first, synthetic fallback.