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