routing_client_dart
रूटिंग क्लाइंट API के लिए डार्ट पैकेज (OSRM/Valhalla प्रोजेक्ट का समर्थन करता है)
OSRM क्लाइंट API और ओपन सोर्स रूटिंग सेवा के लिए फ्लटर पैकेज
यह अंग्रेज़ी मूल स्नैपशॉट है। नवीनतम सामग्री GitHub पर देखें।
Package for osm routing client api
we support routing API for osrm-backend
also Valhalla Route API (more APIs will be added )
openrouteservice (coming soon)
from 1.0.0 instruction will be included directly when requesting the route
you can use our osrm service or valhalla service directly insteado of our RoutingManager
Add the following to your pubspec.yaml file:
dependencies:
routing_client_dart: ^1.0.7
List<LngLat> waypoints = [
LngLat(lng: 13.388860, lat: 52.517037),
LngLat(lng: 13.397634, lat: 52.529407),
LngLat(lng: 13.428555, lat: 52.523219),
];
final manager = RoutingManager();
final route = await manager.getRoute(
OSRMRequest.route(
waypoints: waypoints,
geometries: Geometries.polyline,
steps: true,
languages: Languages.en,
)
);
List<LngLat> waypoints = [
LngLat(lng: 13.388860, lat: 52.517037),
LngLat(lng: 13.397634, lat: 52.529407),
LngLat(lng: 13.428555, lat: 52.523219),
];
final manager = RoutingManager();
final road = await manager.getRoute(
OSRMRequest.trip(
waypoints: waypoints,
destination: DestinationGeoPointOption.last,
source: SourceGeoPointOption.first,
geometries: Geometries.polyline,
steps: true,
languages: Languages.en,
roundTrip:false,
)
);
final currentLocation = LngLat.fromList(lnglat: [13.389147, 52.527549]);
final isOnPath =
await roadManager.isOnPath(road, currentLocation, tolerance: 5);
final currentLocation = LngLat.fromList(lnglat: [13.389147, 52.527549]);
final isOnPath =
final instruction = await roadManager.nextInstruction(instructions, road, currentLocation, tolerance: 5);
Warning the precision of LngLat should be 5 if the road contain polylineEncoded, or the same precies as LngLat in polylines
Note you can get some inaccurate information nextInstruction,for that we will be happy for yours contributions
Note you can get voice instruction for valhalla instruction
Note more documentation will be added to soon
निर्भरता सूची 5 आइटम
>=5.6.0^1.1.0any^1.5.1^0.6.1उपयोग के अनुसार छाँटें, गतिविधि की तुलना करें और अपनाने से पहले मूल प्रोजेक्ट की आवश्यकताएँ जाँचें।
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗