cccmzwi / matekate

A map showing ClubMate distribution points based on OpenStreetMap
http://www.cccmz.de/?page_id=437
GNU General Public License v3.0
5 stars 3 forks source link

Remove date from download script #1

Open tokei opened 13 years ago

tokei commented 13 years ago

The old script used to parse a date from the downloaded XML. In the new API, this date no longer exists so for now we replaced it with a static string. But it looks like the date is not used in the rest of the script anyhow so it should be removed all together. But first we should find out what was the intention behind this.

tanjeff commented 13 years ago

The date is shown on the Mateka'te when the '+' sign in the upper right corner is "opened". It specifies the time at which the last update was fetched from the OSM server. Here is how it works.

Consider the file machMateKate.rb (version 650083c0ad):

The update date was originally read from the OSM files (which contain XML data). This has advantages when the download of new data fails for some reason - the old script simply used the older files which were still there. In this case, the date in each file indicated how old the respective data was.

If the date is not longer part of these files, it should be removed. It would be useless to know when the script ran the last time. Only the real age of the OSM data is of interest.