Documentation
¶
Overview ¶
Package capetown provides named layer IDs and pre-built QueryParams for the City of Cape Town Open Data Portal.
Base URL: https://citymaps.capetown.gov.za/agsext/rest/services/Theme_Based/Open_Data_Service/FeatureServer
The pre-built queries deliberately do not pin an output field list. The upstream layer schemas drift and use non-obvious column names, so each query returns the layer's full field set; callers select fields explicitly when they want a smaller payload. Filters (suburb, ordering) reference field names verified against the live service.
Layer IDs are best-effort and may drift as the service is republished. The integration test (run with -tags=integration) validates every layer ID and filter field against the live service. Use a github.com/richardwooding/go-arcgis.Client with ServiceInfo to confirm them at runtime.
Index ¶
Constants ¶
const ( LayerLoadSheddingBlocks = 138 LayerWards = 78 LayerLandParcels = 56 LayerTaxiRoutes = 97 LayerPublicLighting = 3 LayerWaterQuality = 229 LayerHeritageInventory = 49 )
Layer IDs for well-known CCT datasets, validated against the live service.
const BaseURL = "https://citymaps.capetown.gov.za/agsext/rest/services/Theme_Based/Open_Data_Service/FeatureServer"
BaseURL is the City of Cape Town Open Data Feature Service endpoint.
Variables ¶
This section is empty.
Functions ¶
func LandParcels ¶
func LandParcels() arcgis.QueryParams
LandParcels returns cadastral land parcel (erf) polygons.
func LandParcelsBySuburb ¶ added in v0.1.2
func LandParcelsBySuburb(suburb string) arcgis.QueryParams
LandParcelsBySuburb filters land parcels by official suburb name.
func LoadSheddingBlocks ¶
func LoadSheddingBlocks() arcgis.QueryParams
LoadSheddingBlocks returns all load shedding block polygons. The layer carries only block geometry and a BlockID; it has no stage or suburb attribute.
func TaxiRoutes ¶
func TaxiRoutes() arcgis.QueryParams
TaxiRoutes returns all registered minibus taxi routes.
func WaterQualityResults ¶
func WaterQualityResults() arcgis.QueryParams
WaterQualityResults returns inland water quality measurements, most recent first. It targets the raw results table (sample point, date, parameter, value).
Types ¶
This section is empty.