getByTypeByPathTypes method

Future<List<StopPoint>> getByTypeByPathTypes(
  1. List<String> types
)

Gets all stop points of a given type

Implementation

Future<List<StopPoint>> getByTypeByPathTypes(
  List<String> types,
) async {
  final response = await _context.client.get(
    Uri.https(
      authority,
      '/stoppoint/type/${types.join(',')}',
    ),
  );

  ClientException.checkIsSuccessStatusCode(response);

  return StopPoint.listFromJson(json.decode(response.body));
}