logo separator

[mkgmap-dev] Question (RFC): Is function [has-period-ended] an option?

From AnkEric eric_internet at casema.nl on Fri Mar 20 14:13:04 GMT 2020

Way/Area closure Period (from date_start until date_end) is – in general –
not on OSM.

Some exceptions:

opening_hours = Mar 15-Jun 15 off "bird breeding season"

Construction period is between two dates.

Or:
opening_hours = 2019 Feb 18-2019 Mar 29 closed "Reconstruction period
Defensie Eiland"

Or:
access:conditional = no @ (2019 Feb 18-2019 Mar 29)

For me it's hard to not forget to remove by the end of construction period.

Therefore I Set:
fixme = opening_hours to be deleted by 2019 Mar 21

Still, hard to not forget.

Question: Can mkgmap implement a new function?
[period-has-ended]
Function:
 - Is there a date ("yyyy mmm dd") in opening_hours? Including "yyyy"?
 - If yes, find the last date.
 - If Today > Last_date Then [has-period-ended] = True

Even better:
Function has-period-ended (MyDate).
Opening_hours (closure) will have ended (or not) after Map production date
or start of my holiday: MyDate.

I guess mkgmap Logging option (-Dlog.config=filename) can be used to
generate a text file having all my Errors. I do hope { echotags "Error
message... " } can be logged as well.
Or I could Render outdated Warnings on the Map, differently from actual
Warnings.

And if this is an option, has mkgmap a preference for [opening_hours] or
[access:conditional]?
access:conditional is more straight forward, easier to interpret.
But opening_hours has the option to add free text: "Reconstruction period
Defensie Eiland", "ferry during working hours" (extra information and
explanation).




--
Sent from: http://gis.19327.n8.nabble.com/Mkgmap-Development-f5324443.html


More information about the mkgmap-dev mailing list