requestWithSearch static method
Implementation
static Future<List<dynamic>> requestWithSearch(
{required Client client, required String search}) async {
http.Response? response = await post(
client: client,
url:
"https://nominatim.openstreetmap.org/search?q=$search&format=json&polygon_geojson=1&addressdetails=1");
return response != null
? jsonDecode(utf8.decode(response.bodyBytes)) as List<dynamic>
: [];
}