generated from Grigo/AndroidTemplate
added subprox
This commit is contained in:
@@ -278,6 +278,19 @@ def elevation_nearest_hill():
|
||||
return jsonify(find_nearest_hill(lat, lon, radius_m, step_m, min_prominence_m))
|
||||
|
||||
|
||||
@app.get("/api/elevation/grid")
|
||||
def elevation_grid():
|
||||
from core.elevation import build_elevation_grid
|
||||
|
||||
lat = request.args.get("lat", type=float)
|
||||
lon = request.args.get("lon", type=float)
|
||||
if lat is None or lon is None:
|
||||
return jsonify({"ok": False, "error": "lat and lon required"}), 400
|
||||
radius_m = request.args.get("radius_m", 200, type=float)
|
||||
step_m = request.args.get("step_m", 0, type=float)
|
||||
return jsonify(build_elevation_grid(lat, lon, radius_m, step_m))
|
||||
|
||||
|
||||
@app.get("/api/health")
|
||||
def health():
|
||||
from core.elevation import elevation_status
|
||||
|
||||
Reference in New Issue
Block a user