public void TestCategory() { var destList = HereService.GetAllDestinations(); //auckland as destination var dest1 = destList[0]; var cat = HereService.GetPlacesCategories(); var item = cat.Select(x => x.Value); var categories = String.Join(",", item.ToArray()); //When passing into the api/here/getPopularPlaces, construct the queryParams as follow HereApiQuery queryParams = new HereApiQuery { Lat = dest1.Latitude, Lon = dest1.Longitude, Category = categories }; //get a list of popular places in Auckland var popularPlace = HereService.GetPopularPlaces(queryParams); }
public HttpResponseMessage GetPlacesCategories() { var categories = HereService.GetPlacesCategories(); return(Request.CreateResponse(HttpStatusCode.OK, categories)); }