open_route_service
1.2.9, released 2 months ago by dhi13man.com
Dart and Flutter client for openrouteservice directions, isochrones, matrices, and geocoding.
What it does
Provides typed request and response models for the openrouteservice API. Allows developers to generate directions, calculate isochrones and time-distance matrices, perform Pelias geocoding, fetch elevation and points of interest, and solve routing optimizations.
AI-written summary of version 1.2.9, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to integrate openrouteservice routing, directions, or geocoding into a Dart or Flutter application
- You need to fetch elevation or calculate travel time-distance matrices
Skip it when
- You require an offline mapping and routing solution
- You are using a routing provider other than openrouteservice
Strengths
- Comprehensive coverage of openrouteservice API endpoints
- Typed request and response models for all features
- Cross-platform support
Weaknesses
- Requires an external API key and active internet connection
- Tied specifically to the openrouteservice backend
Setup
- Kind
- Pure Dart
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 1
Requires an openrouteservice API key obtained from their developer portal.
import 'package:open_route_service/open_route_service.dart';
Future<void> main() async {
final OpenRouteService client = OpenRouteService(apiKey: 'YOUR-API-KEY');
final List<ORSCoordinate> routeCoordinates = await client.directionsRouteCoordsGet(
startCoordinate: ORSCoordinate(latitude: 37.422, longitude: -122.086),
endCoordinate: ORSCoordinate(latitude: 37.411, longitude: -122.079),
);
}Alternatives
Packages that do the same job and could replace open_route_service.
- google_maps_flutter_web
Web platform implementation of google_maps_flutter.
88Compare - google_maps_flutter_android
Android implementation of the google_maps_flutter plugin.
82Compare - google_maps_flutter_ios
iOS implementation of the google_maps_flutter plugin.
81Compare - google_maps_flutter
A Flutter plugin for integrating Google Maps in Android, iOS, and web applications.
90Compare