OpenRouteService class
Class encapsulating all the OpenRoute Service APIs and parsing their responses into relevant data models that can be easily integrated into any Dart/Flutter application.
Initialize the class with your API key String and optionally the ORSProfile, then use the methods to get the data you need.
Implemented OpenRoute APIs include:
- Directions: ORSDirections
- Elevation: ORSElevation
- Geocoding: ORSGeocode
- Isochrones: ORServiceIsochrones
- Matrix: ORSMatrix
- Optimization: ORSOptimization
- POIs: ORSPois
The API documentation can be found here: https://openrouteservice.org/dev/#/api-docs
- Available Extensions
Constructors
- OpenRouteService({required String apiKey, String baseUrl = OpenRouteService.defaultBaseUrl, Client? client, ORSProfile defaultProfile = ORSProfile.footWalking})
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- defaultBaseUrl → const String
- The default base URL of all the endpoints, https://api.openrouteservice.org