예제 #1
0
        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);
            }
        }
예제 #2
0
 public List<PoiData> BboxSearch(BboxSearchQueryParams queryParams)
 {
     return BboxSearchAsync(queryParams).ResultSynchronizer();
 }