Make data for HeatmapWithTime

Load input data:

Input data format

Input JSON format on each NDJSON line:

Input data example:

{"ts":"2024-08-15T00:02","system_id":"docomo-cycle","status":[["00000001",4,16],["00000002",0,6],...],"stations":{"00000001":[38.269793,140.874203,"04.ドコモ東北ビル"],...}}
{"ts":"2024-08-15T00:02","system_id":"hellocycling","status":[["17",2,6],["26",10,0],...],"stations":{"17":[35.707252,139.777587,"新御徒町ステーション"],...}}
{"ts":"2024-08-15T00:32","system_id":"docomo-cycle","status":[["00000001",5,15],["00000002",0,6],...]}
{"ts":"2024-08-15T00:32","system_id":"hellocycling","status":[["17",2,6],["26",10,0],...]}
...

Output data format

(The format of `series[series_id]` value is same as `data` parameter of folium.plugins.HeatMapWithTime(). `times` is same as `index` parameter of folium.plugins.HeatMapWithTime().)

Output data example:

{
    "times": ["2024-08-15T00:02", "2024-08-15T00:32", ...],
    "series": {
        "docomo-cycle": [
            [[38.269793,140.874203,4,16], [38.267867,140.871866,0,6], ...],
            [[38.269793,140.874203,5,15], [38.267867,140.871866,0,6], ...],
        ],
        "hellocycling": [
            [[35.707252,139.777587,2,6], [35.844371034915,139.65882343225,10,0], ...],
            [[35.707252,139.777587,2,6], [35.844371034915,139.65882343225,10,0], ...],
        ]
    }
}