示例#1
0
        public async Task<List<PoiData>> RadialSearchAsync(RadialSearchQueryParams queryParams)
        {
            using (var client = new HttpClient())
            {
                var url = string.Format("{0}/{1}?{2}", _url, "radial_search", queryParams.ToUrlParams());

                var response = await client.GetAsync(url);

                var content = await response.Content.ReadAsStringAsync();

                return ResponseUtils.BuildPoiResponse(content);
            }
        }
示例#2
0
        public async Task <List <PoiData> > RadialSearchAsync(RadialSearchQueryParams queryParams)
        {
            using (var client = new HttpClient())
            {
                var url = string.Format("{0}/{1}?{2}", _url, "radial_search", queryParams.ToUrlParams());

                var response = await client.GetAsync(url);

                var content = await response.Content.ReadAsStringAsync();

                return(ResponseUtils.BuildPoiResponse(content));
            }
        }
示例#3
0
 public List<PoiData> RadialSearch(RadialSearchQueryParams queryParams)
 {
     return RadialSearchAsync(queryParams).ResultSynchronizer();
 }
示例#4
0
 public List <PoiData> RadialSearch(RadialSearchQueryParams queryParams)
 {
     return(RadialSearchAsync(queryParams).ResultSynchronizer());
 }