Skip to content

Commit

Permalink
feat: route stop graph front
Browse files Browse the repository at this point in the history
  • Loading branch information
eiririna committed Jun 6, 2023
1 parent 8ac7cb4 commit 48fdd4c
Show file tree
Hide file tree
Showing 6 changed files with 145 additions and 14,162 deletions.
6 changes: 3 additions & 3 deletions api/fastapi_service/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ async def city_graph_poly(
return services.graph_to_scheme(points, edges, pprop, wprop)


@app.post('/api/city/stops/region/', response_model=StopsBase)
@app.post('/api/city_v2/stops/region/', response_model=StopsBase)
@logger.catch(exclude=HTTPException)
async def stops_graph(
city_id: int,
Expand All @@ -160,13 +160,13 @@ async def stops_graph(
return services.get_stops_answer(stops, edges, stops_prop)


@app.post('/api/city/stops/bbox/{city_id}/', response_model=StopsBase)
@app.post('/api/city_v2/stops/bbox/{city_id}/', response_model=StopsBase)
@logger.catch(exclude=HTTPException)
async def stops_graph_poly(
city_id: int,
polygons_as_list: List[List[List[float]]]
):
request = f"POST /api/city/stops/bbox/{city_id}/"
request = f"POST /api/city_v2/stops/bbox/{city_id}/"
status_code = 200
detail = "OK"

Expand Down
Loading

0 comments on commit 48fdd4c

Please sign in to comment.