DiffoExample.Nbn.Geo (DiffoExample v0.3.0)

Copy Markdown View Source

Seeds NBN POI and CSA places for South Australia and the rest of Australia, pairing each POI 1:1 with its CSA via a PlaceRef (POI -> CSA).

See the file header for geographic-data source and attribution (NBN Co, CC BY 4.0, modified).

Summary

Functions

Number of POI/CSA pairs seeded.

Seeds all POI and CSA places and pairs each POI 1:1 with its CSA via a PlaceRef (POI -> CSA, role :interconnects). The SQ traverses CSA -> POI through this ref via Ash.

Seeds the demo customer premises: each a Location (street address) plus a LocationPoint (lat/long) that :geo_locates it. These Adelaide-Hills venues service-qualify to the Stirling CSA (5STI). Idempotent like seed/0.

Functions

count()

Number of POI/CSA pairs seeded.

seed()

Seeds all POI and CSA places and pairs each POI 1:1 with its CSA via a PlaceRef (POI -> CSA, role :interconnects). The SQ traverses CSA -> POI through this ref via Ash.

Per-record and resilient: a record that fails (e.g. a constraint) is logged and skipped so the rest load. The :build actions upsert by id; the ref step checks for an existing pairing first, so re-running is idempotent.

seed_locations()

Seeds the demo customer premises: each a Location (street address) plus a LocationPoint (lat/long) that :geo_locates it. These Adelaide-Hills venues service-qualify to the Stirling CSA (5STI). Idempotent like seed/0.