search method
Search for bike stations by their name, a bike point's name often contains information about the name of the street or nearby landmarks, for example. Note that the search result does not contain the PlaceProperties i.e. the status or occupancy of the BikePoint, to get that information you should retrieve the BikePoint by its id on /BikePoint/id.
Implementation
Future<List<Place>> search(
String query,
) async {
final response = await _context.client.get(
Uri.https(
authority,
'/bikepoint/search',
{
'query': query,
},
),
);
ClientException.checkIsSuccessStatusCode(response);
return Place.listFromJson(json.decode(response.body));
}