Commit Graph
7 Commits
Author SHA1 Message Date
German Khokhlov 77fe8299d7 fix(alpr): tighten model spec matching and card text
- Name the G3 record "AutoVu SharpV G3" and the SharpX record "XGA", so a
  bare SharpV or SharpX tag shows no specs without a separate wrapper.
- Reuse the CCTV layer's Bosch MIC-7522-Z30 record instead of a copy.
- Drop the brand from the SPEC line when the equipment line already names
  it, so long lines fit the card; pass the summary to entity properties.
- Fall back to the OSM `brand` tag when `manufacturer` is missing.
- Reject non-string or overlong model/manufacturer values before matching.
- Remove the unused `brandAliases` parameter; shorten JSDoc and comments.
- Cover the tile `model` path and the megapixel summary in tests; fold
  duplicate tests into existing ones.
- Docs and changelog: the default hourly extract has no `model`; any
  source that supplies it shows the SPEC line.
2026-11-19 18:24:10 +04:00
bassem chagra d325c1e62d Merge remote-tracking branch 'origin/main' into feat/alpr-model-specs 2026-11-14 12:38:32 +01:00
bassem chagra 52ebd8ac94 feat(alpr): show datasheet specs for mapped ALPR camera models
Read the OSM `model` tag on ALPR records and resolve it, with the
`manufacturer` tag, against 16 vendored CCTV Camera Database records
(v2.29.0): Motorola Solutions Vigilant, Genetec AutoVu, Axis, Verkada and
Bosch MIC. A resolved camera's card gains a SPEC line; an unknown or
mis-attributed model shows nothing, and the raw tag text never reaches
the card or the voice tools.

The CCTV matcher becomes createModelSpecLookup(records) so both layers
share one set of matching rules, and specSummary falls back to pixel
size or megapixels when a record has no resolution label.

459 of the 1,567 OSM ALPR nodes with a model tag resolve. The hourly
extract the layer reads by default has no model field yet, so tile
records carry it only once the extract publishes it.
2026-10-24 13:50:03 +02:00
Said Turksever 445af0875b Merge remote-tracking branch 'origin/main' into fix/1280
# Conflicts:
#	docs/CURRENT-STATE.md
#	src/layers/alpr/records.js
2026-10-23 12:09:46 +01:00
Sameh Khamis 73e789489b chore: drop exports nothing imports
Knip, configured with the application, package exports, scripts, QA
harnesses, workers, tools and tests as entry points, reports exports
that no module imports. Each was checked by hand against string-based
and namespace imports.

- Symbols that are still used inside their own module lose only the
  `export` keyword (176 constants and helpers).
- Unused re-exports are removed from barrel modules (flight, military,
  vessel, CCTV, directions, transit history, local ADS-B and street-level
  policy modules).
- Declarations that nothing uses at all are deleted, among them
  AIS_WATCHDOG_STATUSES, applyFilter, isRadioCountryCode, compactText,
  DENSITY_STOPS, the unused CCTV endpoint constants, and the SDR band
  constants.
- Default exports that nothing imports are removed. The ones in
  src/data/earthquakes.js, src/data/telegeographySubmarineCables.js,
  src/data/wind.js and src/data/bhoteKoshiLocator.js each constructed a
  layer instance at import time that nothing used; those instances are
  no longer created.

Every export of a package.json entry stays, as does TOMTOM_CREDIT,
which the traffic layer reads from the credits namespace it is given.
2026-10-22 19:00:40 -07:00
Said 586ed4f8ea fix(tools): bound untrusted display text at output boundaries 2026-10-20 01:21:04 +01:00
Sameh Khamis cc960b0dbe refactor: enforce import directions and expose source factories 2026-09-14 21:12:01 -07:00