hasadna/open-bus-map-search

Performance | split velocity page map to tiles

開放

#1,315 建立於 2025年10月10日

 (2 則留言) (0 個反應) (0 位負責人)TypeScript (125 個分叉)auto 404
enhancementfrontendhacktoberfestusabilityvelocities page

倉庫指標

星標
 (95 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

In the velocity heatmap page, we always load the velocities from the entirety of Israel 🤯 . That's a lot of data, especially when we'll support zoom levels lon_min=34.25&lon_max=35.7&lat_min=29.5&lat_max=33.33:

https://open-bus-stride-api.hasadna.org.il/siri_velocity_aggregation/siri_velocity_aggregation?recorded_from=2025-01-01T00%3A00%3A00&lon_min=34.25&lon_max=35.7&lat_min=29.5&lat_max=33.33&rounding_precision=2

I want to load the data from the backend in "tiles". If you're not familiar with the map tiles concept, you can read about it here: https://en.wikipedia.org/wiki/Tiled_web_map there's an implementation of tile fetching in the useVehicleLocation hook. If you feel it's over complicated you're probably right, and we encourage you to make something more simple

Thanks ❤️

貢獻者指南