Auto-update: Thu Nov 21 11:28:26 PST 2024
This commit is contained in:
parent
57b1fdb057
commit
48d1c12419
1 changed files with 2 additions and 4 deletions
|
@ -6,6 +6,7 @@ Uses Postgres/PostGIS for location tracking (data obtained via the companion mob
|
||||||
from fastapi import APIRouter, HTTPException, Query
|
from fastapi import APIRouter, HTTPException, Query
|
||||||
from fastapi.responses import HTMLResponse, JSONResponse
|
from fastapi.responses import HTMLResponse, JSONResponse
|
||||||
import random
|
import random
|
||||||
|
import math
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
import traceback
|
import traceback
|
||||||
from staticmap import StaticMap, CircleMarker
|
from staticmap import StaticMap, CircleMarker
|
||||||
|
@ -15,7 +16,6 @@ from typing import Union, List
|
||||||
import folium
|
import folium
|
||||||
from folium.plugins import HeatMap, MarkerCluster, Search
|
from folium.plugins import HeatMap, MarkerCluster, Search
|
||||||
from folium.plugins import Fullscreen, MiniMap, MousePosition, Geocoder, Draw, MeasureControl
|
from folium.plugins import Fullscreen, MiniMap, MousePosition, Geocoder, Draw, MeasureControl
|
||||||
from playwright.async_api import async_playwright
|
|
||||||
from zoneinfo import ZoneInfo
|
from zoneinfo import ZoneInfo
|
||||||
from dateutil.parser import parse as dateutil_parse
|
from dateutil.parser import parse as dateutil_parse
|
||||||
from typing import Optional, List, Union
|
from typing import Optional, List, Union
|
||||||
|
@ -138,8 +138,6 @@ Generate a heatmap for the given date range and save it as a PNG file.
|
||||||
:return: The path where the PNG file was saved, or None if no locations found
|
:return: The path where the PNG file was saved, or None if no locations found
|
||||||
"""
|
"""
|
||||||
try:
|
try:
|
||||||
from staticmap import StaticMap, CircleMarker
|
|
||||||
import math
|
|
||||||
|
|
||||||
start_date = await dt(start_date)
|
start_date = await dt(start_date)
|
||||||
if end_date:
|
if end_date:
|
||||||
|
|
Loading…
Reference in a new issue