open_route_service library

An encapsulation made around OpenRouteService API for Dart/Flutter projects.

Made for easy generation of Directions, Isochrones, Time-Distance Matrix, Pelias Geocoding, etc. using their amazing API.

Classes

DirectionRouteData
A class that encapsulates Direction Route data received from the JSON endpoint of Directions API.
DirectionRouteSegment
A class that encapsulates a segment of a DirectionRouteData.
DirectionRouteSegmentStep
A class that encapsulates one step of all the steps need to travel a DirectionRouteSegment.
DirectionRouteSummary
A class that encapsulates the summary of a DirectionRouteData.
ElevationData
Class representing 2D point enriched it with elevation from a variety of datasets.
GeoJsonFeature
A feature of an Isochrone or Directions API endpoint response formatted as geojson.
GeoJsonFeatureCollection
Data that represents GeoJSON feature collection for Isochrone or Direction Data models in their respective endpoints.
GeoJsonFeatureGeometry
The geometry of a GeoJsonFeature.
OpenRouteService
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.
OptimizationData
A class encapsulating the Optimization Data received from the Optimization endpoint of the openrouteservice API.
OptimizationRoute
A class encapsulating the data included in the Optimization's Route.
OptimizationRouteStep
The class encapsulating the data included in a Optimization Route's Step.
OptimizationSummary
A class encapsulating the data included in the Optimization's Summary.
ORSCoordinate
A Coordinate Data Model independent of any other external libraries. Contains a double Latitude, a double Longitude value and an optional double Altitude value.
PoisData
Data class representing the Points Of Interest (POI)s of an area.
PoisInformation
Stores the information associated with Pois.
TimeDistanceMatrix
A class that encapsulates the matrix of travel times between sources and destinations.
TimeDistanceMatrixLocation
A class that denotes a source or destination location data in a Matrix.
VroomJob
Class Representing a Vroom API Job model required as input to the optimization API endpoint.
VroomVehicle
Class Representing a Vroom API Vehicle model required as input to the optimization API endpoint.
VroomVehicleBreak
Class Representing a Vroom API Vehicle Break Model.
VroomVehicleStep
Class Representing a Vroom API Vehicle Step Model.

Enums

GsonFeatureGeometryCoordinatesType
ORSProfile
OpenRouteService API profiles as enum values to prevent typos in direct String usage.
VroomVehicleStepType
Enums of the Vroom Vehicle Step Types.

Exceptions / Errors

ORSException
Custom Exception class for this package that contains the message of the error, and the uri of the failed request (if any).