【发布时间】:2021-06-07 03:49:17
【问题描述】:
鉴于以下网址,我想将 start=8.681495,49.41461 和 end=8.687872,49.420318 作为变量传递给方法测试 1-如何修改代码以接受可变起点和终点 2-应该使用GET或POST哪个动作
网址
url_2="https://api.openrouteservice.org/v2/directions/driving-car?api_key=5b3ce3597851110001cf62480ecf8c403567479a87de01df5da651fb&start=8.681495,49.41461&end=8.687872,49.420318"
@app.route(url, methods=['GET'])
def test
please note that start and end in the url each take two values lat and
lng respectively..how to use request.args.get in this case-
i want to have a variable for each lat and lng which meand 4 variables
for startlat startlng endlat endlng..
how can i solve it please
【问题讨论】:
标签: python flask microservices flask-restful