v0.0.1+1
georouter
オープンソースルーティングマシン(OSRM)API を使用して、ポイント間の経路を取得するためのパッケージです。自動車、徒歩、自転車、交通機関など、複数の移動モードをサポートしています。
25いいね 130日間ダウンロード130Pub ポイント
AndroidiOSWebmacOSWindowsLinux
ahmedsaleh210/georouter open-source repository details.
{"sdk":"flutter"}^0.13.5^2.0.1{"sdk":"flutter"}以下は英語原文のスナップショットです。最新版は GitHub をご覧ください。
pub package License: MIT stars
GeoRouter is a Flutter package that provides an easy-to-use API to request directions between points using OpenStreetMap Route Service Machine (OSRM).
dependencies:
georouter: <lastest>
import 'package:georouter/georouter.dart';
final georouter = GeoRouter(mode: TravelMode.driving);
final coordinates = [
PolylinePoint(latitude: 51.5074, longitude: -0.1278), // London, UK
PolylinePoint(latitude: 48.8566, longitude: 2.3522), // Paris, France
];
try {
final directions = await georouter.getDirectionsBetweenPoints(coordinates);
// Do something with the directions
} on GeoRouterException catch (e) {
// Handle GeoRouterException
} on HttpException catch (e) {
// Handle HttpException
}
http: ^0.13.5