示例#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)
示例#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)
示例#3
0
def get_dt_before_15():
    return jsonify(DistrictDataLoader.get_dt_before_15())
示例#4
0
def latest_dt():
    return jsonify(DistrictDataLoader.get_latest_dt())
示例#5
0
def get_dt_value__For(district):
    return jsonify(DistrictDataLoader.get_dt_value__For(district))
示例#6
0
def get_rt_value_arnab():
    return jsonify(DistrictDataLoader.get_rt_value())
示例#7
0
def before_15_rt__arnab():
    return jsonify(DistrictDataLoader.get_rt_before_15())
示例#8
0
def getForcastTable__For(district_name):
    return jsonify(DistrictDataLoader.getForcastTable__For(district_name))
示例#9
0
def getZoneRisk__For(district_name):
    return DistrictDataLoader.getZoneRisk__For(district_name)
示例#10
0
def getDistPlot2__For(district_name):
    return DistrictDataLoader.getPlot2__For(district_name)
示例#11
0
def getheatmap__array():
    mapdata = DistrictDataLoader.getRiskMap__Array()
    return jsonify(mapdata)
示例#12
0
def getheatmap__future():
    mapdata = DistrictDataLoader.getRiskMap__future()
    return jsonify(mapdata)
示例#13
0
def getheatmap():
    # mapdata = BD_MapLoader.getRandomHeatMap()
    mapdata = DistrictDataLoader.getRiskMap__present()
    return jsonify(mapdata)