cedendahlkim/Swedish Driving License Validator
Validate and classify Swedish driving license numbers (körkortsnummer) with license type detection
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| license_number | Swedish driving license number (12 digits: YYYYMMDDNNXT) | yes | — |
Outputs
| name | description |
|---|---|
| valid | Whether the license number is valid (true/false) |
| formatted | Formatted license number (YYYYMMDD-NN-X-T) |
| license_type | License type (A/B/C/D/BE/CE/DE/AM) |
| issue_year | Year of birth from the license (first 4 digits) |
| checksum_valid | Whether the checksum digit is correct (Luhn on first 8 digits) |