[mkgmap-dev] Question (RFC): Is function [has-period-ended] an option?
From Gerd Petermann gpetermann_muenchen at hotmail.com on Sat Mar 21 08:38:23 GMT 2020
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 <mkgmap-dev-bounces at lists.mkgmap.org.uk> im Auftrag von AnkEric <eric_internet at casema.nl> Gesendet: Freitag, 20. März 2020 15:13 An: mkgmap-dev at lists.mkgmap.org.uk 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 mkgmap-dev at lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
- Previous message: [mkgmap-dev] Question (RFC): Is function [has-period-ended] an option?
- Next message: [mkgmap-dev] Question (RFC): Is function [has-period-ended] an option?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the mkgmap-dev mailing list