Hi Eric,

I fear I don't understand what this post is about. The program doesn't evaluate 
opening_hours or similar tags. It would be possible to add a style function
which would expect a valid date and calculate an offset to another date like 
maybe current date-time or a given date which might be in the past or in the 
future.
How would you use this to improve the map? If you just want to parse your fixme 
tags I'd say it is not related to mkgmap.
The evaluation of the meaning of an opening_hours value is very complex, see 
https://github.com/simonpoole/OpeningHoursParser

Gerd

________________________________________
Von: mkgmap-dev <[email protected]> im Auftrag von AnkEric 
<[email protected]>
Gesendet: Freitag, 20. März 2020 15:13
An: [email protected]
Betreff: [mkgmap-dev] Question (RFC): Is function [has-period-ended] an option?

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
_______________________________________________
mkgmap-dev mailing list
[email protected]
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
_______________________________________________
mkgmap-dev mailing list
[email protected]
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

Reply via email to