OlaRoutingService class

Service for interacting with Ola Maps Routing API

Constructors

OlaRoutingService({required String apiKey})

Properties

apiKey String
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getDirections({required double originLat, required double originLng, required double destLat, required double destLng}) Future<List<Map<String, double>>>
Fetch directions from origin to destination Returns list of LatLng points representing the route
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