public async Task<List<PoiData>> BboxSearchAsync(BboxSearchQueryParams queryParams) { using (var client = new HttpClient()) { var url = string.Format("{0}/{1}?{2}", _url, "bbox_search", queryParams.ToUrlParams()); var response = await client.GetAsync(url); var content = await response.Content.ReadAsStringAsync(); return ResponseUtils.BuildPoiResponse(content); } }
public List<PoiData> BboxSearch(BboxSearchQueryParams queryParams) { return BboxSearchAsync(queryParams).ResultSynchronizer(); }