Skip to content
pubscout

open_route_service

1.2.9, released 2 months ago by dhi13man.com

Dart and Flutter client for openrouteservice directions, isochrones, matrices, and geocoding.

WASM-ready
$ flutter pub add open_route_service
Source repository

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.