getPolyline method

Future<Response> getPolyline(
  1. GeoCodingResponse pickup,
  2. GeoCodingResponse dropoff
)

Implementation

Future<Response> getPolyline(
    GeoCodingResponse pickup, GeoCodingResponse dropoff) async {
  Response response = await RFN.Navigation.Route.GetPolyline(
      AddressRF(
        Name: "pickup",
        Coordinate: CoordinateRF(
          double.parse(pickup.lat),
          double.parse(pickup.lng),
        ),
      ),
      AddressRF(
        Name: "dropoff",
        Coordinate: CoordinateRF(
          double.parse(dropoff.lat),
          double.parse(dropoff.lng),
        ),
      ));
  return response;
}