Release 0.58.0 includes the Earth high-precision boundary PMTiles/MVT pipeline, standardized Earth boundary source collectors, China POV boundary configuration templates, and removal of the legacy low-precision GeoJSON fallback. It also adds Earth news target-location queueing/archive support, fixes datasource task status visibility, documents the Earth surface depth-spacing rules that prevent far-zoom z-fighting snow/black blocks, and updates bilingual operations/developer docs.
17 lines
548 B
Python
17 lines
548 B
Python
from fastapi import APIRouter, Depends, Query
|
|
from sqlalchemy.ext.asyncio import AsyncSession
|
|
|
|
from app.db.session import get_db
|
|
from app.services.earth_news import get_earth_news_payload
|
|
|
|
router = APIRouter()
|
|
|
|
|
|
@router.get("/earth-feed")
|
|
async def get_earth_feed(
|
|
lat: float | None = Query(None, description="Current Earth view center latitude"),
|
|
lon: float | None = Query(None, description="Current Earth view center longitude"),
|
|
db: AsyncSession = Depends(get_db),
|
|
):
|
|
return await get_earth_news_payload(lat=lat, lon=lon, db=db)
|