GeocodeQuery
仅提供位置结果。我想搜索提供当前坐标的“餐馆”这个词,并在结果中找到所有的餐馆。就像实际的HERE Maps工作一样。我怎样才能实现它?
MyGeocodeQuery = new GeocodeQuery();
MyGeocodeQuery.SearchTerm = searchTerm;
MyGeocodeQuery.GeoCoordinate = MyCoordinate == null ? new GeoCoordinate(0, 0) : MyCoordinate;
MyGeocodeQuery.QueryCompleted += GeocodeQuery_QueryCompleted;
MyGeocodeQuery.QueryAsync();
这只提供位置结果,而不是地方。
答案 0 :(得分:0)
您可以使用MapTask
。
MapsTask mapsTask = new MapsTask();
//Omit the Center property to use the user's current location.
//mapsTask.Center = new GeoCoordinate(47.6204, -122.3493);
mapsTask.SearchTerm = "coffee";
mapsTask.ZoomLevel = 2;
mapsTask.Show();
答案 1 :(得分:0)
如API
引用中所述,请使用ExploremapsSearchPlacesTask
ExploremapsSearchPlacesTask searchMap = new ExploremapsSearchPlacesTask();
searchMap.Location = new GeoCoordinate(60.35, 24.60);
searchMap.SearchTerm = "Restaurants";
searchMap.Show();