callPOIAlongRoute method

Future<PoiAlongRouteResponse?> callPOIAlongRoute()

Implementation

Future<PoiAlongRouteResponse?> callPOIAlongRoute() async {
  try {
    String? result = await restApi.poiAlongRoute(toMap());
    return result != null
        ? PoiAlongRouteResponse.fromMap(json.decode(result))
        : null;
  } on PlatformException catch (e) {
    return Future.error(e);
  }
}