curl——location——request GET 'My_API ' ?'
——header 'Content-Type: application/json' [{"id":","placeid":"EiBMZXdpc2hhbSBXYXksIExvbmRvbiBTRTQgMVVZLCBVSyIuKiwKFAoSCXk1YsdYAnZIERCJXqRiE8WPEhQKEgnrjwApXwJ2SBH76fXJO6C02w",地址";Lewisham Way, London SE4 1way, UK"邮编";邮编";"outcode"; ""lattitude": 51.4702816,"国家";"英国";"城市";"大伦敦";"longitude": -0.029187800000045172},{"_id":"null""placeid":",地址";Kenley Road, London SW19 3DW, UK"邮编"; se233rf ";"outcode":"SE23""lattitude":"51.404556","country":","city":","longitude":"-0.194486";}我想获取这些点之间的距离。它在邮差中工作正常,但在扑动中不工作。<颤振代码/strong>
var req = await Requests.post('my_api?',报头:{'Content-Type': 'application/json'}, body: queryParameters);print(的反应 _____________ O ______________)__________0 ___________ O n");打印(req.json ());打印(req.content () . length);
你看过https://flutter.dev/docs/development/data-and-backend/json了吗?您可以将所有这些数据放在为。
定义的类中。