📜  在 mapbox flutter 中获取方向路线 - Dart 代码示例

📅  最后修改于: 2022-03-11 14:48:03.836000             🧑  作者: Mango

代码示例1
// install https://github.com/JaffaKetchup/flutter_osrm

import 'package:flutter_osrm/flutter_osrm.dart';

// Get a 'nearby' point
OSRM(OSRMProfile.car).nearby(LatLng());

// Get a route between two points
OSRM(OSRMProfile.car).route([LatLng(), LatLng()]);