Beispiel #1
0
def getDistPlot1__For(district_name):
    # district_name = "DHAKA"
    # with open('Data/District/web_plot_1/'+district_name+".json", 'r') as f:
    #     plot_data = json.load(f)
    # return jsonify(plot_data)
    # return BD_MapLoader.testPlotly()
    return DistrictDataLoader.getPlot1__For(district_name)
Beispiel #2
0
def getheatmap__combined():
    # mapdata = BD_MapLoader.getRandomHeatMap()
    mapdata = DistrictDataLoader.get_risk_data()
    mapdata_list = []
    for district in mapdata:
        obj = copy.deepcopy(mapdata[district])
        obj['district'] = district
        mapdata_list.append(obj)

    mapdata_list = sorted(mapdata_list,
                          key=itemgetter(DistrictDataLoader.present),
                          reverse=True)
    return jsonify(mapdata_list)
Beispiel #3
0
def get_dt_before_15():
    return jsonify(DistrictDataLoader.get_dt_before_15())
Beispiel #4
0
def latest_dt():
    return jsonify(DistrictDataLoader.get_latest_dt())
Beispiel #5
0
def get_dt_value__For(district):
    return jsonify(DistrictDataLoader.get_dt_value__For(district))
Beispiel #6
0
def get_rt_value_arnab():
    return jsonify(DistrictDataLoader.get_rt_value())
Beispiel #7
0
def before_15_rt__arnab():
    return jsonify(DistrictDataLoader.get_rt_before_15())
Beispiel #8
0
def getForcastTable__For(district_name):
    return jsonify(DistrictDataLoader.getForcastTable__For(district_name))
Beispiel #9
0
def getZoneRisk__For(district_name):
    return DistrictDataLoader.getZoneRisk__For(district_name)
Beispiel #10
0
def getDistPlot2__For(district_name):
    return DistrictDataLoader.getPlot2__For(district_name)
Beispiel #11
0
def getheatmap__array():
    mapdata = DistrictDataLoader.getRiskMap__Array()
    return jsonify(mapdata)
Beispiel #12
0
def getheatmap__future():
    mapdata = DistrictDataLoader.getRiskMap__future()
    return jsonify(mapdata)
Beispiel #13
0
def getheatmap():
    # mapdata = BD_MapLoader.getRandomHeatMap()
    mapdata = DistrictDataLoader.getRiskMap__present()
    return jsonify(mapdata)