示例#1
0
def get_population_per_region_geojson() -> Any:
    filename = tmp_file_cache("mali-population-per-region.geojson",
                              mali.get_population_per_region_geojson)
    return FileResponse(filename)
示例#2
0
def get_waterpoints_geojson() -> Any:
    filename = tmp_file_cache("mali-waterpoints.geojson",
                              mali.get_waterpoints_geojson)
    return FileResponse(filename)
示例#3
0
def get_functionality_percentage_per_region_geojson() -> Any:
    filename = tmp_file_cache(
        "mali-functionality-percentage-per-region.geojson",
        mali.get_functionality_percentage_per_region_geojson,
    )
    return FileResponse(filename)
示例#4
0
def get_communes_geojson() -> Any:
    filename = tmp_file_cache("mali-commune.geojson", mali.get_commune_geojson)
    return FileResponse(filename)
示例#5
0
def get_communes_data() -> Any:
    filename = tmp_file_cache("mali-communes-data.json",
                              mali.get_communes_data)
    return FileResponse(filename)
示例#6
0
def get_region_names() -> Any:
    filename = tmp_file_cache("mali-region-names.json", mali.get_region_names)
    return FileResponse(filename)
示例#7
0
def get_resources() -> Any:
    filename = tmp_file_cache("mali-resources",
                              mali.get_resources_media,
                              fresh=True)
    return FileResponse(filename)
示例#8
0
def get_reported_water_sources_summary() -> Any:
    filename = tmp_file_cache(
        "sierra-leone-get-reported-water-sources-summary.json",
        sierra_leone.get_reported_water_sources_summary,
    )
    return FileResponse(filename)
示例#9
0
def get_waterpoint_distances_summary() -> Any:
    filename = tmp_file_cache(
        "sierra-leone-get-waterpoint-distances-summary.json",
        sierra_leone.get_waterpoint_distances_summary,
    )
    return FileResponse(filename)
示例#10
0
def get_improved_reason_summary_json() -> Any:
    filename = tmp_file_cache(
        "sierra-leone-get-improved-reason-summary.json",
        sierra_leone.get_improved_reason_summary,
    )
    return FileResponse(filename)
示例#11
0
def get_shared_facilities_summary_json() -> Any:
    filename = tmp_file_cache(
        "sierra-leone-get-shared-facility-summary.json",
        sierra_leone.get_shared_facilities_summary,
    )
    return FileResponse(filename)
示例#12
0
def get_water_quality_summary_json() -> Any:
    filename = tmp_file_cache(
        "sierra-leone-water-quality-summary.json",
        sierra_leone.get_water_quality_summary,
    )
    return FileResponse(filename)
示例#13
0
def get_waterpointdata_geojson() -> Any:
    filename = tmp_file_cache("sierra-leone-waterpointdata.geojson",
                              sierra_leone.get_waterpointdata_geojson)
    return FileResponse(filename)
示例#14
0
def get_households_geojson() -> Any:
    filename = tmp_file_cache("sierra-leone-households.geojson",
                              sierra_leone.get_households_geojson)
    return FileResponse(filename)