Commit Graph

14 Commits

Author SHA1 Message Date
406cedbce1 extract tile-name 2025-06-09 13:19:47 +01:00
f275190538 fetch correct tile from overpass not diagonally adjacent one 2025-06-06 21:39:31 +01:00
fef52f812a add on-completion callback to tile fetcher, invalidate map-surface 2025-06-05 23:11:37 +01:00
63e592d33d first go at varying the line width based on highway classification 2025-06-05 23:02:44 +01:00
76228bc045 parse way name as well as points 2025-06-03 22:18:05 +01:00
39f687d6f5 pass zoom level to canvas 2025-06-03 22:18:05 +01:00
7c18f4442b async tile fetcher
we use cqueues, which is the async framework that lua-http is built
on. we integrate it into the glib event loop rather hackily by calling
the cqueues event stepper ever 20ms from a glib timeout function

overpass has very low rate limits so we handle a 429 response by
sleeping for a random length of time and retrying. This is, also,
a bit of a hack
2025-06-03 22:18:05 +01:00
d5e82d3427 replace in-memory cache with a persistent json cache
we just store the raw response from overpass
2025-06-03 22:18:05 +01:00
ab4e4857f3 fetch enough tiles to cover the display 2025-06-03 22:18:01 +01:00
398693bc07 hook the ui up to the overpass data 2025-05-28 18:50:12 +01:00
dc95c2252e convert lat/lon to tile x/y and back 2025-05-27 23:48:32 +01:00
184ba482f9 and decode 2025-05-27 13:34:09 +01:00
26ebbe21b5 hack in rxi-json 2025-05-27 13:31:54 +01:00
a2906f5150 http request to overpass 2025-05-27 13:12:12 +01:00