Closed Beck-berry closed 1 year ago
I looked for examples and I found three cases:
motor_vehicle:conditional
tag (indicates the months when there is no snowplowing and thus the road is closed when snowing) - see the wiki pageopening_hours
tag (indicates the months the road is open)snowplowing=no
. @tsobuskerudbyen Do you know any other we should cover?
No other examples, no.
@Beck-berry I tried out the code but I ran into a null pointer problem on the dataset of all of Norway.
The error I'm seeing is:
Jun 30 10:12:18 byvekstavtale build-map[664792]: [5.1K blob data]
Jun 30 10:12:18 byvekstavtale build-map[664792]: what(): /srv/bicycle/process-openmaptiles.lua:430: attempt to compare nil with number
So I think there is some invalid data in Norway that we need to ignore (or take into account).
Until we reactivate this feature I have commented out the code in https://github.com/buskerudbyen/proposal-visualizer/commit/74c02495b7783ac5860b9c33c14ea99db9537f32
Could we somehow figure out what came out as nil? In overpass I could not find any, which could cause the problem, thus I don't know what to handle :/
I added a commit to handle the nil: https://github.com/buskerudbyen/proposal-visualizer/commit/99c84dad35e70a0b7e9fcdbf62c90037ecce414d
Ok, I'm currently trying out this fix. Thanks!
Your commit has fixed the problem and the map build has completed. Thanks!
From #25: