import

command
v0.0.0-...-bad3877 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 7, 2026 License: MIT Imports: 15 Imported by: 0

Documentation

Overview

cmd/import imports Dublin cycle parking data from Smart Dublin's open dataset and inserts stands that don't already exist in the database.

Usage:

go run ./cmd/import [--dry-run] [--type "Sheffield Stand"] [--url <geojson-url>]

Deduplication uses two signals combined:

Distance alone    ≤5m              → skip  (same physical rack regardless of count)
Distance + count  ≤20m, same count → skip  (same stand, counted consistently)
Distance alone    ≤20m             → warn  (close but counts differ — opposite side of road?)
Distance + count  ≤50m, same count → warn  (same count, suspiciously nearby)

Stand count is only used as a signal when both sides have a recorded value > 0.

Environment variables (same as main server):

DBP_DB_DIALECT          sqlite3 (default) | mysql
DBP_DB_CONNECTION_STRING ./demo.db (default)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL