[generator] Add check_date and variants

Includes survey:date and check_date:opening_hours
Only apply to amenity and shop types for now

[generator] Add check_date to further types

[generator] Improve date validation

Check if it can be parsed to a proper date

Signed-off-by: Eivind Samseth <eisa01@gmail.com>
This commit is contained in:
Eivind Samseth
2025-08-01 21:37:52 +02:00
committed by x7z4w
parent b096199695
commit 04246a55f2
7 changed files with 66 additions and 2 deletions

View File

@@ -15,6 +15,7 @@ struct MetadataTagProcessorImpl
static std::string ValidateAndFormat_url(std::string const & v) ;
static std::string ValidateAndFormat_phone(std::string const & v) ;
static std::string ValidateAndFormat_opening_hours(std::string const & v) ;
static std::string ValidateAndFormat_date(std::string const & v) ;
std::string ValidateAndFormat_ele(std::string const & v) const;
static std::string ValidateAndFormat_destination(std::string const & v) ;
static std::string ValidateAndFormat_local_ref(std::string const & v) ;