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:

The API documentation can be found here: https://openrouteservice.org/dev/#/api-docs

Available Extensions

Constructors

OpenRouteService({required String apiKey, ORSProfile profile = ORSProfile.footWalking})

Properties

hashCode int
The hash code for this object.
no setterinherited
profile ORSProfile
Get current profile/path parameter.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
setProfile ORSProfile
Change the profile/path parameter.
no getter

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

Static Methods

getProfileString(ORSProfile profile) String
Converts the enum profile to a String which can be used in API request